Skip to content

Instantly share code, notes, and snippets.

@thorsummoner
thorsummoner / Default (Linux).sunblime-keymap
Last active March 16, 2017 16:25
Sublime text 3 Linux keymap to be more like my bloody Windows keymap.
[
{ "keys": ["ctrl+q"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+q"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+shift+w"], "command": "close" },
{ "keys": ["ctrl+space"], "command": "auto_complete" },
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
// ==UserScript==
// @name New Script
// @include http://mlp-fim-wallpapers.deviantart.com/
// @exclude http://mlp-fim-wallpapers.deviantart.com/
// ==/UserScript==
console.log('Deviant Art Pony Wallappers!');
galleryPages = document.querySelectorAll('.tv150');
thumbNails = document.querySelectorAll('.thumb');

Noon - 3.PM.

  • Portfolio
  • Code Snippets
  • Ruby Lesson
  • Repair Linux Parition
  • The Ponies svg tilemap
  • Github Markdown Wiki Link compatability with gollum
@thorsummoner
thorsummoner / LinuxMint-PostInstall.sh
Created May 5, 2014 04:11
A Post-Install software configuration script of my preferred LinuxMint Desktop Settings
# Lets get the apt stuff taken care of first.
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3
sudo add-apt-repository -y ppa:numix/ppa
sudo apt-get update
sudo apt-get install --yes \
sublime-text-installer \
numix-gtk-theme \
numix-icon-theme-circle \
curl \
ttf-inconsolata

Mexican Spoon Bread

  1. Get the bacon pieces fried, about 10 slices. Save the grease, set it aside.
  2. Beat two eggs till frothy
  3. To the eggs, add:
    • 1 cup yellow cornmeal
    • 1 can creamed corn
    • 1/2 teaspoon baking soda plus 3/4 cup milk ( this helps to dissolve the soda so you wont get lumps(yuk) poor milk slowly into soda, just enough to dissolve it, then use rest of milk to clean extra that may sit on the bottom of the cup.
@thorsummoner
thorsummoner / test.glade
Created August 7, 2014 05:52
PyGtk3 Populate ComboBox from Glade in Python
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkListStore" id="myliststore">
<columns>
<!-- column-name code -->
<column type="gchararray"/>
<!-- column-name legible -->
<column type="gchararray"/>
</columns>
@thorsummoner
thorsummoner / radio-button.htm
Created August 13, 2014 16:45
Radio Buttons - On hover test
<!DOCTYPE html>
<html>
<head>
<title>Radio Button Test</title>
<!-- Css Credit: https://github.com/necolas/css3-github-buttons/blob/master/gh-buttons.css -->
<style type="text/css">
.radio-toolbar input[type="radio"] {
display:none;
}
from itertools import izip, product, tee
# Logic functions: take and return iterators of truth values
def AND(a, b):
for p, q in izip(a, b):
yield p and q
def OR(a, b):
for p, q in izip(a, b):
@thorsummoner
thorsummoner / dhclient.conf
Last active July 6, 2021 01:33
How to request specific IP in /etc/dhcp/
# Configuration file for /sbin/dhclient, which is included in Debian's
# dhcp3-client package.
#
# This is a sample configuration file for dhclient. See dhclient.conf's
# man page for more information about the syntax of this file
# and a more comprehensive list of the parameters understood by
# dhclient.
#
# Normally, if the DHCP server provides reasonable information and does
# not leave anything out (like the domain name, for example), then
.git/objects/pack$ PACKFILE=pack-<...>.pack ; mv $PACKFILE $PACKFILE.repack; git unpack-objects -r < $PACKFILE.repack