Cheatography
https://cheatography.com
Multiples git user same computer
* Generate new ssh: ssh-keygen -t rsa -C "your-email-address"
> Use a new file name like: id_rsa_OTHERUSER
* Add new ssh: ssh-add ~/.ssh/id_rsa_OTHERUSER
* Open/create a config file vim ~/.ssh/config
* Add a new Host configuration like:
----------------
Host github-OTHERUSER
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_OTHERUSER
* Update/clone your repository with this format:
* git remote [add or set-url] origin git@github-OTHERUSER:Company/testing.git
* git clone git@github-OTHERUSER:Company/testing.git
> The github-OTHERUSER will is reference to config file thats point to otheruser ssh file.
git config user.name "OTHER_USERNAME"
git config user.email "OTHER@EMAIL" |
Linux Drivers
List |
sudo fdisk -l
|
Mount |
sudo mount /dev/sdb1 /media/usb
|
Umount |
sudo umount /media/usb
|
Format |
sudo mkfs.vfat /dev/sdb1
|
Burn ISO |
sudo dd if=/path/to/ubuntu.iso of=/dev/sdb bs=1M
|
Eject |
sudo eject /dev/sdb1
|
|
|
OS
* Copy directory: cp -Rp source source_copy
* Check wifi signal: watch -n1 iwconfig
* Copy to clipboard{Command} | xclip -selection clipboard |
Android
* Listing all AVDs: ls ~/.android/avd/
* Run emulator: emulator -avd {avd_name} -qemu -m 512 -enable-kvm
* Deleting an AVD: android delete avd -n {avd_name}
* Install APK: adb -s emulator-5554 install jsHybugger.apk |
Sync git fork repo
* Add the remote "upstream": git remote add upstream https://{{url}}
* Fetch all the branches: git fetch upstream
* Go to master branch: git checkout master
* Rewrite your master branch: git rebase upstream/master
* Update: git push -f origin master
From stackoverflow |
ffmpeg
* Speedup video: ffmpeg -i input.mkv -r 16 -filter:v "setpts=0.5*PTS" output.mkv from docs |
|
Created By
blog.ridermansb.me
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by ridermansb