- To do a 30-30-30 reset you must push the reset button with your router powered on. Hold it for 30 seconds with the router powered on. STILL holding it, pull the power cord for 30 seconds. Still holding it, plug the power back into your router and continue to hold the reset button for 30 more seconds. You will have held the button for a full 90 seconds without releasing it.
- Set a static IP on your computer to 192.168.1.7. Subnet mask should be 255.255.255.0.
- Connect the lan cable from your computer to a LAN port of your router. Make sure your router is plugged in. Nothing should be connected to your computer or the router except the lan cable between them. Turn your firewall and any wireless computer connections OFF.
- Power cycle the router (uplug the power from the router for 30 seconds and then plug it back in)
- Open your browser to 192.168.1.1 by putting that in the browser address window of your browser. You should open the dd-wrt webgui
- Leave the username blank and enter "admin" as the pa
This file contains hidden or 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
while read p; do # For each Github account | |
# use auth to avoid getting locked out for too many requests per hour :) | |
CURL='curl -s -u username:password' | |
# List all repos within an account | |
REPOURLS=$($CURL $p | grep '"url": "https://api.github.com/repos' | sed 's/.*"\(https.*\)",/\1/') | |
for URL in $REPOURLS; do | |
# Get all the info | |
REPOINFO=$($CURL $URL) | |
# Find the "full name", including organization | |
REPONAME=( $(echo "$REPOINFO" | grep full_name | sed 's/.*:\s"\(.*\)",/\1/') ) |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. | |
Vagrant.configure("2") do |config| | |
# Every Vagrant development environment requires a box. You can search for | |
# boxes at https://atlas.hashicorp.com/search. | |
config.vm.box = "centos/7" |
https://keepachangelog.com/en/1.0.0/
Release Notes CHANGELOG.md
Added
for new featuresChanged
for change of existing functionality
This file contains hidden or 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
@ECHO OFF | |
cd C:\workspace\ | |
set path=C:\Users\jbrinkmann\AppData\Local\Continuum\Anaconda2;C:\Users\jbrinkmann\AppData\Local\Continuum\Anaconda2\Scripts;%PATH% | |
start "IPython Notebook" "C:\Users\jbrinkmann\AppData\Local\Continuum\Anaconda2\Scripts\jupyter-notebook.exe" | |
REM %USERPROFILE%\AppData\Local\Continuum\Anaconda2\Menu\jupyter.ico |
This file contains hidden or 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
# Make a boneyard for projects | |
mkdir /d/workspace/user.git | |
# For a new project, first make a repo to push to | |
git init --bare /d/workspace/user.git/project-api.git | |
# Connect the project to the blank repo | |
cd /d/workspace/project-api/ | |
git remote add user /d/workspace/user.git/project-api.git | |
git remote add mygithub https://github.com/user/project-api.git |
- Install Xming: http://sourceforge.net/projects/xming/
- Set your path variable:
export PATH=$PATH:/c/Users/myself/AppData/Local/Xming/
- [always?]: Run XLaunch and select the display setting you want to use
- Export DISPLAY variable:
export DISPLAY=localhost:0
- ssh with the x11 forwarding enabled:
ssh -XY me@myhost
- Try it out:
nautilus
This file contains hidden or 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
# ~/.ssh/config | |
Host * | |
# Send a sign-of-life signal every 4 minutes | |
TCPKeepAlive yes | |
ServerAliveCountMax 3 | |
ServerAliveInterval 240 | |
# Can speed up logins to some servers | |
GSSAPIAuthentication no | |
GSSAPIKeyExchange no |
This file contains hidden or 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
# To create an environment from a specific python version | |
conda create -n <env-name> python=2.7.13 | |
# [OPTIONAL] conda config --add channels conda-forge | |
# To allow Jupyter to find conda env `Python [conda env: root]`, etc. | |
source activate <env-name> | |
conda install jupyter ipykernel nb_conda --yes | |
source deactivate |
This file contains hidden or 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
# Setup python to look to /path/2/my/scripts (append it to python path) | |
CUSTOMDIR=/path/2/my/scripts | |
PYTHONSITEDIR=$(python -c 'import site; site._script()' --user-site) | |
mkdir -vp $PYTHONSITEDIR | |
echo $CUSTOMDIR > $PYTHONSITEDIR/custom.pth | |
# Now, create a script | |
tee $CUSTOMDIR/my_script.py <<EOF | |
import os | |
os.environ['SET_THIS'] = '/path/to/data' |