Skip to content

Instantly share code, notes, and snippets.

View TotalLag's full-sized avatar

Chris Phan TotalLag

View GitHub Profile
@TotalLag
TotalLag / Redirect-UsersFolders.ps1
Last active November 25, 2018 19:14 — forked from aaronparker/Redirect-FoldersOneDrive.ps1
Redirects select folders to another drive (or the OneDrive folder).
<#
.SYNOPSIS
Sets a known folder's path using SHSetKnownFolderPath.
.PARAMETER KnownFolder
The known folder whose path to set.
.PARAMETER Path
The target path to redirect the folder to.
.NOTES
Forked from: https://gist.github.com/semenko/49a28675e4aae5c8be49b83960877ac5
#>
@TotalLag
TotalLag / Contract Killer 3.md
Last active February 1, 2020 14:08 — forked from tony-caffe/Contract Killer 3.md
The latest version of Bytes Unlimted ‘killer contract’ for web professionals

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Revised by Totallag : Aug 10th 2017

@TotalLag
TotalLag / swap.sh
Last active November 28, 2019 20:18 — forked from superbarne/gist:77bd850d5c270bf7cad4
Enable Swap
fallocate -l 4G /swapfile || sudo dd if=/dev/zero of=/swapfile count=4096 bs=1MiB && \
chmod 600 /swapfile && \
mkswap /swapfile && \
swapon /swapfile && \
echo "/swapfile none swap defaults 0 0" >> /etc/fstab
@TotalLag
TotalLag / Ubuntu Kernel Upgrader Script
Last active October 26, 2015 17:54 — forked from mmstick/Ubuntu Kernel Upgrader Script
Downloads the generic kernel and installs it.
#!/bin/bash
cd /tmp
if ! which lynx > /dev/null; then sudo apt-get install lynx -y; fi
if [ "$(getconf LONG_BIT)" == "64" ]; then arch=amd64; else arch=i386; fi
function download() {
wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | grep "$1" | grep "$2" | grep "$arch" | cut -d ' ' -f 4)
}