Skip to content

Instantly share code, notes, and snippets.

Jelly Robot jellyjellyrobot

Block or report user

Report or block jellyjellyrobot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jellyjellyrobot
jellyjellyrobot / CiscoKeyGen.py
Created Feb 28, 2018 — forked from paalfe/CiscoKeyGen.py
Cisco IOU License Generator. Originally found at http://www.routingloops.co.uk/cisco/gns3-v1-1-install-on-ubuntu-14-04-lts/, I have done a few changes to it. Make the file executable with " chmod +x CiscoKeyGen.py " and execute it " ./CiscoKeyGen.py ".
View CiscoKeyGen.py
#! /usr/bin/python
print "\n*********************************************************************"
print "Cisco IOU License Generator - Kal 2011, python port of 2006 C version"
import os
import socket
import hashlib
import struct
# get the host id and host name to calculate the hostkey
hostid=os.popen("hostid").read().strip()
hostname = socket.gethostname()
@jellyjellyrobot
jellyjellyrobot / _lxc
Created Jan 5, 2018 — forked from sabottenda/_lxc
lxc zsh completion
View _lxc
#compdef lxc-start lxc-stop lxc-console lxc-restart lxc-create lxc-destroy lxc-monitor lxc-cgroup lxc-checkpoint lxc-execute lxc-freeze lxc-unfreeze lxc-info lxc-netstat lxc-ps lxc-wait
#=====================================================================================================
# original source is here: https://lists.linuxcontainers.org/pipermail/lxc-devel/2010-April/001172.html
#=====================================================================================================
_lxc_containers() {
local -a containers
containers=( $(/bin/ls /var/lib/lxc) )
compadd "$@" -a containers
@jellyjellyrobot
jellyjellyrobot / gist:cd58487fd186f81f75b90eeedc618def
Last active Mar 4, 2017
GNS3 console configuration for OSX, Iterm2v3, and a shell that does not quit terminal negotiating
View gist:cd58487fd186f81f75b90eeedc618def
osascript
-e 'tell application "iTerm"'
-e 'activate'
-e 'if (count of windows) = 0 then'
-e ' set t to (create window with profile "cisco")'
-e 'else'
-e ' set t to current window'
-e 'end if'
-e 'tell t'
-e ' set newTab to (create tab with profile "cisco" command "sh")'
@jellyjellyrobot
jellyjellyrobot / ._
Last active Feb 25, 2018
Me being a lazy guy
View ._
#!/bin/sh
# Change Mirrors
# sed --in-place 's/us.archive.ubuntu.com/mirror.0x.sg/' /etc/apt/sources.list
# sed --in-place 's/us.archive.ubuntu.com/download.nus.edu.sg\/mirror/' /etc/apt/sources.list
get_and_execute()
{
FILE=$1
echo "Getting $FILE"
@jellyjellyrobot
jellyjellyrobot / osx_mifare_install.sh
Last active Feb 12, 2018
libnfc + mfoc for fun, maybe profit?
View osx_mifare_install.sh
# Prereq
brew tap jlhonora/lsusb
brew install autoconf doxygen automake libtool libusb libusb-compat --universal wget pkgconfig lsusb
# Libnfc
git clone git@github.com:nfc-tools/libnfc.git
cd libnfc
./make_release.sh
autoreconf -vis
./configure --enable-doc --with-drivers=all --sysconfdir=/etc --prefix=/usr
@jellyjellyrobot
jellyjellyrobot / keybase.md
Last active Aug 22, 2016
Keybase Auth - jellyjellyrobot
View keybase.md

Keybase proof

I hereby claim:

  • I am jellyjellyrobot on github.
  • I am jellyjellyrobot (https://keybase.io/jellyjellyrobot) on keybase.
  • I have a public key whose fingerprint is CB25 3D12 B5AF F863 50DD 74CF 4D00 1E92 3F1D 6029

To claim this, I am signing this object:

@jellyjellyrobot
jellyjellyrobot / open_in_term.scpt
Last active Feb 26, 2016
new iterm has different api. updated the code to reflect that
View open_in_term.scpt
-- Adapted from canuckistani/openItermHere.scpt
-- https://iterm2.com/applescript.html <- new api
-- cd to the current finder window folder in iTerm. Or drag a folder onto this script to cd to that folder in iTerm.
-- found this script in the comments of this article: http://www.macosxhints.com/article.php?story=20050924210643297
-- Instructions for use:
-- paste this script into Script Editor and save as an application to ~/Library/Scripts/Applications/Finder/cd to in iTerm
-- run via the AppleScript Menu item (http://www.apple.com/applescript/scriptmenu/)
-- Or better yet, Control-click and drag it to the top of a finder window so it appears in every finder window.
View gist:20da96aec8d2e3a60225
## For those times when you're too lazy to reboot and your Mac DNS client screws up.
sudo discoveryutil mdnsflushcache
sudo discoveryutil udnsflushcaches
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
@jellyjellyrobot
jellyjellyrobot / CanonLide20Mac
Created Mar 5, 2015
Using Canon Lide 20 on Mac
View CanonLide20Mac
#Download and run Relevant files from http://www.ellert.se/twain-sane/
#TWAIN SANE Interface
#SANE Preference Pane
#SANE backends
#libusb
# Scan images using command line
#scanimage --mode Gray --depth 16 --resolution 300 -x 215 -y 297 --format=tiff > blah.tiff
You can’t perform that action at this time.