Skip to content

Instantly share code, notes, and snippets.

Change Apple OS X Dock size from Apple Terminal

defaults write com.apple.dock tilesize -int 64; killall Dock

64 is icon size

CVS Receipt

CVS is notorious for their receipts, so I decided to share my experience with a simple CodePen.

With some quick and dirty HTML, CSS, and JavaScript - I present you with the never-ending CVS receipt. I even made a crappy web scrapper to get real product names from their site (https://github.com/garrettbear/CVScraper)

A Pen by Garrett W. on CodePen.

License.

@DewArmy
DewArmy / gist:2d771f32cf63726b224885e0d353a3f2
Created September 7, 2017 11:19 — forked from spudbean/gist:1558257
Look of disapproval and other emoticons
ಠ_ಠ
( ͡° ͜ʖ ͡°)
¯\_(ツ)_/¯
(╯°□°)╯︵ ┻━┻
http://www.fileformat.info/convert/text/upside-down.htm
WRTTN http://wrttn.me/30dbfd/
Unicode Emoticons
@DewArmy
DewArmy / usbarmory-network.sh
Created August 31, 2017 13:35 — forked from MichalPekala/usbarmory-network.sh
USB armory network sharing on macOS
# enable IP forwarding
sudo sysctl -w net.inet.ip.forwarding=1
# enable PF firewall
sudo pfctl -e
# Option 1: add NAT rule after en4 is up (USB armory already plugged and started)
echo "nat on en0 from en4:network to any -> (en0)" | sudo pfctl -f -
# Option 2: add NAT rule before USB armory is plugged, requires specifying its network
@DewArmy
DewArmy / decrapifier.ps1
Created October 7, 2016 14:06
Windows 10 Decrapifier
write-Host "*******Decrapifying Windows 10...*******"
write-Host "***Removing App Packages...***"
#I recommend running this script on a fresh install, though it should work fine anyways. Should ;)
#This part removes all the apps. By default, it removes every except the calculator and the store. To remove all apps, comment out this part...
Get-AppxPackage -AllUsers | where-object {$_.name -notlike "*Microsoft.WindowsStore*"} | where-object {$_.name -notlike "*Microsoft.WindowsCalculator*"} | Remove-AppxPackage
Get-AppxProvisionedPackage -online | where-object {$_.packagename -notlike "*Microsoft.WindowsStore*"} | where-object {$_.packagename -notlike "*Microsoft.WindowsCalculator*"} | Remove-AppxProvisionedPackage -online
@DewArmy
DewArmy / A collection of PS file functions
Created September 7, 2016 19:06 — forked from talatham/A collection of PS file functions
A collection of Powershell file functions
Including:
* Deleting files and folders (incl criteria based - if older than xx days)
* Open and save file dialogs
* Hard disk usage reports
# Show message box popup.
Add-Type -AssemblyName System.Windows.Forms
$result = [System.Windows.Forms.MessageBox]::Show("My message", "Window Title", [System.Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::None)
# Show input box popup.
Add-Type -AssemblyName Microsoft.VisualBasic
$inputText = [Microsoft.VisualBasic.Interaction]::InputBox("Enter some value:", "Window Title", "Default value")
# Show an Open File Dialog and return the file selected by the user.
function Read-OpenFileDialog([string]$InitialDirectory, [switch]$AllowMultiSelect)
@DewArmy
DewArmy / RemoveWin10DefaultApps.ps1
Created September 7, 2016 13:28 — forked from tkrotoff/RemoveWin10DefaultApps.ps1
Remove Windows 10 default apps
# See Remove default Apps from Windows 10 https://thomas.vanhoutte.be/miniblog/delete-windows-10-apps/
Get-AppxPackage Microsoft.Windows.ParentalControls | Remove-AppxPackage
Get-AppxPackage Windows.ContactSupport | Remove-AppxPackage
Get-AppxPackage Microsoft.Xbox* | Remove-AppxPackage
Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage # Mail and Calendar
#Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsCamera | Remove-AppxPackage
Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage
Get-AppxPackage Microsoft.Zune* | Remove-AppxPackage
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Original Version: 1.4, 2016-01-16
# Tweaked based on personal preferences for @alirobe 2016-03-23 - v1.4.1
# NOTE: MAKE SURE YOU READ THIS SCRIPT CAREFULLY BEFORE RUNNING IT + ADJUST COMMENTING AS APPROPRIATE
# This script will reboot your machine when completed.
##########
# Ask for elevated permissions if required
@DewArmy
DewArmy / update.cmd
Created May 27, 2016 17:51 — forked from breezhang/update.cmd
Automatically Update SysInternals Tools Using Robocopy
net start webclient
robocopy.exe \\live.sysinternals.com\tools "C:\SysInternals"
net stop webclient