Do not use this guide. The dnscrypt protocol and dnscrypt-proxy configuration file have changed a lot since I wrote this gist. Check the following links for help:
- Install DNSMasq
$ brew install dnsmasq
#!/bin/sh | |
# | |
# a simple way to parse shell script arguments | |
# | |
# please edit and use to your hearts content | |
# | |
ENVIRONMENT="dev" |
#!/usr/bin/env python | |
''' | |
DEPENDENCIES: | |
$ brew install ffmpeg | |
$ brew install imagemagick | |
$ python ./mov2gif.py input.mov output.gif 15 | |
''' | |
#!/bin/bash | |
echo "$1" | |
mkdir /tmp/"$1"/ | |
gst-launch-1.0 filesrc location="$1" ! decodebin ! videoconvert ! pngenc ! multifilesink location="/tmp/$1/%04d.png" | |
echo "Trim files manually, and press enter to generate the GIF" | |
nautilus /tmp/"$1"/ & | |
read | |
echo "Generating GIF..." | |
convert -delay 5 /tmp/"$1"/*.png /tmp/"$1"/animation.gif |
Issue this command to terminal with your device connected : | |
$ adb shell pm list packages | |
If that doesn't work, then: | |
$ adb shell | |
$ su | |
$ pm list packages |
import Image | |
import sys | |
import glob | |
import ImageOps | |
# Trim all png images with white background in a folder | |
# Usage "python PNGWhiteTrim.py ../someFolder" | |
try: | |
folderName = sys.argv[1] |
def hash_file(file, block_size=65536): | |
hasher = hashlib.md5() | |
for buf in iter(partial(file.read, block_size), b''): | |
hasher.update(buf) | |
return hasher.hexdigest() | |
def upload_to(instance, filename): | |
""" |
version: '2' | |
services: | |
consul: | |
image: consul | |
volumes: | |
- ./data/consul:/consul/data | |
command: /bin/consul agent -server -data-dir="/consul/data" -bootstrap -client="0.0.0.0" -advertise="127.0.0.1" -ui | |
ports: | |
- 80:8500 #HTTP API/UI | |
- 53:8600/udp #DNS |
#!/bin/bash | |
# macOS Sierra TFTP Server Creator | |
# Author Mertcan GÖKGÖZ - 07.05.2017 15:00 (GMT +3) | |
# | |
# Requirements | |
# - Macos Sierra 10.12.4 and later | |
# - 'homebrew' package manager | |
# - brew install dialog | |
# | |
# How to use |