Skip to content

Instantly share code, notes, and snippets.

View dima74's full-sized avatar

Dmitry Murzin dima74

  • Saint Petersburg
View GitHub Profile
@dima74
dima74 / digitalocean-setup.sh
Last active July 27, 2019 19:52
Quick digitalocean
# initial setup:
wget https://raw.githubusercontent.com/gh2o/digitalocean-debian-to-arch/debian9/install.sh -O install.sh
bash install.sh --extra_packages base-devel,htop,zsh,grml-zsh-config
# add user
sed -i 's/^#\s*\(%wheel\s\+ALL=(ALL)\s\+ALL\)/\1/' /etc/sudoers
useradd -m -G wheel -s /bin/zsh diralik
passwd diralik
echo 'Run on localhost: ssh-copy-id -i .ssh/id_rsa_my.pub diralik@IP'
@dima74
dima74 / digitalocean-list-regions-available-in-russia.md
Last active July 27, 2019 19:53
List of digitalocean regions, which droplets may have ips not blocked by stupid russia government

SFO, SGP, FRA, TOR, BLR

TOR probably has best ping.

@dima74
dima74 / quick-grml.sh
Last active April 19, 2019 19:24
Quick installation of grml (https://grml.org/zsh/#grmlzshconfig) and zsh-autosuggestions and zsh-syntax-highlighting
wget -O .zshrc https://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
mkdir -p ~/.zsh
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting
echo "source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh" >>~/.zshrc.local
echo "source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >>~/.zshrc.local
echo "watch=()" >>~/.zshrc.local
@dima74
dima74 / install_mosh_locally.sh
Created November 28, 2018 19:34 — forked from xiaom/install_mosh_locally.sh
install mosh locally
#!/bin/sh
set -e
set -x
# this script does absolutely ZERO error checking. however, it worked
# for me on a RHEL 6.3 machine on 2012-08-08. clearly, the version numbers
# and/or URLs should be made variables. cheers, zmil...@cs.wisc.edu
mkdir mosh
@dima74
dima74 / .block
Created September 13, 2018 09:26
fresh block
license: mit
@dima74
dima74 / .block
Created April 10, 2018 23:40
fresh block
license: mit
@dima74
dima74 / .block
Created April 10, 2018 23:33
fresh block
license: mit
@dima74
dima74 / .block
Created April 10, 2018 23:04
fresh block
license: mit
@dima74
dima74 / .block
Last active April 10, 2018 23:01
fresh block
license: mit
@dima74
dima74 / .block
Created April 10, 2018 19:38
fresh block
license: mit