Setup the server:
iperf -s
$EC2SettingsFile="C:\\Program Files\\Amazon\\Ec2ConfigService\\Settings\\BundleConfig.xml" | |
$xml = [xml](get-content $EC2SettingsFile) | |
$xmlElement = $xml.get_DocumentElement() | |
foreach ($element in $xmlElement.Property) | |
{ | |
if ($element.Name -eq "AutoSysprep") | |
{ | |
$element.Value="Yes" | |
} |
node_modules |
VAGRANTFILE_API_VERSION = "2" | |
require 'io/console' | |
# Capture login details if starting up vagrant or provisioning it | |
# Required for AD operations. | |
# | |
# Environment variables prevent explicit user input. Useful for CI. | |
username = ENV["VAGRANT_USER"] || nil | |
password = ENV["VAGRANT_PASSWORD"] || nil |
# Create a full colour palette from a source
ffmpeg -y -i <input> -vf fps=15,scale=1024:-1:flags=lanczos,palettegen palette.png
# Export a GIF from the source, using the palette
ffmpeg -y -i <input> -i palette.png -filter_complex "fps=15,scale=800:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif
See other useful combinations here: https://gist.github.com/dergachev/4627207
# Print out demangled symbols referenced in a library | |
nm -C myaddon.node | |
# list libraries another lib depends on | |
otool -L /path/to/lib.dylib # OSX | |
ldd /path/to/lib.so # linux | |
# List rpath of a library | |
# https://stackoverflow.com/questions/12521802/print-rpath-of-an-executable-on-macos | |
# https://www.lekensteyn.nl/rpath.html#what-is-rpath |
xattr -d com.apple.quarantine <path to file> |
{ | |
// Reduces red-eye (tip: red bull may undo this) | |
"font_size": 18.0, | |
// Love Vim < love Sublime | |
"ignored_packages": | |
[ | |
"Vintage" | |
], |
set nocompatible | |
set nowrap " don't wrap lines | |
set tabstop=4 " a tab is four spaces | |
set backspace=indent,eol,start | |
" allow backspacing over everything in insert mode | |
set autoindent " always set autoindenting on | |
set paste " Prepare for paste | |
set copyindent " copy the previous indentation on autoindenting | |
set number " always show line numbers | |
set shiftwidth=4 " number of spaces to use for autoindenting |
<powershell> | |
write-output "Running User Data Script" | |
write-host "(host) Running User Data Script" | |
cmd.exe /c net user /add vagrant FooBar@123 | |
cmd.exe /c net localgroup administrators vagrant /add | |
Set-ExecutionPolicy -ExecutionPolicy bypass -Force | |
# RDP |