Skip to content

Instantly share code, notes, and snippets.

View Prasad-Medisetti's full-sized avatar
🎯
Focusing

Prasad Medisetti Prasad-Medisetti

🎯
Focusing
View GitHub Profile
@Prasad-Medisetti
Prasad-Medisetti / multiple_ssh_setting.md
Created October 21, 2021 08:00 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@Prasad-Medisetti
Prasad-Medisetti / home-.bash_aliases
Last active October 21, 2021 09:24
Prasad Medisetti Personal WSL configs
## 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 '
@Prasad-Medisetti
Prasad-Medisetti / nodejs-cheatsheet.js
Created September 7, 2021 14:00 — forked from LeCoupa/nodejs-cheatsheet.js
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@Prasad-Medisetti
Prasad-Medisetti / gist:40250df174938fee68925aa07bfc5b04
Created September 7, 2021 13:56 — forked from davisford/gist:5039064
git clone into non-empty directory

Let's say you start a project locally, and do some editing.

$ mkdir -p ~/git/foo && cd ~/git/foo
$ touch NEWFILE

Now 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:

@Prasad-Medisetti
Prasad-Medisetti / git-clone-into-not-empty-dir.md
Created September 7, 2021 13:56 — forked from ozh/git-clone-into-not-empty-dir.md
git clone into non-empty directory

You have a folder with files

$ mkdir -p ~/foo && cd ~/foo
$ touch NEWFILE

You cannot git clone into it because the directory is not empty. To do so:

@Prasad-Medisetti
Prasad-Medisetti / ReadMe.md
Last active August 31, 2021 04:08 — forked from transcendr/ReadMe.md
Operator Mono Free Version - VS Code

Operator Mono Free Version - VS Code


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) {
@Prasad-Medisetti
Prasad-Medisetti / what-is-installed.sh
Created August 19, 2021 17:58 — forked from leodutra/what-is-installed.sh
List details of installed software on Linux
#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:
@Prasad-Medisetti
Prasad-Medisetti / enable-WSL2.ps1
Created August 19, 2021 17:51 — forked from leodutra/enable-WSL2.ps1
Enable Windows Subsystem Linux 2 ( WSL 2 )
# 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.
@Prasad-Medisetti
Prasad-Medisetti / hyper.js
Created August 19, 2021 17:42 — forked from coco-napky/hyper.js
Hyper config for git bash in Windows
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)',