- Install a fresh image of Raspbian and boot the Pi
- Follow the installation guide if needed
- Go through the prompts to finish initial setup
- Open a Termial window
- Type
sudo apt-get install unclutter
- Type
sudo raspi-config
- Select
Boot Options
with Enter- Select
Wait for Network at Boot
with Enter - Select
Yes
with Enter
- Select
- Select
- Type
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
// --Uses execSync to call a remote prune origin, and then deletes any local branches that were pruned from the remote | |
(function() { | |
var exec = require('child_process').execSync; | |
var remoteBranchesBeforePrune = GetRemoteBranches(); | |
exec('git remote prune origin'); | |
var remoteBranchesAfterPrune = GetRemoteBranches(); | |
var prunedBranches = []; |
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
-- git commands which will autocomplete branch names after them: | |
local git_commands = {"co", "merge", "del"} | |
-- "g" is an alias I have for "git" so both of them are triggers | |
local git_triggers = {"g", "git"} | |
function git_checkout_match_generator(text, first, last) | |
local commandLine = rl_state.line_buffer | |
local matchedCommand = false | |
local matchedBranches = false |
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
// --Place in project's node_modules folder | |
// --Set this at the top of the main program.js | |
// global.requireLocal = require('local-modules.js').GetModule; | |
// --Call with requireLocal('file-to-get') to automatically get the right file | |
var _paths; | |
// --Add a root dir to scan through, or leave as '' to scan all folders (including node_modules) | |
var _rootDirName = ''; | |
module.exports = { |
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
# This is a blocklist to block samsung smart tv's sending meta data at home. | |
# Please help to collect domains! | |
# It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident. | |
device-metrics-us.amazon.com | |
samsungacr.com | |
samsungcloudsolution.com | |
samsungcloudsolution.net | |
pavv.co.kr | |
samsungotn.net |
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
// returns grouping of arr by key | |
let groupBy = function(arr, key) { | |
return arr.reduce(function(rv, x) { | |
(rv[x[key]] = rv[x[key]] || []).push(x); | |
return rv; | |
}, {}); | |
}; | |
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/bash | |
# Cloudflare as Dynamic DNS | |
# From: https://letswp.justifiedgrid.com/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" |