Skip to content

Instantly share code, notes, and snippets.

View VxJasonxV's full-sized avatar
💻
Using GitHub

Jason Salaz VxJasonxV

💻
Using GitHub
  • Castle Rock, CO, USA
View GitHub Profile
<?php
if(strcmp($difficulty,"Challenge")==0) // Dammit RoXoR
{ $difficulty = "Expert"; } // Be consistent >=\
?>
# I need to add this into my dotfiles repo. But for now, this is a cool way of getting you into your existing screen session, and get out when you detach.
# Put this at the bottom of your ~/.bash_profile and:
# 1) Upon login... it should be obvious what happens.
# 2) When you detach the screen session, you log out of the server.
# I'm a `screen` junkie when it comes to remote linux servers I rarely work outside of screen. If I need to, you can always ^C as soon as you ssh in and see "Reattaching [...]".
if [ -z $STY ]
then
echo "Reattaching screen in 3 seconds..."
@VxJasonxV
VxJasonxV / prowl output
Created July 1, 2010 08:01
Sample output of Prowl when using the service hook from GitHub
Application: GitHub
Event: user/repo (ex. mojombo/grit)
3 commits pushed to GitHub (a47fd41f..06f63b43)
Latest Commit by Tom Preston-Werner
a47fd31f add more comments throughout
@VxJasonxV
VxJasonxV / Unescaping mostly unescaped characters.rb
Created November 28, 2010 22:47
A test to see the effects of unescaping unescaped characters.
>> string = "&gt; &lt; & < > \' \""
=> "&gt; &lt; & < > ' \""
>> require 'CGI'
=> true
>> CGI.unescapeHTML(string)
=> "> < & < > ' \""
>>
@VxJasonxV
VxJasonxV / critiqueme.md
Created August 22, 2011 18:47
A Plea For Actual Domain Identities

There was a quote I read around the time of WebApps' Area 51 Graduation that was something along the lines of:

... you know the 'For Dummies' series? It kinda works.

As best as I recall, or at least the timeline my brain has created, this line was used as justification for reverting "Nothing to Install" to "Web Applications", and maintaining graduating sites as "topic.stackexchange.com".

I understand the backlash that Nothing to Install received, and I understand that some sites name's are just difficult, wordy, mildly ambiguous, and isn't the obvious solution to the problem. But let's flip this situation on it's head.

Ask Ubuntu has graduated and maintains it's own domain identity, that being askubuntu.com, which ubuntu.stackexchange.com redirects too. I'm well aware that this is in large part to the partnership between Stack Exchange and Canonical. But here in pure Stack Exchange land, there is a selection of sites that actually have and actively maintain an identity (Ask Different, Seasoned Advice,

@VxJasonxV
VxJasonxV / critiqueme.md
Created August 22, 2011 19:15 — forked from kylecronin/critiqueme.md
A Plea For Actual Domain Identities

There is a blog post from Joel on the Stack Exchange blog around the time of WebApps' Area 51 Graduation:

A while ago, I wrote:

“Individually-branded sites felt more authentic and trustworthy. We thought that letting every Stack Exchange site have its own domain name, visual identity, logo, and brand would help the community feel more coherent. After all, nobody wants to say that they live in Housing Block 2938TC.”

Well, funny thing… that didn’t quite work out the way I expected... mostly because nobody could think of any good domain names. Believe it or not, “NothingToInstall” was one of the better suggestions. Ack.

This reasoning was used as justification for reverting "Nothing to Install" to "Web Applications", and maintaining graduating sites as "topic.stackexchange.com".

#!/usr/bin/perl
my @tmp = unpack("C*", $ARGV[0]);
for $i (@tmp)
{
printf "%0004x", $i;
}
print "\n";
@VxJasonxV
VxJasonxV / sl.txt
Created May 11, 2012 07:10
Choo choooooooooooo
(@@)
( )@@) ) ( )
(@) ( )
(@@@) @@
++ +------ () @
|| |Help! O
/---------|\O/ | ____ @ O
@VxJasonxV
VxJasonxV / gist:4211820
Created December 5, 2012 03:08 — forked from tlberglund/gist:3208768
Live Log Script
#!/bin/bash
while (sleep 1)
do
clear
git --no-pager log -$1 --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
done

h1

h2

h3

h4

h5
h6