This file contains 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
echo '<root><foo a="b">lorem</foo><bar value="ipsum" /></root>' | | |
xmllint --format - |
This file contains 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
git filter-branch --index-filter 'git rm --cached --ignore-unmatch -rf directory/of/subtree' --prune-empty -f HEAD | |
git subtree add --prefix directory/of/subtree git@github.com:repository.git branch --squash |
This file contains 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
openssl rsa -noout -modulus -in *.key | |
openssl x509 -noout -modulus -in *.crt |
This file contains 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
for file in `ls *.zip` ; do 7z x $file < password.file ; done |
This file contains 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
command prompt | |
regedit | |
Go to the following directory: | |
HKEY_LOCAL_MACHINE>SYSTEM>CurrentControlSet>Control>SecurityProviders>SCHANNEL>Protocols |
This file contains 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
RUBY_CONFIGURE_OPTS="--without-gcc --disable-install-rdoc" rbenv install RUBY_VERSION |
This file contains 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
spec/features/awesome_cache_sweeper_spec.rb | |
it 'expires the awesome cache', :with_caching do | |
perform_your_caching_method | |
end | |
spec_helper.rb | |
config.around(:each, :with_caching) do |spec| | |
ActionController::Base.perform_caching = true |
This file contains 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 | |
export PROJECT='PROJECTNAME' | |
export ENV='ENVIRONMENT' | |
export HOSTNAME="$PROJECT"-"$ENV" | |
rm -rf /etc/hostname | |
echo $HOSTNAME | sudo tee -a /etc/hostname | |
hostname $HOSTNAME |
This file contains 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
chrome://net-internals/#dns |
This file contains 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
Test with curl | |
curl -H "Origin: http://www.example.nl" \ | |
-H "Access-Control-Request-Method: GET" \ | |
-H "Access-Control-Request-Headers: X-Requested-With" \ | |
-X OPTIONS --verbose \ | |
https://s3-eu-west-1.amazonaws.com/img.example.com.acceptance/public/css/glyphicons-halflings-regular.ttf | |
S3 Cors configuration |
NewerOlder