create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| ## Other Useful aliases | |
| alias update='sudo apt-get update && sudo apt-get upgrade' | |
| alias documents='cd ~/Documents' | |
| alias downloads='cd ~/Downloads' | |
| alias desktop='cd ~/Desktop' | |
| alias vscode="/mnt/c/Users/Prasa/AppData/Local/Programs/Microsoft\ VS\ Code/bin/code" | |
| alias gh='history|grep' | |
| alias untar='tar -zxvf ' |
| /* ******************************************************************************************* | |
| * THE UPDATED VERSION IS AVAILABLE AT | |
| * https://github.com/LeCoupa/awesome-cheatsheets | |
| * ******************************************************************************************* */ | |
| // 0. Synopsis. | |
| // http://nodejs.org/api/synopsis.html |
Let's say you start a project locally, and do some editing.
$ mkdir -p ~/git/foo && cd ~/git/foo
$ touch NEWFILENow you decide you want to create a new github repo and track it, but the directory is non-empty so git won't let you clone into it. You can fix this, thusly:
You have a folder with files
$ mkdir -p ~/foo && cd ~/foo
$ touch NEWFILEYou cannot git clone into it because the directory is not empty. To do so:
This explains how to get what basically amounts to the "Operator Mono" font feel and look in VS Code, for free.
First you need to install "Custom CSS and JS Loader" extension and then add the settings (below) and setup the style sheet and put the path to the stylesheet.
To apply the changes, follow the instructions carefully in the Custom Css and JS Loader readme.
https://marketplace.visualstudio.com/items?itemName=be5invis.vscode-custom-css
| var nativeSetTimeout = window.setTimeout; | |
| window.bindTimeout = function (listener, interval) { | |
| function setTimeout(code, delay) { | |
| var elapsed = 0, | |
| h; | |
| h = window.setInterval(function () { | |
| elapsed += interval; | |
| if (elapsed < delay) { |
| #http://askubuntu.com/questions/17823/how-to-list-all-installed-packages | |
| apt --installed list | |
| dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | |
| #dpkg --get-selections > ~/InstalledPackages.list | |
| #or | |
| dpkg --get-selections | grep -v deinstall | |
| #To save that list to a text file called packages on your desktop do this in your terminal: |
| # AS ADMIN | |
| Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
| Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform | |
| # Use this command to convert a distro to use the WSL 2 architecture or use the WSL 1 architecture. | |
| # <Distro>: the specific Linux distro (e.g. “Ubuntu”) | |
| # <Version>: 1 or 2 (for WSL 1 or 2) | |
| # wsl --set-version <Distro> <Version> | |
| # Changes the default install version (WSL 1 or 2) for new distributions. |
| module.exports = { | |
| config: { | |
| // default font size in pixels for all tabs | |
| fontSize: 12, | |
| // font family with optional fallbacks | |
| fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
| // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
| cursorColor: 'rgba(248,28,229,0.8)', |