Skip to content

Instantly share code, notes, and snippets.

View bora89's full-sized avatar
💭
🧑‍💻 Have you digitised your business❓Tell me if you haven't!

Alexander Borisenko bora89

💭
🧑‍💻 Have you digitised your business❓Tell me if you haven't!
  • Digimation
  • Dubai, United Arab Emirates
View GitHub Profile
@bora89
bora89 / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@bora89
bora89 / git_fetch_pull_all.sh
Last active October 27, 2016 09:16
Track all remote branches then fetch and pull them all. http://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@bora89
bora89 / killall.sh
Created August 8, 2016 09:44
Force terminating a program that is not responding, send KILL instead of TERM From http://stackoverflow.com/questions/160924/how-can-i-kill-a-process-by-name-instead-of-pid
killall -s KILL firefox
git tag -d 12345
git push origin :refs/tags/12345
git ls-files -z myFolderToIgnore/ | xargs -0 git update-index --assume-unchanged
@bora89
bora89 / vm-sync-guest-addons.sh
Created November 11, 2016 05:56
Sync VirtualBox Guest Additions
# For vagrant 1.1.5+ (thanks Lars Haugseth):
vagrant plugin install vagrant-vbguest
@bora89
bora89 / osx-run-vagrant-startup.xml
Created November 12, 2016 16:49
sudo launchctl load /Library/LaunchAgents/org.ivyweb.vagrant.plist https://justinlevi.github.io/blog/2016/03/06/vagrant-virtualbox-mac
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin</string>
</dict>
<key>Label</key>
@bora89
bora89 / html-sms-android-ios.html
Created November 21, 2016 15:04
Open SMS app with predefined text from app
<a href="sms:?body=some-text-here">Android</a>
<a href="sms:&body=some-text-here2">iOS</a>