Skip to content

Instantly share code, notes, and snippets.

@kparms
kparms / gist.sh
Created October 22, 2015 15:17
Install Virtualbox Guest Additions on Crunchbang
#Get the repo up to date
sudo apt-get update
sudo apt-get upgrade
#Mount the disk in Virtual Box
#Right click on the drive and click, "Open with Root Terminal"
#Install Prereqs
apt-get install build-essential module-assistant
@kparms
kparms / index.html
Last active August 29, 2015 14:27
bdPRjX
<table class="k-grid">
<tbody class="k-grid-content">
<tr>
<td>werwer</td>
<td>erwjsdfs</td>
</tr>
<tr>
<td>werwer</td>
<td>erwjsdfs</td>
</tr>
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {
# How to throttle the FCC to dial up modem speeds on your website using Apache.
# Ported from https://gist.github.com/kyledrake/e6046644115f185f7af0
## The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
##
## Current known FCC address ranges:
## https://news.ycombinator.com/item?id=7716915
##
## Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
@kparms
kparms / getTags.ps1
Created May 5, 2014 16:54
Powershell to get all tags from a specified index engine in Decisiv
#Search command will return all tags for the specified index engine
$runningCommand = "search -project singleMindServer.IPS -user admin -password [adm pw] -hasTaxonomy doc_tag -pagesize 100000000 -field doc_tag"
$runningProcs = cmd /c $runningCommand
#These search strings will return an array of documents and tags, which is part of the search output
$documents = @($runningProcs -like "*with raw score*") | Foreach {$_.Trim()}
#$tags = @($runningProcs -like "*doc_tag (type=field)*") | Foreach {$_.Trim()}
$strResponse = -join $runningProcs
@kparms
kparms / get-gists.py
Last active August 29, 2015 14:00
Gist Api Fun
import http.client
import json
def gist_get():
conn = http.client.HTTPSConnection("api.github.com")
headers = {
'Content-type' : 'application/json',
'User-Agent' : 'Does this really have to be anything'
}
@kparms
kparms / archvnc.txt
Created April 29, 2014 17:21
ArchLinux VNC
http://archlinuxarm.org/forum/viewtopic.php?f=18&t=2293
To setup VNC desktop on my pogoplug :)
@kparms
kparms / chromecast.txt
Created April 22, 2014 02:23
Chromecast to display custom site
http://stackoverflow.com/questions/21945115/display-web-sites-and-web-apps-with-chromecast
I wanted to save this for later
@kparms
kparms / README.md
Last active August 29, 2015 14:00
Page to showcase Hikes

This is a page that we are building to showcase our hikes

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export2.dtd">
<en-export export-date="20120727T073610Z" application="Evernote" version="Evernote Mac 3.0.5 (209942)">
<note><title>Vim Tips</title><content><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">
<en-note style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
yank for copy, delete for cut, put for parse
<div><br/></div>
<div>Move in context, not position</div>
<div>/ search forward</div>