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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: gunicorn_django | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Gunicorn WSGI server for django | |
# Description: This script starts a gunicorn instance for each django instance | |
### END INIT 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
#!/usr/bin/env python3 | |
import re | |
from urllib import request | |
import os | |
WEBSITE = "http://confluence.jetbrains.net/display/IDEADEV/IDEA+X+EAP" | |
MATCH = r".*(http://download\.jetbrains\.com/idea/ideaIU-(\d+\.\d+)\.tar\.gz).*" | |
with request.urlopen(WEBSITE) as h: |
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 argparse | |
import os | |
from os.path import expanduser | |
import re | |
parser = argparse.ArgumentParser(description="Remove raw images without matching jpg (because the jpgs have been removed). Works only for Canon Files. Requires exiftool") | |
parser.add_argument("directory", metavar="dir", help="scope for image search to work on") | |
parser.add_argument("-f", "--force", action='store_true', help="delete detected files, instead of just display them") |
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
### Keybase proof | |
I hereby claim: | |
* I am zauberpony on github. | |
* I am elmar (https://keybase.io/elmar) on keybase. | |
* I have a public key whose fingerprint is AEF0 0A1B BC9C F903 5EB7 BD6D ED51 E88F 8836 FA38 | |
To claim this, I am signing this object: |
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
#!/bin/sh - | |
#=============================================================================== | |
# | |
# FILE: am-i-changed.sh | |
# | |
# USAGE: ./am-i-changed.sh | |
# | |
# DESCRIPTION: simple snippet to test if the current file has changed, thus needs to be re-run | |
# | |
# OPTIONS: --- |
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
location /ip { | |
default_type 'text/plain'; | |
content_by_lua "ngx.print(ngx.var.remote_addr)"; | |
} |
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
Unattended-Upgrade::Origins-Pattern { | |
// Fix missing Rasbian sources. | |
"origin=Debian,codename=${distro_codename},label=Debian"; | |
"origin=Debian,codename=${distro_codename},label=Debian-Security"; | |
"origin=Raspbian,codename=${distro_codename},label=Raspbian"; | |
"origin=Raspberry Pi Foundation,codename=${distro_codename},label=Raspberry Pi Foundation"; | |
}; |
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
use aws_sdk_s3::Client; | |
// sample bucket name of an existing bucket | |
const BUCKET_NAME: &str = "sweap-ui-test-dev"; | |
/// create a service-key with HMAC enabled, | |
/// get the content like this: `ibmcloud resource service-key my-key` | |
/// | |
/// set the environment-variables: | |
/// AWS_ACCESS_KEY_ID= the cos_hmac_keys.access_key_id |