Change Apple OS X Dock size from Apple Terminal
defaults write com.apple.dock tilesize -int 64; killall Dock
64
is icon size
Change Apple OS X Dock size from Apple Terminal
defaults write com.apple.dock tilesize -int 64; killall Dock
64
is icon size
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.
ಠ_ಠ | |
( ͡° ͜ʖ ͡°) | |
¯\_(ツ)_/¯ | |
(╯°□°)╯︵ ┻━┻ | |
http://www.fileformat.info/convert/text/upside-down.htm | |
WRTTN http://wrttn.me/30dbfd/ | |
Unicode Emoticons |
# 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 |
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 |
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) |
# 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 |
net start webclient | |
robocopy.exe \\live.sysinternals.com\tools "C:\SysInternals" | |
net stop webclient |