Skip to content

Instantly share code, notes, and snippets.

📁
copying files

James S. White jameswhite

📁
copying files
Block or report user

Report or block jameswhite

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
@jameswhite
jameswhite / config
Created May 23, 2019
~/.ssh/config
View config
Host planck
User syeargin
ForwardAgent yes
ControlMaster auto
ControlPath /tmp/%r@%h:%p
ProxyCommand ssh root@96.87.216.209 nc %h %p 2> /dev/null
View readme.md

rails-assets-openlayers

The Bower package inside a gem

This gem was automatically generated. You can visit rails-assets.org for more information.

Usage

Add rails-assets source block to your Gemfile:

View vulnerable_versions.rb
if FileTest.exists?("/usr/bin/apt-get")
unless File.exists?("/etc/facter/facts.d/needs_security_patches.txt")
Facter.add("needs_security_patches") do
case Facter.value("lsbdistcodename")
when 'precise'
setcode "[ $(apt-get --dry-run upgrade 2>/dev/null | grep '^Inst '|wc -l) -eq 0 ] && echo 'false' || [ $(apt-get --target-release=precise-security --dry-run upgrade 2>/dev/null | grep Inst | wc -l) -eq 0 ] || echo true"
when 'trusty'
setcode "[ $(apt-get --dry-run upgrade 2>/dev/null | grep '^Inst '|wc -l) -eq 0 ] && echo 'false' || [ $(apt-get --target-release=trusty-security --dry-run upgrade 2>/dev/null | grep Inst | wc -l) -eq 0 ] || echo true"
else
setcode "[ $(apt-get --dry-run upgrade 2>/dev/null | grep Inst | wc -l) -eq 0 ] && echo false || echo true"
View lottery.sh
#!/bin/bash
# date should be yyyymmdd
ARGS="$*"
export TARGET=$(date -jf "%Y%m%d" ${ARGS} +"%m/%d/%Y")
export TICKET_DATE=$(date -jf "%Y%m%d" ${ARGS} +"%a %b%d %g")
# cache every day
[ ! -f /var/tmp/pb ] || [ $(find /var/tmp/pb -mmin +3600) ] && curl -sk http://www.powerball.com/powerball/winnums-text.txt > /var/tmp/pb
[ ! -f /var/tmp/hl ] || [ $(find /var/tmp/hl -mmin +3600) ] && curl -sk http://www.powerball.com/hotlotto/winnums-text.txt > /var/tmp/hl
View georgia-guidestones.log
for file in $(ls tumble.wcyd.org-access.log.*.gz); do cat $file | gzip -dc | grep -i georgia-guidestones; done
164.132.161.59 - - [21/Mar/2017:08:51:06 +0000] "GET /irclink/?user=james&source=web&url=http%3A%2F%2Fvigilantcitizen.com%2Fsinistersites%2Fsinister-sites-the-georgia-guidestones%2F HTTP/1.1" 200 663
5.9.60.241 - - [15/Mar/2017:17:18:58 +0000] "GET /irclink/?user=james&source=web&url=http%3A%2F%2Fvigilantcitizen.com%2Fsinistersites%2Fsinister-sites-the-georgia-guidestones%2F HTTP/1.1" 200 1129
66.249.65.251 - - [01/Mar/2017:05:50:10 +0000] "GET /irclink/?user=james&source=web&url=http%3A%2F%2Fvigilantcitizen.com%2Fsinistersites%2Fsinister-sites-the-georgia-guidestones%2F HTTP/1.1" 200 663
163.172.65.60 - - [08/Feb/2017:21:35:50 +0000] "GET /irclink/?user=james&source=web&url=http%3A%2F%2Fvigilantcitizen.com%2Fsinistersites%2Fsinister-sites-the-georgia-guidestones%2F HTTP/1.1" 200 663
185.158.122.143 - - [02/Feb/2017:18:04:01 +0000] "GET /irclink/?user=james&source=web&url=http%3A%2F%2Fvigilantcitizen
View lol.txt
sif
status: active
status: active
status: active
status: active
status: active
status: active
status: active
status: active
status: master
@jameswhite
jameswhite / modules
Created Jun 1, 2017
/etc/initramfs-tools/modules
View modules
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax: module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
View deployer.md

Raspberry Pi:

Set up minicom, serial console a soekris 5501 with a pl2303 adapter
apt-get install -y minicom
cat<<EOF> /root/minirc.ttyUSB0
# Machine-generated file - use setup menu in minicom to change parameters.
View gist:0baf6b8df658486f636ec55cc92593ff
Vijay <vijay@proximous.com>
3:06 PM (1 hour ago)
to james
Hello,
This is Vijay from Proximous Inc.
PROXIMOUS INC. is leading consulting organization providing expert level IT professional services, Staff Augmentation Services and IT Training Services in areas of Software Development, Web Development, Database Development, Data Integrations, Data Quality, Data Warehousing, Business Intelligence, ERP, CRM and Mobile Software Development.
View -
<!DOCTYPE html><html id="atomic" class="NoJs desktop" lang="en-US"><head><script>window.performance && window.performance.mark && window.performance.mark('PageStart');</script><meta http-equiv="content-type" content="text/html; charset=UTF-8"/><title>MLB on Yahoo! Sports - News, Scores, Standings, Rumors, Fantasy Games</title><meta name="keywords" content="MLB, Major League Baseball"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta http-equiv="x-dns-prefetch-control" content="on"/><link rel="dns-prefetch" href="https://s.yimg.com"/><link rel="dns-prefetch" href="//csc.beap.bc.yahoo.com"/><link rel="dns-prefetch" href="//geo.query.yahoo.com"/><link rel="dns-prefetch" href="//y.analytics.yahoo.com"/><link rel="dns-prefetch" href="//b.scorecardresearch.com"/><link rel="dns-prefetch" href="//l.yimg.com"/><link rel="dns-prefetch" href="//yrtas.btrll.com"/><link rel="dns-prefetch" href="//shim.btrll.com"/><link rel="preconnect" href="https://s.yimg.com"/><link rel="preconnect" href="//csc.beap.bc.yahoo.
You can’t perform that action at this time.