Skip to content

Instantly share code, notes, and snippets.

@tzutalin
tzutalin / removeCertainSearchEngine
Last active March 26, 2020 20:43
js script to remove all other search engines in chrome
removedName = ['groupon',
'avg',
'red',
'Jenkins',
'petewarden',
'booking',
'Hudson',
'blog',
'ebay',
@tzutalin
tzutalin / settings.json
Created August 31, 2019 19:18
VSCode Global Settings
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true,
".idea": true,
"bower_components": true,
"dist": true,
"tmp": true
@tzutalin
tzutalin / autojump.py
Last active November 6, 2020 07:46
Ranger's settings and plugins
# config/ranger/plugins/autojump.py
import ranger.api
import subprocess
from ranger.api.commands import *
HOOK_INIT_OLD = ranger.api.hook_init
def hook_init(fm):
def update_autojump(signal):
@tzutalin
tzutalin / install_cv_anaconda.sh
Created June 10, 2018 04:34
Ubuntu install opencv + anacoda
#!/bin/sh
# ubuntu install opencv + anaconda
# anaconda
curl -O https://repo.continuum.io/archive/Anaconda3-4.3.1-Linux-x86_64.sh
sha256sum Anaconda3-4.3.1-Linux-x86_64.sh
bash Anaconda3-4.3.1-Linux-x86_64.sh
# paste the below to bashrc
export PATH=~/anaconda3/bin:$PATH
@tzutalin
tzutalin / iterm2-solarized.md
Created June 8, 2018 02:27 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@tzutalin
tzutalin / wifiadb.sh
Created November 1, 2017 08:11
Android Scripts
#!/bin/sh
# Author : [email protected]
# Copyright [2015] <[email protected]>
PORT=5555
if [ $# -ne 0 ]; then
while [ $# != 0 ]
do
PORT=$1
@tzutalin
tzutalin / nginxproxy.md
Created August 7, 2017 02:51 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

---
- name: Installl packages for localhost
hosts: "{{ cluster_name }}"
#hosts: all
become: true
tasks:
@tzutalin
tzutalin / _readme.md
Created July 28, 2017 05:37 — forked from maxivak/_readme.md
Vagrant with Ubuntu 16.04 in VirtualBox

Setup Ubuntu 16.04 to be used with Vagrant and Virtualbox

Prepare Vagrant box with Ubuntu 16.04

We will use official box "ubuntu/xenial64" and modify it to work with Vagrant.

  • Vagrantfile
@tzutalin
tzutalin / ubuntu16.sh
Last active July 30, 2017 00:33
VirtualBox
sudo apt-get update
sudo apt-get install -y virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11
sudo apt-get -y install git
sudo apt-get -y install -y ant
sudo apt-get -y install g++
sudo apt-get -y install ipython
sudo apt-get -y install python2.7-dev python-pip
sudo apt-get -y install geany tree meld