Skip to content

Instantly share code, notes, and snippets.

😼

Ryan Shipp rshipp

😼
Block or report user

Report or block rshipp

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
@rshipp
rshipp / wwwextract.py
Created Mar 4, 2019
extract iocs from urls
View wwwextract.py
#!/usr/bin/env python2
# dependencies: pip install requests bs4 iocextract
# usage: python wwwextract.py URL
import sys
import requests
import bs4
import iocextract
response = requests.get(sys.argv[1])
View vmray_example.py
import sys
import time
import pprint
from sandboxapi import vmray
# connect to the sandbox
sandbox = vmray.VMRayAPI('MY_KEY')
# verify connectivity
@rshipp
rshipp / hbuild.sh
Created May 14, 2016
Haskell helper
View hbuild.sh
#!/bin/bash
name=$1
version=$(wget http://hackage.haskell.org/package/$name -qO- | grep Change\ log | sed 's,^.*<strong>\([0-9\.]*\)</strong></td></tr><tr><th>Change.*$,\1,')
echo Building $name-$version
cp -R haskell-conduit haskell-$name
cd haskell-$name
sed -i s/conduit/$name/g PKGBUILD
@rshipp
rshipp / Dockerfile
Created Dec 13, 2015
insecure-tomcat-ssh
View Dockerfile
FROM tomcat
RUN apt-get update && apt-get install -y openssh-server
RUN mkdir /var/run/sshd
RUN echo 'root:password' | chpasswd
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
# SSH login fix. Otherwise user is kicked off after login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
@rshipp
rshipp / notes.sh
Created Sep 25, 2015
take daily encrypted notes
View notes.sh
#!/bin/bash
# take notes
IDENT= # put your gpg key id (email) here
NOTES_DIR=~/.n
TMP_DIR=/dev/shm/.n
GPG=gpg
mkdir -p "$NOTES_DIR" || exit $?
@rshipp
rshipp / forvo_scraper.sh
Last active Sep 29, 2018
Scrape the highest rated MP3 from Forvo.com for a given word
View forvo_scraper.sh
#!/bin/bash
# Forvo scraper
language=${FORVO_LANG:-fr}
BASEURL="http://forvo.com/search/"
AUDIOURL="http://audio.forvo.com/mp3/"
word=$1
if [[ -z $word ]]; then
echo "usage: "
echo "FORVO_LANG=languagecode ./forvo_scraper.sh myword"
View bettysh
#!/bin/bash
# interactive betty shell
BETTYSH_PS1=${BETTYSH_PS1:-betty$ }
install_betty() {
echo "==> Installing betty..."
git clone https://github.com/pickhardt/betty ~/.betty || return $?
echo "==> Done."
}
@rshipp
rshipp / gradehelper-04
Last active Jan 22, 2016
Grading helper script for CSCI446 Unit4.
View gradehelper-04
#!/bin/bash
# unit4 autograder helper script
# usage:
# ./gradehelper-u04 username
[[ -z $1 ]] && exit 1
cd $1
main() {
# Link and update the git repo
@rshipp
rshipp / gradehelper-u03
Last active Jan 22, 2016
Grading helper script for CSCI446 Unit3.
View gradehelper-u03
#!/bin/bash
# unit3 autograder helper script
# usage:
# ./gradehelper-u03 username
[[ -z $1 ]] && exit 1
cd $1
main() {
# Clone the git repo
View keybase.md

Keybase proof

I hereby claim:

  • I am rshipp on github.
  • I am rshipp (https://keybase.io/rshipp) on keybase.
  • I have a public key whose fingerprint is C1E4 46BF AC0D 6882 8EDD 98D1 9985 DAD9 D417 608D

To claim this, I am signing this object:

You can’t perform that action at this time.