This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
Ans=( | |
"It is certain." | |
"It is decidedly so." | |
"Without a doubt." | |
"Yes – definitely." | |
"You may rely on it." | |
"As I see it, yes." | |
"Most likely." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from threading import Thread,Lock,Event,Timer | |
import os | |
import sys | |
import signal | |
import subprocess | |
import math | |
import psutil | |
import re |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from random import randint as ri | |
from sys import stdout, exit | |
import argparse | |
class EvilWordSearchGenerator(object): | |
def __init__(self, word, rows=20, cols=20): | |
self.word = word | |
if rows < len(word): | |
self.rows = len(word) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- dwm.c 2011-07-10 15:24:25.000000000 -0500 | |
+++ dwm-ansistatuscolors.c 2012-11-12 22:59:41.975424068 -0600 | |
@@ -53,6 +53,7 @@ | |
#define HEIGHT(X) ((X)->h + 2 * (X)->bw) | |
#define TAGMASK ((1 << LENGTH(tags)) - 1) | |
#define TEXTW(X) (textnw(X, strlen(X)) + dc.font.height) | |
+#define STATUS_BUF_LEN 8192 //la11111 | |
/* enums */ | |
enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import clr | |
import System.Collections | |
clr.AddReference("System.Management.Automation") | |
from System.Management.Automation import * | |
from System.Management.Automation.Runspaces import * | |
import System.IO | |
rs_default = RunspaceFactory.CreateRunspace() | |
rs_default.Open() | |
System.Management.Automation.Runspaces.Runspace.DefaultRunspace = rs_default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# write-html | |
<# | |
Works just like write-host, except returns a line of html. | |
Intended so that you can output a script as HTML in the same format | |
that it would appear in a terminal without changing a bunch of stuff | |
in the script itself. | |
basically wraps text in a big <pre> block with some colorful frills. | |
Output is placed in the global variable $WriteHTMLOutput . | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in case you don't know where your profile is: | |
# c:\users\your_username\Documents\WindowsPowerShell\profile.ps1 - current user all hosts | |
# c:\users\your_username\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 - current user current host | |
# so you could just save this as its own file in that directory and dot-source it into one of the above. | |
################ | |
## ls - configuration | |
#first, import it: | |
Import-Module get-ChildItemColored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Forked this, and ended up writing this: | |
#https://gist.github.com/3922035 | |
#Credit: this file was my inspiration. | |
# | |
# -la11111 | |
#First in your powershell profile in | |
#C:\Users\<<username>>\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 | |
set-location D:\code |