Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
var jtv_api=function(){var e={},p=!(!document.all||window.opera),h=function(a,b){for(var d in a)a.hasOwnProperty(d)&&b(d,a[d])},k=function(a,b){for(var d=a.length,c=0;c<d;c++)b(a[c],c)},q=function(a,b){if(a.indexOf)return-1!=a.indexOf(b);for(var d=a.length,c=0;c<d;c++)if(a[c]==b)return!0;return!1},l=function(a,b){var d={};h(a,function(a,g){q(b,a)&&(d[a]=g)});return d},r=function(a){var b=[];h(a,function(a,c){b.push(a+"="+c)});return b.join("&")},n=function(a){var b={};k(a.split("&"),function(a){var a= | |
a.split("="),c=a[1];b[a[0]]=-1!=c.indexOf('"')?c.split('"')[1]:c});return b},m=function(a,b){var d={};h(a,function(b,a){d[b]=a});h(b,function(b,a){d[b]=a});return d},s=function(){for(var a=[],b=0;20>b;b++)a.push("abcdefghujklmnopqrstuvwxyz".charAt(26*Math.random()));a=a.join("");return document.getElementById(a)?s():a},j=function(a,b,d){a&&a[b]?a[b].apply(a,Array.prototype.slice.call(arguments).slice(2)):window.setTimeout(function(){j(a,b,d)},10)},t=function(a,b){"undefined"!=typeof a&&null!==a?b(a): | |
window.setT |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
/* open up chrome dev tools (Menu > More tools > Developer tools) | |
* go to network tab, refresh the page, wait for images to load (on some sites you may have to scroll down to the images for them to start loading) | |
* right click/ctrl click on any entry in the network log, select Copy > Copy All as HAR | |
* open up JS console and enter: var har = [paste] | |
* (pasting could take a while if there's a lot of requests) | |
* paste the following JS code into the console | |
* copy the output, paste into a text file | |
* open up a terminal in same directory as text file, then: wget -i [that file] | |
*/ |
#!/bin/bash | |
# Thanks to Josh Highland! | |
# http://joshhighland.com/2011/07/14/rename-all-files-names-in-a-directory-to-lower-case/ | |
for i in *; do mv "$i" "$(echo $i|tr A-Z a-z)"; done |
You may want to be able to pick between a NethunterOS (based on LineageOS) and a different ROM to seperate work from please.
Multirom allows you to pick which OS (or ROM) to load on boot (think of GRUB).
As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.
# | |
# This script is depricated go to this repo to get the latest version: | |
# https://github.com/shokinn/emby-updater | |
# | |
# | |
# | |
# If you still need the old (bash) version, you can find it in the older Versions of this gist. | |
# |
Reed Slaby, March 2018
Having grown tired of wasting a perfectly good monitor on my ethereum mining rig, I finally decided to replace the Ubuntu Desktop 16.04 installation with Ubuntu Server 16.04. Many of the gtutorials available at the time of this writing range from unecessarily complicated to flat-out wrong. This guide is intended to address many of those shortfalls.
To complete this guide, you should already have:
Ever felt envious of those pretty green lock on sites like Github.com or Google.com? Ever wished to have one of those for services on your homelab? Well wish no more because I have a guide for you!
This guide is written for Ubuntu 16.04 server with domain registered on NameSilo and nameservers using Cloudflare. However it will work for any OS that Caddy supports (this includes Linux, Windows, macOS and many others on several architectures) and any other DNS provider with an API that Caddy supports.
If you own an AMEX card, you can add a bunch of offers to the card in this link: https://global.americanexpress.com/offers/eligible
There are many offers, and they change all the time. Instead of clicking "Add to card" repeatedly, I created this bookmarklet.
In Chrome, add a new bookmark (right click on bookmarks bar -> "Add Page...") with the following URL: