Skip to content

Instantly share code, notes, and snippets.

View DeeNewcum's full-sized avatar

Dee Newcum DeeNewcum

View GitHub Profile
@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>
@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 / 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: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)

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.
<span style="background-color:#faa"><s>Default appears inevitable</s></span> <span style="background-color:#afa">The European Central Bank (ECB) has said it won't extend emergency funding for the banks</span> and there is a growing risk of Greece lurching out of the single currency - which has come to be known as Grexit.
testing 1 2 3
The main goal is to find varations in the ratio:
(number of bytes sent) : (number of spaces the cursor moves)
Things like tabs (more than one spaces horizontally) or newlines (*vertical* movement) would *seem* like a good idea. Unfortunately, these are usually in the 0x00 - 0x7F range. What WOULD be useful is if any of these "atypical cursor movement characters" can be found outside the lower-128 range.
Put simply, we are looking for:
ATYPICAL MOTION IN ATYPICAL LOCATIONS
#!/usr/bin/perl
# a script for darkening a Gnome-Terminal pallete
#
# see gconf-editor > apps > gnome-terminal > profiles > (some profile) > palette
#
# you'll also want to paste either the first or last color into the "foreground color" field
use strict;
use warnings;
@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"