Skip to content

Instantly share code, notes, and snippets.

View DeeNewcum's full-sized avatar

Dee Newcum DeeNewcum

View GitHub Profile
The European Central Bank (ECB) has said it won't extend emergency funding for the banks and there is a growing risk of Greece lurching out of the single currency - which has come to be known as Grexit.
@DeeNewcum
DeeNewcum / lock_terraria
Created March 19, 2015 14:15
Script for locking / unlocking Terraria
#!/bin/sh
# Temporarily disables Terraria, so that I can't play it during work hours.
chmod -x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/Content/Images/'
chmod -x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/Content/Fonts/'
chmod -x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/Content/Sounds/'
chmod -x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/Content/'
chmod -x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/'
chmod -x '/home/dee/.wine/drive_c/Program Files/Steam/'
@DeeNewcum
DeeNewcum / gist:483802e292d69b1ae1f4
Last active August 29, 2015 14:07
instructions for setting up Cloudsearch for reddit, by /user/kemitche on March 27, 2013
                 (this is a mirror of http://redd.it/1b3xp1)

Here's something to get you started:

You'll want to configure the following index fields and relevance sorts. The first dump is for the domain associated with your CLOUDSEARCH_SEARCH_API endpoint:

Fields:

author Active literal (Search Result)

@DeeNewcum
DeeNewcum / gist:6966c632240c2f97c728
Created June 18, 2014 23:49
Georgy_K_Zhukov -- godlike
$ git clone https://github.com/DeeNewcum/reddit.git
$ cd reddit
$ ./created http://www.reddit.com/r/AskHistorians/comments/28gr18/what_is_the_point_of_armored_trains/
This story was created on:
Wed Jun 18 15:08:51 2014
$ ./created http://www.reddit.com/r/AskHistorians/comments/28gr18/what_is_the_point_of_armored_trains/ciartbo
This comment was created on:
@DeeNewcum
DeeNewcum / gist:11197592
Last active August 29, 2015 14:00
nested <marquee>
<marquee style="font-size:150pt" scrollamount=10 direction=right> <!-- right -->
<marquee behavior=alternate direction=up scrollamount=25 style="height:2em"> <!-- up and down -->
&#xc6c3;
</marquee>
</marquee>
@DeeNewcum
DeeNewcum / colors.html
Last active August 29, 2015 13:57
making colors with words -- http://redd.it/21lfco
<style>
span {padding:0 0.2em}
</style>
Using the 1337-speak rules:
<ul>
<li><tt>a</tt> &rArr; <tt>a</tt> &nbsp; or &nbsp; <tt>4</tt>
<li><tt>b</tt> &rArr; <tt>b</tt> &nbsp; or &nbsp; <tt>8</tt> &nbsp; or &nbsp; <tt>13</tt>
<li><tt>e</tt> &rArr; <tt>e</tt> &nbsp; or &nbsp; <tt>3</tt>
<li><tt>g</tt> &rArr; <tt>6</tt> &nbsp; or &nbsp; <tt>9</tt>
<li><tt>i</tt> &rArr; <tt>1</tt>
#!/usr/bin/perl
use strict;
use warnings;
use Regexp::Optimizer;
my @losers_minus_winners = qw[
blaine breckinridge bryan cass clay cox davis dewey dole dukakis ford fremont
goldwater gore greeley hancock hughes humphrey kerry king landon mccain
@DeeNewcum
DeeNewcum / putty_fixed_colors.reg
Last active December 15, 2015 21:39
A fix for Putty's terrible default colorscheme. By default, dark blue is completely unreadable, and dark red is nearly so. Save as a .reg file and double-click on it.
REGEDIT4
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings]
"UseSystemColours"=dword:00000000
"TryPalette"=dword:00000000
"ANSIColour"=dword:00000001
"Xterm256Colour"=dword:00000001
"BoldAsColour"=dword:00000001
"Colour0"="187,187,187"
"Colour1"="255,255,255"
"Colour2"="0,0,0"
@DeeNewcum
DeeNewcum / gist:4773435
Last active June 28, 2020 19:16
Linux keylogger, in Perl
#!/bin/bash
/usr/bin/perl -nlx "$0" /dev/input/event2
#!perl
# keylogger decoder
#
# similar programs:
# http://manpages.ubuntu.com/manpages/maverick/man8/logkeys.8.html
# http://en.usenet.digipedia.org/thread/16321/547/
use Data::Dumper;