Skip to content

Instantly share code, notes, and snippets.

View andmetoo's full-sized avatar
🌊
Working from home

Radik Ilin andmetoo

🌊
Working from home
View GitHub Profile
@andmetoo
andmetoo / redis.sh
Created July 28, 2017 07:08
Install Redis on Ubuntu
# Install Redis
sudo apt-add-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install redis-server
#uninstall Redis
sudo apt-get purge--auto-remove redis-server
@andmetoo
andmetoo / prepare-commit-msg
Last active April 24, 2019 18:10
add branch name to commit message
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master beta test)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
@andmetoo
andmetoo / pre-commit
Created September 12, 2018 10:24
Git pre commit php cs fixer from vendor
#!/usr/bin/env bash
echo "pre commit hook start"
CURRENT_DIRECTORY=`pwd`
GIT_HOOKS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PROJECT_DIRECTORY="$GIT_HOOKS_DIR/../.."
cd $PROJECT_DIRECTORY;
@andmetoo
andmetoo / Install.txt
Created April 3, 2019 05:31 — forked from soderlind/Install.txt
macOS DoH! (DNS over HTTPS) using cloudflared
1) Install cloudflared using homebrew:
brew install cloudflare/cloudflare/cloudflared
2) Create /usr/local/etc/cloudflared/config.yaml, with the following content
proxy-dns: true
proxy-dns-upstream:
- https://1.1.1.1/dns-query
- https://1.0.0.1/dns-query

Keybase proof

I hereby claim:

  • I am andmetoo on github.
  • I am andmetoo (https://keybase.io/andmetoo) on keybase.
  • I have a public key ASDJ6yBHp16dwGd8dlAjM7tmWBTAEn1jFZjf_GeVFaUYcwo

To claim this, I am signing this object: