Skip to content

Instantly share code, notes, and snippets.

View rupakraj's full-sized avatar
🎯
404: productivity not found

rughimire rupakraj

🎯
404: productivity not found
View GitHub Profile
@rupakraj
rupakraj / Git on Context Menu
Created December 5, 2016 04:01
Bring git on context menu of working directory
It assumes your bash installation is from Git Bash for Windows from git's official downloads.
cmd /c (start /b "%cd%" "C:\Program Files\Git\git-bash.exe") && exit
I ended up using this after I lost my context-menu items for Git Bash as my command to run from the registry settings. In case you're curious about that, I did this:
Create a new key called Bash in the shell key at HKEY_CLASSES_ROOT\Directory\Background\shell
Add a string value to Icon (not a new key!) that is the full path to your git-bash.exe, including the git-bash.exe part. You might need to wrap this in quotes.
Edit the default value of Bash to the text you want to use in the context menu enter image description here
Add a sub-key to Bash called command
@rupakraj
rupakraj / rpi-audio.md
Created January 6, 2017 05:02
rpi sound

#enabling sound on rpi 3

  1. Install software $ sudo pacman -S alsa-firmware alsa-lib alsa-plugins alsa-utils

  2. Turn sound device on $ sudo modprobe snd-bcm2835

  3. create /etc/modules-load.d/snd-bcm2835.conf

@rupakraj
rupakraj / git-deployment.md
Created May 30, 2020 08:00 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.