This file contains hidden or 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
#http://stackoverflow.com/questions/26102156/unable-to-install-plugin-hostmanager-in-vagrant-in-windows-8-1 | |
The solution is to move your project to a project directory you choose that doesn't have any spaces in the directory name, then use an environment variable called "VAGRANT_HOME" and set it to a specified directory. The plugin installation procedure will check for the existence of this variable and use it if it exists instead of locating a home directory within the windows current user directoory. | |
I created a folder "home" within C:\Hashicorp\Vagrant and used that ('C:\Hashicorp\Vagrant\home'). Setting windows environment variables is not hard (rather trivial actually) - you can find out how here: http://www.computerhope.com/issues/ch000549.htm | |
You'll have to do a restart to your system for it to take effect (it all worked after a reboot for me). | |
This file contains hidden or 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 | |
mkdir assets; | |
mkdir -p assets/css/sass; | |
mkdir assets/js; | |
mkdir assets/images; | |
touch gruntfile.js; | |
touch package.json; | |
touch index.html; |
This file contains hidden or 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
# download biblio plugin | |
wget -O biblioplus.gz https://git.wikimedia.org/zip/?r=mediawiki/extensions/BiblioPlus&h=refs/heads/master&format=gz |
This file contains hidden or 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
https://stackoverflow.com/questions/726894/what-are-the-dark-corners-of-vim-your-mom-never-told-you-about |
This file contains hidden or 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
https://www.debian.org/doc/manuals/ | |
https://debian-handbook.info/get/now/ |
This file contains hidden or 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
:r filename will paste the contents of a file where the cursor is | |
:r! command will paste the output of a command where the cursor is | |
:! command will run a command outside of VIM, then bring you right back. | |
#exit | |
:wq | |
:x | |
:q! | |
ZZ |
This file contains hidden or 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
rm -r /Applications/Google\ Chrome.app/ | |
rm -r ~/Library/Application\ Support/Google/Chrome/ | |
rm ~/Library/Application\ Support/CrashReporter/Google\ Chrome* | |
rm ~/Library/Preferences/com.google.Chrome* | |
rm ~/Library/Preferences/Google\ Chrome* | |
rm -r ~/Library/Caches/com.google.Chrome* | |
rm -r ~/Library/Saved\ Application\ State/com.google.Chrome.savedState/ | |
rm ~/Library/Google/GoogleSoftwareUpdate/Actives/com.google.Chrome | |
rm ~/Library/Google/Google\ Chrome* | |
rm -r ~/Library/Speech/Speakable\ Items/Application\ Speakable\ Items/Google\ Chrome/ |
This file contains hidden or 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
wget --mirror --convert-links --adjust-extension --page-requisites https://template16.carrd.co/ | |
wget --exclude-directories="PS/3-Updates" --mirror --convert-links --adjust-extension --page-requisites www.test.com |
This file contains hidden or 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
#example for converting youtube video to mp3 | |
youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 https://www.youtube.com/watch\?v\=u-X3q6CmsKc | |
ffmpeg -v 5 -y -i Mr.\ Desktop\ \&\ Mr.\ Server\ Episode\ 5\ _\ Linux\ Networking\ \&\ Connect2SSH-u-X3q6CmsKc.webm -acodec libmp3lame -ac 2 -ab 192k MrServerMrDesktop.mp3 | |
-- | |
#requires ffmpeg | |
youtube-dl --extract-audio --audio-format mp3 'https://www.youtube.com/watch?v=u-X3q6CmsKc' |
This file contains hidden or 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
# self explanatory | |
http://askubuntu.com/questions/505506/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode | |
#allow cockpit through firewall | |
http://forums.fedoraforum.org/showthread.php?t=303102 |