Make sure Docker is installed!
Get your Minio endpoint url, accesskey, and secretkey ready!
docker plugin install rexray/s3fs \| import time | |
| import board | |
| import busio | |
| from digitalio import DigitalInOut, Direction, Pull | |
| from adafruit_pm25.i2c import PM25_I2C | |
| import paho.mqtt.client as mqtt | |
| from secrets import secrets | |
| reset_pin = None |
| # Windows (receiver) side: | |
| .\ffplay.exe -nodisp -ac 2 -acodec pcm_u8 -ar 48000 -analyzeduration 0 -probesize 32 -f u8 -i udp://0.0.0.0:18181?listen=1 | |
| # Linux (transmitter) side: | |
| pactl load-module module-null-sink sink_name=remote | |
| ffmpeg -f pulse -i "remote.monitor" -ac 2 -acodec pcm_u8 -ar 48000 -f u8 "udp://RECEIVER:18181" | |
| pavucontrol # Change the default output to the Null sink or move single applications to this "output" device. |
| # config file for ansible -- http://ansible.com/ | |
| # ============================================== | |
| # nearly all parameters can be overridden in ansible-playbook | |
| # or with command line flags. ansible will read ANSIBLE_CONFIG, | |
| # ansible.cfg in the current working directory, .ansible.cfg in | |
| # the home directory or /etc/ansible/ansible.cfg, whichever it | |
| # finds first | |
| [defaults] |
| FROM ubuntu:16.04 | |
| ENV GIT_URL git://github.com/MyHush/hush.git | |
| ENV HUSH_CONF /root/.hush/hush.conf | |
| # install dependencies | |
| RUN apt-get autoclean && apt-get autoremove && apt-get update && \ | |
| apt-get -qqy install --no-install-recommends build-essential \ | |
| automake ncurses-dev libcurl4-openssl-dev libssl-dev libgtest-dev \ |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| ## Checkout all branches from remote as tracking branches. | |
| UPSTREAM=$1 | |
| MYREPO=$2 | |
| usage() { | |
| echo "Usage:" | |
| echo "$0 <upstream-remote> <target-remote>" | |
| echo "" |
| ## | |
| # Brewfile by Joel Parker Henderson and SixArm.com | |
| # | |
| # CAUTION: THIS IS A WORK IN PROGRESS. USE AT YOUR OWN RISK. | |
| # | |
| # We use this Brewfile for our teams and their developer laptops. | |
| # | |
| # This file installs many apps, including office suites, multimedia suites, | |
| # programming langauges and IDEs, unix utilities, and sysadmin tools. | |
| # |
(Inspired by https://medium.com/@icanhazedit/clean-up-unused-github-rpositories-c2549294ee45#.3hwv4nxv5)
Open in a new tab all to-be-deleted github repositores (Use the mouse’s middle click or Ctrl + Click) https://github.com/username?tab=repositories
Use one tab https://chrome.google.com/webstore/detail/onetab/chphlpgkkbolifaimnlloiipkdnihall to shorten them to a list.
Save that list to some path
The list should be in the form of “ur_username\repo_name” per line. Use regex search (Sublime text could help). Search for ' :.*' and replace by empty.
| #include "stdafx.h" | |
| #include "windivert.h" | |
| #include <string> | |
| #include <time.h> | |
| using namespace std; | |
| typedef struct | |
| { | |
| WINDIVERT_IPHDR ip; |