-
Notifications
You must be signed in to change notification settings - Fork 17
/
Apache.textexpander
530 lines (523 loc) · 15.9 KB
/
Apache.textexpander
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>groupInfo</key>
<dict>
<key>expandAfterMode</key>
<integer>1</integer>
<key>groupName</key>
<string>Apache</string>
</dict>
<key>snippetsTE2</key>
<array>
<dict>
<key>abbreviation</key>
<string>apache:vhost:site</string>
<key>abbreviationMode</key>
<integer>1</integer>
<key>creationDate</key>
<date>2013-07-16T22:45:15Z</date>
<key>label</key>
<string>Enable or Disable site (Apache vhost/domain)</string>
<key>modificationDate</key>
<date>2015-07-06T02:48:03Z</date>
<key>plainText</key>
<string>%fillpopup:name=Enable or Disable:default=a2ensite:a2dissite% %filltext:name=Domain VHOST file%</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>461A7F53-C599-4696-AD2D-3DD556A8323D</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:conf:deflate</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T05:45:29Z</date>
<key>label</key>
<string>Apache mod_deflate compression config</string>
<key>modificationDate</key>
<date>2012-03-16T05:57:22Z</date>
<key>plainText</key>
<string>#
# mod_deflate configuration
#
LoadModule deflate_module modules/mod_deflate.so
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/*
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
DeflateCompressionLevel 9
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
#DeflateFilterNote Input instream
#DeflateFilterNote Output outstream
#DeflateFilterNote Ratio ratio
#CustomLog /path/to/vhost/logs/deflate_log deflate
#LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
</IfModule>
</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>C3DFA0D2-FC4E-404E-A897-36EABE90AF98</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:modules:compiled</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T05:32:49Z</date>
<key>label</key>
<string>List compiled Apache modules</string>
<key>modificationDate</key>
<date>2015-07-06T03:03:47Z</date>
<key>plainText</key>
<string>apache2 -l</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>C1CF80BA-ABA5-43DB-92A3-0984AE692490</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:settings</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T05:30:38Z</date>
<key>label</key>
<string>Show Apache settings</string>
<key>modificationDate</key>
<date>2012-03-16T05:30:48Z</date>
<key>plainText</key>
<string>/usr/sbin/apache2 -V</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>18F53E20-40D8-43A5-9F4D-DCC5802FD6B5</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:processes</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T05:28:30Z</date>
<key>label</key>
<string>Show Apache processes</string>
<key>modificationDate</key>
<date>2012-03-16T05:28:51Z</date>
<key>plainText</key>
<string>ps -ef | grep apache</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>C3950D75-DB1C-4A34-B553-694DCA6B80B5</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:modules:enable</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T05:08:19Z</date>
<key>label</key>
<string>Enable an Apache module</string>
<key>modificationDate</key>
<date>2012-03-16T05:08:43Z</date>
<key>plainText</key>
<string>sudo a2enmod %fill:module%</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>6958D8A2-3049-4E62-BD4C-DD35DDFB6C5C</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:modules:list</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T05:07:52Z</date>
<key>label</key>
<string>List loaded Apache modules</string>
<key>modificationDate</key>
<date>2015-07-06T03:03:51Z</date>
<key>plainText</key>
<string>apache2 -l</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>F275A226-A087-478F-8CF6-B6E373F28BDE</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:conf:security</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T04:05:15Z</date>
<key>label</key>
<string>Apache security.conf (template)</string>
<key>modificationDate</key>
<date>2012-03-16T04:05:44Z</date>
<key>plainText</key>
<string>ServerSignature Off
ServerTokens Prod
</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>A1A45DA1-8689-4225-9AE1-54AA44DB3E7A</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:config:test</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T03:01:07Z</date>
<key>label</key>
<string>Test Apache config</string>
<key>modificationDate</key>
<date>2012-03-16T03:07:50Z</date>
<key>plainText</key>
<string>/etc/init.d/apache2 configtest</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>4DA4B1B0-DF16-43C4-8ACB-B9DB5FFD2497</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:reload</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T02:59:34Z</date>
<key>label</key>
<string>Reload Apache config</string>
<key>modificationDate</key>
<date>2012-03-16T03:07:38Z</date>
<key>plainText</key>
<string>/etc/init.d/apache2 reload</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>B3497534-DF06-479E-9DAC-00399FF0F37B</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:httpd:reload</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T02:58:35Z</date>
<key>label</key>
<string>Reload Apache httpd config (without restart)</string>
<key>modificationDate</key>
<date>2012-03-16T03:07:35Z</date>
<key>plainText</key>
<string>/etc/init.d/httpd reload</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>702CFC2E-DFB6-4ECC-9A5C-8E27CC58E3CB</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:vhost:template</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T02:55:09Z</date>
<key>label</key>
<string>Apache VHost (template)</string>
<key>modificationDate</key>
<date>2015-07-06T02:58:16Z</date>
<key>plainText</key>
<string><VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName %fill:domain%
ServerAlias www.%fill:domain%
DocumentRoot /var/www/%fill:domain%/htdocs
<Directory /var/www/html>
<LimitExcept GET POST>
Order allow,deny
</LimitExcept>
</Directory>
# log files for this domain
CustomLog /var/log/apache2/%fill:domain%-access.log combined
ErrprLog /var/log/apache2/%fill:domain%-error.log
# Deflate (compression)
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
DeflateCompressionLevel 9
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Tracking compression
#DeflateFilterNote Input instream
#DeflateFilterNote Output outstream
#DeflateFilterNote Ratio ratio
#LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
</VirtualHost>
# SSL config
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName %fill:domain%
ServerAlias www.%fill:domain%
DocumentRoot /var/www/%fill:domain%/htdocs
# Logs
CustomLog /var/log/apache/www.foo.com-access.log combined
ErrorLog /var/log/apache/www.foo.com-error.log
# Basic SSL configuration
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile "/var/www/%fill:domain%/ssl/server.crt"
SSLCertificateKeyFile "/var/www/%fill:domain%/ssl/server.key"
</VirtualHost></string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>0AD5D31F-97AF-44B8-89F9-29D12ECAE590</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:status</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T02:53:27Z</date>
<key>label</key>
<string>Get Apache status</string>
<key>modificationDate</key>
<date>2015-07-06T02:50:19Z</date>
<key>plainText</key>
<string>apachectl %fillpart:name=Full output%full%fillpartend%status</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>8F0D4FE7-A7CF-4C24-B992-841738D53438</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:reboot</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T02:50:56Z</date>
<key>label</key>
<string>Restart Apache now!</string>
<key>modificationDate</key>
<date>2015-07-06T03:03:38Z</date>
<key>plainText</key>
<string>apachectl restart</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>CAA374A7-FCD8-43CE-ABF6-A7554EC7645E</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:stop</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T02:50:28Z</date>
<key>label</key>
<string>Stop Apache</string>
<key>modificationDate</key>
<date>2012-03-16T02:50:38Z</date>
<key>plainText</key>
<string>apachectl stop</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>2007A414-E9D3-4644-B2E9-7F36C4EF0457</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:start</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T02:49:55Z</date>
<key>label</key>
<string>Start Apache</string>
<key>modificationDate</key>
<date>2012-03-16T02:49:55Z</date>
<key>plainText</key>
<string>apachectl start</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>7C8E236D-C340-405B-A9EF-3D256AA4EE99</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:restart</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-03-16T02:48:14Z</date>
<key>label</key>
<string>Restart Apache gracefully</string>
<key>modificationDate</key>
<date>2012-03-16T02:49:25Z</date>
<key>plainText</key>
<string>apachectl graceful</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>904F14A5-CDF7-44F1-8A0C-F58413A018F2</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:bench</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-02-29T07:40:21Z</date>
<key>label</key>
<string>Apache Benchmark a domain or URL</string>
<key>modificationDate</key>
<date>2012-03-16T05:16:22Z</date>
<key>plainText</key>
<string>ab -n %fill:100requests% -c %fill:10concurrency% %fill:URL%/</string>
<key>snippetType</key>
<integer>3</integer>
<key>uuidString</key>
<string>DA381D6C-D5C4-407D-8F27-B1384A12BDCC</string>
</dict>
<dict>
<key>abbreviation</key>
<string>httpd:version</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-02-29T07:20:56Z</date>
<key>label</key>
<string>Get Apache (httpd) version (alternate)</string>
<key>modificationDate</key>
<date>2012-02-29T07:20:56Z</date>
<key>plainText</key>
<string>httpd -v</string>
<key>snippetType</key>
<integer>3</integer>
<key>uuidString</key>
<string>AEFE515F-3930-4300-8E96-9B4C8953BBDB</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:version</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2012-02-29T07:20:18Z</date>
<key>label</key>
<string>Get Apache version</string>
<key>modificationDate</key>
<date>2012-02-29T07:20:18Z</date>
<key>plainText</key>
<string>apache2ctl -v</string>
<key>snippetType</key>
<integer>3</integer>
<key>uuidString</key>
<string>F4F56384-B4DC-4A3C-9BC7-C4AC8E18C34E</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:httpd:start</string>
<key>abbreviationMode</key>
<integer>1</integer>
<key>creationDate</key>
<date>2012-02-29T05:19:14Z</date>
<key>label</key>
<string>Start Apache httpd</string>
<key>modificationDate</key>
<date>2012-03-16T02:47:58Z</date>
<key>plainText</key>
<string>/etc/init.d/httpd start</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>B8BE3AD5-483E-4B6D-B91B-527E2A0015B1</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:httpd:stop</string>
<key>abbreviationMode</key>
<integer>1</integer>
<key>creationDate</key>
<date>2012-02-29T05:18:59Z</date>
<key>label</key>
<string>Stop Apache httpd</string>
<key>modificationDate</key>
<date>2012-03-16T02:48:03Z</date>
<key>plainText</key>
<string>/etc/init.d/httpd stop</string>
<key>snippetType</key>
<integer>3</integer>
<key>uuidString</key>
<string>EBE2A1B6-3341-4C58-9C93-1E526CC269AF</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:httpd:restart</string>
<key>abbreviationMode</key>
<integer>1</integer>
<key>creationDate</key>
<date>2012-02-29T04:24:51Z</date>
<key>label</key>
<string>Restart Apache httpd</string>
<key>modificationDate</key>
<date>2012-03-16T02:48:07Z</date>
<key>plainText</key>
<string>/etc/init.d/httpd restart</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>6BD1B73B-CB9E-414F-9166-61F4411B97B7</string>
</dict>
<dict>
<key>abbreviation</key>
<string>apache:list</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2015-07-06T02:45:45Z</date>
<key>label</key>
<string>List all virtual hosts</string>
<key>modificationDate</key>
<date>2015-07-06T02:46:43Z</date>
<key>plainText</key>
<string>apache2ctl -S</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>5A641A1F-4885-485E-B739-894B212396A7</string>
</dict>
</array>
</dict>
</plist>