This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream my_app { | |
server unix:///var/run/puma/my_app.sock; | |
} | |
log_format healthd '$msec"$uri"' | |
'$status"$request_time"$upstream_response_time"' | |
'$http_x_forwarded_for'; | |
server { | |
listen 80; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STORAGE = 'thumbor.storages.redis_storage' | |
# ALLOW_UNSAFE_URL = True | |
AUTO_WEBP = True | |
DETECTORS = [ 'thumbor.detectors.face_detector', 'thumbor.detectors.feature_detector' ] | |
OPTIMIZERS = ['thumbor.optimizers.jpegtran', 'thumbor.optimizers.gifv'] | |
MAX_AGE = 30 * 24 * 60 * 60 | |
FFMPEG_PATH = '/usr/bin/avconv' | |
## Insert private stuff next: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user@ip-10-0-255-91 ~]$ curl http://debug.netdna-cdn.com | |
You are hitting the MaxCDN New York Datacenter<br> | |
<img src=netdna.gif?city=3 > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
import random | |
for i in range(0, 100): | |
if not i % 15: | |
random.seed(1178741599) | |
print([i+1, "Fizz", "Buzz", "FizzBuzz"][random.randint(0,3)]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"messages": " \u001b[1m\u001b[35mExternalPlatform Load (1.5ms)\u001b[0m SELECT <REST OF QUERY>\u001b[0m\n{\"method\":\"GET\",\"path\":\"/api/v1/settings/header_info\",\"format\":\"*/*\",\"controller\":\"api/v1/settings\",\"action\":\"header_info\",\"status\":200,\"duration\":20.04,\"view\":0.21,\"db\":9.41}", | |
"level": "INFO" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for /d %%i in ("%systemroot%\Microsoft.Net\Framework\v*") do for /d %%f in ("%%i\Temporary ASP.NET Files\*") do RD /q/s "%%f" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
from random import sample | |
rand_strings = set() | |
string_count = 100 | |
string_len = 8 | |
string_prefix = "" | |
char_choices = string.uppercase + string.digits |
NewerOlder