Skip to content

Instantly share code, notes, and snippets.

View rkennesson's full-sized avatar
:octocat:
I may be slow to respond.

Richard Kennesson rkennesson

:octocat:
I may be slow to respond.
View GitHub Profile
#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).
@rkennesson
rkennesson / new_project.sh
Created August 4, 2015 16:51
Create folder structure for project
#!/bin/bash
mkdir assets;
mkdir -p assets/css/sass;
mkdir assets/js;
mkdir assets/images;
touch gruntfile.js;
touch package.json;
touch index.html;
@rkennesson
rkennesson / mediawiki_install.sh
Created August 5, 2015 04:06
mediawiki install
# download biblio plugin
wget -O biblioplus.gz https://git.wikimedia.org/zip/?r=mediawiki/extensions/BiblioPlus&h=refs/heads/master&format=gz
@rkennesson
rkennesson / vim.txt
Created August 8, 2015 05:41
vim info
https://stackoverflow.com/questions/726894/what-are-the-dark-corners-of-vim-your-mom-never-told-you-about
https://www.debian.org/doc/manuals/
https://debian-handbook.info/get/now/
: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
@rkennesson
rkennesson / del_chrome_osx.sh
Created November 4, 2015 01:10
Delete Chrome for Apple OS X
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/
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
#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'
@rkennesson
rkennesson / bash_inside
Created November 10, 2015 05:32
docker_using
# 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