This will set up a raspbian access point with all traffic masqueraded through eth0
wget -O- https://gist.githubusercontent.com/slickplaid/a55bdcd5ad9c1ecc933bb0fd245dbbf6/raw/df2b624fc25ee742d971f999de85a4f4e2daaaf8/raspi-chromecast-ap.sh | sh
045e4a129a42d99765944f99c25c71c8e6a91417f7b8514d80e1447ebf230fc0c70f8c3ac2a0ab3077f0a6414541698cdb8dd8f10cf9b4f293b801bb7cf6509667 |
notes() { | |
if [ ! -z "$1" ]; then | |
# Using the "$@" here will take all parameters passed into | |
# this function so we can place everything into our file. | |
echo "$@" >> "$HOME/notes.md" | |
else | |
# If no arguments were passed we will take stdout and place | |
# it into our notes instead. | |
cat - >> "$HOME/notes.md" | |
fi |
FOR /D /r %%F in ("*") DO ( | |
pushd %CD% | |
cd %%F | |
FOR %%X in (*.rar *.zip *.001) DO ( | |
"C:\Program Files\7-zip\7z.exe" x -aos "%%X" | |
) | |
popd | |
) |
I hereby claim:
To claim this, I am signing this object:
sudo sed -i -e 's/mirror.rackspace.com\|archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list |
package main | |
import ( | |
"bufio" | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"fmt" | |
"io" | |
"io/ioutil" |
license: gpl-3.0 |
function buildRegexp(str) { | |
// start the regex with the | |
// ^ start key | |
let src = '^' + str; | |
// replace spaces with regex | |
// that accepts one or more spaces | |
// which will handle formatting | |
// inconsistencies | |
src = src.replace(/\s+/g, '\\s+'); |
var tables = $('.table'); | |
tables.each(function() { | |
var table = $(this); | |
var rows = table.find('tbody').find('tr'); | |
rows.each(function(i) { | |
var row = $(this); | |
row.find('td:eq(0)').text(i+1); | |
var access = parseInt(row.find('td:eq(5)').text(), 10); | |
if(access <= 0) { |