Credit to @jkishner for https://gist.github.com/jkishner/2fccb24640a27c2d7ac9
Also interesting: https://gist.github.com/cdown/1163649
| #!/bin/bash | |
| # Cloudflare as Dynamic DNS | |
| # From: https://letswp.io/cloudflare-as-dynamic-dns-raspberry-pi/ | |
| # Based on: https://gist.github.com/benkulbertis/fff10759c2391b6618dd/ | |
| # Original non-RPi article: https://phillymesh.net/2016/02/23/setting-up-dynamic-dns-for-your-registered-domain-through-cloudflare/ | |
| # Update these with real values | |
| auth_email="[email protected]" | |
| auth_key="global_api_key_goes_here" | |
| zone_name="example.com" |
| #!/bin/sh | |
| sleep 5 | |
| ffmpeg -re -f mjpeg -r 10 -i "http://localhost/?action=stream" -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 1k -strict experimental -s 640x360 -vcodec h264 -pix_fmt yuv420p -g 20 -vb 500k -preset ultrafast -crf 31 -r 10 -f flv "rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx" 2> /home/pi/ffmpeg.log |
Credit to @jkishner for https://gist.github.com/jkishner/2fccb24640a27c2d7ac9
Also interesting: https://gist.github.com/cdown/1163649
| #!/usr/bin/env bash | |
| removevolumes() { | |
| sudo docker volume rm $(sudo docker volume ls -qf dangling=true) | |
| sudo docker volume ls -qf dangling=true | xargs -r sudo docker volume rm | |
| } | |
| removenetwork() { | |
| sudo docker network ls | |
| sudo docker network ls | grep "bridge" |
pkgin update
pkgin in syncthing
groupadd users
useradd -d /srv/syncthing -c "syncthing user" -s /usr/bin/false -g users synctg
mkdir -p /srv/syncthing
chown synctg:users /srv/syncthing
svccfg import syncthing.xml
svcadm enable syncthing
| Xft.dpi: 160 | |
| Xft.autohint: 0 | |
| Xft.lcdfilter: lcddefault | |
| Xft.hintstyle: hintfull | |
| Xft.hinting: 1 | |
| Xft.antialias: 1 | |
| Xft.rgba: rgb |
| Add the following gmail filters to trash all messages from useless subscription lists. | |
| Do this for both gmail filters below: | |
| 1. Login to Gmail and click Settings->Filters->Create a new filter | |
| 2. Paste the Gmail filter into the "Has the words" text field | |
| 3. Click "Create filter with this Search »", then "Delete it", then "Create filter" | |
| # Gmail filter that deletes all subscription spam (anything with an "unsubscribe" button): |
| /* | |
| * Adds a team to all the repos in a Github organization. This is a tedious | |
| * process in the UI. You'll need a newer version of node to run this (e.g 9+) | |
| * because it uses async/await. | |
| * | |
| * Instructions: | |
| * | |
| * 1. Copy this file somewhere on your computer, e.g. ~/addteamrepos.js | |
| * 2. Fill in the uppercase variables below with the right values | |
| * 3. Run this file: `$ node ~/addteamrepos.js` |
I hereby claim:
To claim this, I am signing this object:
| # Use this script to test that your Telegram bot works. | |
| # | |
| # Install the dependency | |
| # | |
| # $ gem install telegram_bot | |
| # | |
| # Run the bot | |
| # | |
| # $ ruby bot.rb | |
| # |