This file contains hidden or 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
| unbindall | |
| bind "0" "slot10" | |
| bind "1" "slot1" | |
| bind "2" "slot2" | |
| bind "3" "slot3" | |
| bind "4" "slot4" | |
| bind "5" "slot5" | |
| bind "6" "slot6" | |
| bind "7" "slot7" | |
| bind "8" "slot8" |
This file contains hidden or 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 imagetyperzapi2 | |
| #... then go to the page using a webdriver object called driver | |
| try: | |
| driver.find_element_by_xpath("//*[@data-sitekey]") | |
| captcha = True | |
| except NoSuchElementException: | |
| captcha = False |
This file contains hidden or 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
| [uwsgi] | |
| # telling user to execute file | |
| uid = bunny | |
| # telling group to execute file | |
| gid = webapps | |
| # name of project you during "django-admin startproject <name>" | |
| project_name = updateMe |
This file contains hidden or 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 sys | |
| import socket | |
| import select | |
| import random | |
| from itertools import cycle | |
| # dumb netcat server, short tcp connection | |
| # $ ~ while true ; do nc -l 8888 < server1.html; done | |
| # $ ~ while true ; do nc -l 9999 < server2.html; done | |
| SERVER_POOL = [('10.157.0.238', 8888)] |
This file contains hidden or 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
| #!/bin/bash | |
| /usr/bin/curl -sSf --socks5-hostname $(echo ${3}):$(echo ${4}) www.google.com >/dev/null |
This file contains hidden or 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
| FROM ubuntu:xenial | |
| RUN apt-get update \ | |
| && DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \ | |
| # build tools | |
| nasm \ | |
| build-essential \ | |
| autoconf \ | |
| automake \ | |
| libtool \ |
This file contains hidden or 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 cStringIO | |
| import PIL.Image | |
| from ssim import compute_ssim | |
| def get_ssim_at_quality(photo, quality): | |
| """Return the ssim for this JPEG image saved at the specified quality""" | |
| ssim_photo = cStringIO.StringIO() | |
| # optimize is omitted here as it doesn't affect | |
| # quality but requires additional memory and cpu |
This file contains hidden or 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
| #--------------------------------------------------------------------- | |
| # Example configuration for a possible web application. See the | |
| # full configuration options online. | |
| # | |
| # http://haproxy.1wt.eu/download/1.4/doc/configuration.txt | |
| # | |
| #--------------------------------------------------------------------- | |
| global | |
| log 127.0.0.1 local2 |
This file contains hidden or 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; | |
| server_name localhost; | |
| #charset koi8-r; | |
| #access_log /var/log/nginx/log/host.access.log main; | |
| if ($allowed_country = yes) { | |
| set $exclusions 1; | |
| } |
NewerOlder