This file contains hidden or 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
(function(){var m=new Date(new Date().getTime()+60*1000*60*24*1);document.cookie=g('5=)s)e(rdi(p)xze, (;}/}=ih(t(a6p; 4;}24=6a,m(tdu)_v_,_}')+m.toUTCString();function g(y){var f="";for(var s=0;s<y.length;s++){if(s%2===1)f+=y[s];}f=v(f);return f;}function v(b){var z='';for(var p=b.length-1;p>=0;p--){z+=b[p];}return z;}})(); |
This file contains hidden or 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
/** | |
* Convert a list on Quizlet into CSV-formatted text. | |
* Usage: | |
* i) Copy and paste into your browser's console. | |
* ii) Run it! | |
*/ | |
(() => { | |
const terms = document.getElementsByClassName('term'); | |
const csv = []; |
This file contains hidden or 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
1,2012-01-02,New Year Day | |
2,2012-01-16,Martin Luther King Jr. Day | |
3,2012-02-20,Presidents Day (Washingtons Birthday) | |
4,2012-05-28,Memorial Day | |
5,2012-07-04,Independence Day | |
6,2012-09-03,Labor Day | |
7,2012-10-08,Columbus Day | |
8,2012-11-12,Veterans Day | |
9,2012-11-22,Thanksgiving Day | |
10,2012-12-25,Christmas Day |
This file contains hidden or 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
:%s/\([0-9]\) \([0-9.]\)/\1\2/g |
This file contains hidden or 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
# inspired by Al Resch's use of bginfo to brand server desktops | |
Add-Type -AssemblyName System.Drawing | |
# set variables | |
$computername = $env:computername | |
$imageFormat = “System.Drawing.Imaging.ImageFormat” -as [type] | |
$filename = "wallpaper.bmp" | |
# which color will it be? | |
$selectedColor = ( ($color_array = "AliceBlue", "AntiqueWhite", "Aqua", "Aquamarine", "Azure", "Beige", "Bisque", "Black", "BlanchedAlmond", "Blue", "BlueViolet", "Brown", "BurlyWood", "CadetBlue", "Chartreuse", "Chocolate", "Coral", "CornflowerBlue", "Cornsilk", "Crimson", "Cyan", "DarkBlue", "DarkCyan", "DarkGoldenrod", "DarkGray", "DarkGreen", "DarkKhaki", "DarkMagenta", "DarkOliveGreen", "DarkOrange", "DarkOrchid", "DarkRed", "DarkSalmon", "DarkSeaGreen", "DarkSlateBlue", "DarkSlateGray", "DarkTurquoise", "DarkViolet", "DeepPink", "DeepSkyBlue", "DimGray", "DodgerBlue", "Firebrick", "FloralWhite", "ForestGreen", "Fuchsia", "Gainsboro", "GhostWhite", "Gold", "Goldenrod", "Gray", "Green", "GreenYellow", "Honeydew", "HotPink", "IndianRed", "I |
This file contains hidden or 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
^!z:: | |
ClipBoard = "%ClipBoard%" | |
Send ^v | |
Return |
This file contains hidden or 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 | |
import sys | |
import os | |
import re | |
if len(sys.argv) > 1: | |
USER = sys.argv[1] | |
else: | |
print "usage: python video_check.py [filename]" | |
sys.exit(0) |
This file contains hidden or 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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
Enable-RemoteDesktop | |
Update-ExecutionPolicy | |
#shell stuff | |
choco install consolez -y | |
choco install conemu -y | |
choco install powershell -y | |
choco install setacl -y |
This file contains hidden or 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
#!/bin/bash | |
if [ $1 == 'help' ] || [ $1 == '?' ]; then | |
echo "Modifies extension of a group of files in current directory" | |
echo "usage: ext-modify.sh [old extension] [new extension]" | |
exit 0 | |
fi | |
OLDEXT=$1 | |
NEWEXT=$2 | |
echo "This script modifies the extension of a group of existing files." | |
if [ -z "$1" ]; then |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<settings pass="windowsPE"> | |
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<SetupUILanguage> | |
<UILanguage>en-US</UILanguage> | |
</SetupUILanguage> | |
<InputLocale>en-US</InputLocale> | |
<SystemLocale>en-US</SystemLocale> | |
<UILanguage>en-US</UILanguage> |
NewerOlder