Skip to content

Instantly share code, notes, and snippets.

@micrub
micrub / tip::macos-show-installed-app-content.md
Last active December 28, 2019 22:39
tip: macos , show installed app content

You can show content of installed application by doing CTRL-Left click on the Your app icon, and choose Show Package Contents,then you will see where all content is stored in Finder interface.

source

@micrub
micrub / semantic-commit-messages.md
Created February 2, 2019 21:36 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@micrub
micrub / OrbitalMotion.cs
Created October 14, 2018 21:45
Unity 2017 On ubuntu - Orbital Motion
# The sourcce
```
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class OrbitalMoton : MonoBehaviour {
public Transform oentity;
@micrub
micrub / ns-cheatsheet.clj
Created October 5, 2018 00:24 — forked from ghoseb/ns-cheatsheet.clj
Clojure ns syntax cheat-sheet
;;
;; NS CHEATSHEET
;;
;; * :require makes functions available with a namespace prefix
;; and optionally can refer functions to the current ns.
;;
;; * :import refers Java classes to the current namespace.
;;
;; * :refer-clojure affects availability of built-in (clojure.core)
;; functions.
@micrub
micrub / seo-trick-examples.md
Last active September 3, 2018 23:26
classic SEO long tail click bait example
@micrub
micrub / multiple_ssh_setting.md
Created August 24, 2018 02:30 — 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]"
@micrub
micrub / docker-kill-all-containers.sh
Created August 23, 2018 00:10
killall docke containers
#!/bin/bash -x
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt
@micrub
micrub / am-i-root-in-bash.md
Created July 12, 2018 00:15
Am I root? (Bash)
id -u
1000
sudo su  
[sudo] password for *: 
root@some:/some# id -u
0
@micrub
micrub / install-spotify-ubuntu.md
Last active July 12, 2018 00:06
spotify client install on ubuntu (based on official publication)

Condenced spotify client installation bash script derviative based on official one

Execute as root:

#!/bin/bash -x
# must be executed as su
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 931FF8E79F0876134EDDBDCCA87FF9DF48BF1C90
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
apt-get update