Skip to content

Instantly share code, notes, and snippets.

View AlexKomrakov's full-sized avatar

Aleksei Komrakov AlexKomrakov

  • Appmagic
  • Bishkek, Kyrgyzstan
View GitHub Profile
#!/bin/bash
# gnome-tweak-tool для хоткея Alt+Shift
sudo apt install -y gnome-tweak-tool curl
# Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i --force-depends google-chrome-stable_current_amd64.deb
# Nodejs
curl -sL "https://deb.nodesource.com/setup_15.x" | sudo bash -
# Yarn
#!/bin/bash
##########################################
# System install script for ubuntu 18.04 #
##########################################
### Google-chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
docker rm -v $(docker ps -a -q -f status=exited)
docker rmi $(docker images -f "dangling=true" -q)
docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes
#!/bin/bash
##########################################
# System install script for ubuntu 16.04 #
##########################################
### Google-chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
###
# Test with ...
# curl --proxy 127.0.0.1:5566 http://echoip.com
# curl --proxy 127.0.0.1:5566 http://header.jsontest.com
#
# Monitor
# http://127.0.0.1:1936/haproxy?stats
###
tor:
image: mattes/rotating-proxy
### Clear all local merged branches
git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d
### Deletes all branches not persisted in remote origin
git remote prune origin
### Remove local (untracked) files from current Git branch
# Show files
git clean -f -n
# Delete files
#!/bin/bash
# HTTP Proxy Server's IP Address (or URL)
# Example:
# ./proxy_check.sh socks5://10.1.0.227:1080 http://echoip.com
proxy_server=$1
# We're trying to reach this url via the given HTTP Proxy Server
# (http://www.google.com by default)
url=$2
if [ -z "$url" ]