Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"| #Handy functions for .bashrc loading. | |
| # | |
| # $ atoi 192.168.1.1 | |
| # 3232235777 | |
| # $ itoa 3232235777 | |
| # 192.168.1.1 | |
| function atoi | |
| { |
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
/etc/ssh/sshd_config file by running the command sudo vi /etc/ssh/sshd_config and do the following
Port to 2222 (or any other port above 1000)PasswordAuthentication to yes. This can be changed back to no if ssh keys are setup.sudo service ssh --full-restart| " 1. Install bundle | |
| " git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle | |
| "source $VIMRUNTIME/vimrc_example.vim | |
| "source $VIMRUNTIME/mswin.vim | |
| "behave mswin | |
| set nu | |
| " Configuration file for vim | |
| set modelines=0 " CVE-2007-2438 |
| URL="https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash" | |
| PROFILE="$HOME/.profile" | |
| echo "Downloading git-completion..." | |
| if ! curl "$URL" --silent --output "$HOME/.git-completion.bash"; then | |
| echo "ERROR: Couldn't download completion script. Make sure you have a working internet connection." && exit 1 | |
| fi |
| #!/bin/bash | |
| # rename *.md to *.markdown | |
| # https://unix.stackexchange.com/a/144330 | |
| for file in $(ls ./ | grep .md) | |
| do | |
| name=${file::-2} | |
| echo $name | |
| mv $file ${name}.markdown |
| # Please install BeautifulSoup4 first | |
| # python getLastRevised.py to run this script | |
| # e.g. | |
| # ~$ python getLastRevised.py | |
| # URL: 'http://iq.ul.com/ul/cert.aspx?ULID=234547' Last Revised: 2017-05-11 | |
| from bs4 import BeautifulSoup | |
| import urllib2 | |
| url = "http://iq.ul.com/ul/cert.aspx?ULID=234547" |
To remove a submodule you need to: