Skip to content

Instantly share code, notes, and snippets.

View DeadlyBrad42's full-sized avatar

Brad Mason DeadlyBrad42

View GitHub Profile

Keybase proof

I hereby claim:

  • I am deadlybrad42 on github.
  • I am deadlybrad42 (https://keybase.io/deadlybrad42) on keybase.
  • I have a public key whose fingerprint is C3A2 361D E8B6 8773 5B37 8487 780E 4881 A338 84AF

To claim this, I am signing this object:

function prompt
{
# Determine if Powershell is running as Administrator
$currentPrincipal = New-Object Security.Principal.WindowsPrincipal( [Security.Principal.WindowsIdentity]::GetCurrent() )
$isAdmin = $currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
$leftCharCount = 0
$middleCharCount = 0
$rightCharCount = 0
@DeadlyBrad42
DeadlyBrad42 / license
Last active August 29, 2015 14:23
A Pretty Good License
Copyright (C) <<Date>>, <<ContactEmail>>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, pulverize, distribute,
synergize, compost, defenestrate, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
@DeadlyBrad42
DeadlyBrad42 / INSTALL.md
Last active August 29, 2020 11:11
rage-quit support for PowerShell

rage-quit support for Powershell

How To Install

Open your profile script and add add the Flip-Text and Fuck-You functions into it. The easiset way to do this is to open up PowerShell and type notepad $profile, and then just copy-and-paste the functions below into your profile script.

⚠️ Issues

Unfortunately, this script is apparently light-years ahead of Windows' command line, so unfortunately the table-flip emoticon can only be displayed when this script is run from PowerShell ISE, and isn't displayed in the normal PowerShell prompt. Hopefully Microsoft fixes this in a future update... 😟

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@DeadlyBrad42
DeadlyBrad42 / htmlconditionals.html
Last active October 13, 2015 08:07
Add classes on the body to help identify older versions of IE
<!-- Conditional HTML declaration for targetting specific versions of IE -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<!-- Code the page as you normally would. Remember to use JavaScript to remove the "no-js" class, and replace it with a "js" class to 'prove' that JS is enabled. -->
@DeadlyBrad42
DeadlyBrad42 / Reset.css
Created October 1, 2012 16:37
A pretty decent CSS reset
/* -- RESET -- */
html, body, body div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
margin: 0;
@DeadlyBrad42
DeadlyBrad42 / CoolText.css
Last active May 29, 2018 03:39
Some cool text styles that I've stolen from around the Internet.
/* 3D analygraph */
.three-d
{
color:rgba(0,255,255,0.5);
text-shadow: rgba(255,0,0,0.5) -4px 0px 0px;
padding-left:4px;
}
/* Zombie */
@font-face {
cat /dev/urandom > /dev/dsp
@DeadlyBrad42
DeadlyBrad42 / Neat Emoticons
Last active October 22, 2021 15:41
Not that we needed all that for the trip, but once you get locked into a serious emoticon collection, the tendency is to push it as far as you can.
Neat Emoticons & Unicode Characters!
(•_• )
( •_•)
( •_•)>⌐■-■
(⌐■_■)
⌐■-■
⌐■-■
⌐■-■