Skip to content

Instantly share code, notes, and snippets.

View awilliams000's full-sized avatar

Anthony Williams awilliams000

View GitHub Profile
@awilliams000
awilliams000 / 0_reuse_code.js
Last active August 29, 2015 14:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am igs-awilliams on github.
  • I am sp00k (https://keybase.io/sp00k) on keybase.
  • I have a public key whose fingerprint is D332 3DE0 D770 2FE5 6A04 C40B 019C 6AA9 8416 79AA

To claim this, I am signing this object:

#!/bin/bash
DEFAULT_PIPE_NAME=".plumber"
PIPE_NAME="${1:-$DEFAULT_PIPE_NAME}"
if [ ! -p $PIPE_NAME ]; then
echo "Created pipe ${PIPE_NAME}..."
mkfifo $PIPE_NAME
fi
There are 38 section headers, starting at offset 0x219a0:
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
[ 1] .interp PROGBITS 0000000000400238 00000238
000000000000001c 0000000000000000 A 0 0 1
[ 2] .note.ABI-tag NOTE 0000000000400254 00000254
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
sudo rm -rf /usr/local/share/vim
sudo rm /usr/bin/vim
sudo mkdir /usr/include/lua5.1/include
sudo cp /usr/include/lua5.1/*.h /usr/include/lua5.1/include/

Keybase proof

I hereby claim:

  • I am awilliams000 on github.
  • I am sp00k (https://keybase.io/sp00k) on keybase.
  • I have a public key ASCgH1rTsDup8ATSXJi03jqxroMDaJUjHjM7CI1CThLv_go

To claim this, I am signing this object:

### post commit webcam (begin) ###
#!/usr/bin/env ruby
file="~/.gitshots/#{Time.now.to_i}.jpg"
unless File.directory?(File.expand_path("../../rebase-merge", __FILE__))
puts "Taking capture into #{file}!"
system "fswebcam -q -S 3 #{file} &"
end
exit 0
### post commit webcam (end) ###
### post commit webcam (begin) ###
#!/usr/bin/env ruby
file="~/.gitshots/#{Time.now.to_i}.jpg"
unless File.directory?(File.expand_path("../../rebase-merge", __FILE__))
puts "Taking capture into #{file}!"
system "imagesnap -q -w 3 #{file} &"
end
exit 0
### post commit webcam (end) ###
# Disable fortune startup messages
e cfg.fortunes=false
# Show comments at right of disassembly
e asm.cmtright=true
# Shows pseudocode in disassembly. Eg mov eax, str.ok = > eax = str.ok
# Display stack and register values on top of disasembly view (visual mode)
e cmd.stack = true
wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.1_all.deb && dpkg -i kali-archive-keyring_2018.1_all.deb