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
-- | |
-- bitmovr.lua | |
-- simple lua webserver which starts to listen on a socket, and | |
-- forwards all GET calls it receives to a backend server | |
-- this is extremely lightweight, as it will move the bits from one | |
-- socket to another, without any disk i/o | |
-- | |
-- Depends on md5, io, LuaSockets and Memcached.lua | |
-- | |
-- Application flow: |
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
server { | |
listen *:80; | |
location = /crossdomain.xml { | |
root /var/www/html/; | |
} | |
location = /test.html { | |
root /var/www/html/; | |
} |
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 python | |
import os | |
import time | |
from slackclient import SlackClient | |
slack_token = os.environ["SLACK_API_TOKEN"] | |
sc = SlackClient(slack_token) | |
stuff = { | |
"<@U8Q1UCGPM>": 243, # This is the slack user id | |
"@whatever": 2, # Regular stuff also works |
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
# pip install pyminifier | |
# pip install yaml | |
import subprocess | |
import os | |
import sys | |
current_dir = os.path.dirname(os.path.abspath(__file__)) | |
import yaml |
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
{ | |
"170038E91C": "1003729691", | |
"17003F5A1D": "1004151834" | |
} |
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 os | |
import requests | |
import unittest | |
import vcr | |
dir_path = os.path.dirname(os.path.realpath(__file__)) | |
dd_vcr = vcr.VCR( | |
cassette_library_dir="%s/cassettes" % dir_path, | |
path_transformer=vcr.VCR.ensure_suffix(".yml"), |
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
$ ./configure --add-module=/home/svdgraaf/tmp/nginx/ngx_http_bytes_filter_module-57365655ee44 --with-http_geoip_module --add-module=/home/svdgraaf/tmp/nginx/ngx_secure_download |
OlderNewer