Skip to content

Instantly share code, notes, and snippets.

Working from home

Radik Ilin andmetoo

Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am andmetoo on github.
  • I am andmetoo ( on keybase.
  • I have a public key ASDJ6yBHp16dwGd8dlAjM7tmWBTAEn1jFZjf_GeVFaUYcwo

To claim this, I am signing this object:

andmetoo / Install.txt
Created Apr 3, 2019 — forked from soderlind/Install.txt
macOS DoH! (DNS over HTTPS) using cloudflared
View Install.txt
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
andmetoo / pre-commit
Created Sep 12, 2018
Git pre commit php cs fixer from vendor
View pre-commit
#!/usr/bin/env bash
echo "pre commit hook start"
GIT_HOOKS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
andmetoo / prepare-commit-msg
Last active Apr 24, 2019
add branch name to commit message
View prepare-commit-msg
# 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)
BRANCH_NAME=$(git symbolic-ref --short HEAD)
andmetoo /
Created Jul 28, 2017
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 /
Created Jul 28, 2017
Rewrite web data directory chmod
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rw /var/www
adduser grigory
su grigory
mkdir .ssh
chmod 700 .ssh
cd .ssh
andmetoo /
Created Jul 28, 2017
Mysql backup crontab
0 */6 * * * mysqldump --single-transaction --lock-tables=false -ubackup -pxp3VG9QceKMPdHYQXLqLbfigmKbn storm_pd1 | gzip -c | ./snapshot storm_pd1.sql.gz > ~/storm_pd1_dump.log
andmetoo /
Created Jul 28, 2017
Uubntu install php
sudo apt-get install php5-cli php5-common php5-mysql php5-gd php5-fpm php5-cgi php-pear php5-mcrypt -y
sudo apt-get install php5-mongo php5-geoip php5-curl php5-memcache php5-memcached php5-redis php5-tidy -y
# version 7
sudo apt-get install php7.0-cli php7.0-common php7.0-mysql php7.0-gd php7.0-fpm php7.0-cgi php-pear php7.0-mcrypt -y
sudo apt-get install php7.0-curl -y
andmetoo /
Created Jul 28, 2017
Batch resize images on mac
sips -Z 1024 *.jpg --out /Users/metoo/Images/sample
andmetoo / no-select.css
Created Jul 28, 2017
Disable element select only css
View no-select.css
.no-select {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
You can’t perform that action at this time.