I hereby claim:
- I am dannymcc on github.
- I am dmcc (https://keybase.io/dmcc) on keybase.
- I have a public key ASCaikJT8WxLbn8dslsCM8oQeuKNx52qdB7JxGyqMHCWkQo
To claim this, I am signing this object:
class ApplicationController < ActionController::Base | |
before_filter :protect | |
protect_from_forgery | |
def protect | |
@ips = ['127.0.0.1', '116.155.117.121'] | |
if not @ips.include? request.remote_ip | |
# Check for your subnet stuff here, for example | |
# if not request.remote_ip.include?('127.0,0') | |
render :text => "You are unauthorized" |
No. Time Source Destination Protocol Length Info | |
1 0.000000 192.168.1.45 192.168.3.1 TCP 62 41636 > printer [SYN] Seq=0 Win=8192 Len=0 MSS=1460 SACK_PERM=1 | |
Frame 1: 62 bytes on wire (496 bits), 62 bytes captured (496 bits) | |
Ethernet II, Src: WistronI_1d:5d:05 (f0:de:f1:1d:5d:05), Dst: Draytek_78:9a:f8 (00:50:7f:78:9a:f8) | |
Internet Protocol Version 4, Src: 192.168.1.45 (192.168.1.45), Dst: 192.168.3.1 (192.168.3.1) | |
Transmission Control Protocol, Src Port: 41636 (41636), Dst Port: printer (515), Seq: 0, Len: 0 | |
No. Time Source Destination Protocol Length Info | |
2 0.144101 192.168.1.45 192.168.1.255 NBNS 92 Name query NB ISATAP<00> |
@echo off | |
ECHO***************************************************************************************** | |
ECHO Please close all running programs, and plug into A/C power if you are on a laptop. | |
ECHO This will take a LONG time to complete. | |
ECHO ***************************************************************************************** | |
REM This batch will set Check Disk to run after reboot, run Disk Cleanup, delete temp files, | |
REM run Disk Defragmenter, delete this file, and reboot the machine, starting Check Disk | |
REM Check Disk | |
REM ================ |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# -------------------------------------------------------------------------------------------- | |
# Installs Ruby 2.4 using rbenv/ruby-build on the Raspberry Pi (Raspbian) | |
# | |
# Run from the web: | |
# bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh) | |
# -------------------------------------------------------------------------------------------- | |
# Welcome message |
#!/bin/bash | |
if [ "$1" == "new" ]; then | |
FILENAME=$(date +"%d.%m.%Y") | |
vim $FILENAME && | |
mcrypt -u $FILENAME | |
else | |
if [ $# -eq 1 ]; then | |
PTEXT=$(cat $1 | mcrypt -d) && | |
echo $PTEXT | vim -R - | |
else |
servers = ( | |
{ | |
address = "irc.mikezauner.com"; | |
chatnet = "zl4u"; | |
port = "6697"; | |
autoconnect = "yes"; | |
use_ssl = "yes"; | |
}, | |
{ | |
address = "irc.freenode.net"; |
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2016-05-27-raspbian-jessie.img
) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config
to:
@echo off | |
echo **YOU MUST BE AN ADMINISTRATOR ON THIS MACHINE FOR THE SCRIPT TO WORK PROPERLY** | |
echo THIS SCRIPT WORKS FOR WINDOWS XP AND WINDOWS 7 | |
REM This determines if you're running XP or Windows 7 | |
ver | find "XP" > nul | |
if %errorlevel% == 1 goto :win7 | |
break | |
REM This runs if XP is found. The Windows 7 commands are at the bottom of this script | |
echo IDENTIFIED WINDOWS XP | |
echo Checking if printer "[PRINTER NAME HERE]" already exists |
I hereby claim:
To claim this, I am signing this object: