Skip to content

Instantly share code, notes, and snippets.

View zerjioang's full-sized avatar
🛡️
Work in progress

Sergio zerjioang

🛡️
Work in progress
View GitHub Profile
@zerjioang
zerjioang / update.sh
Created January 25, 2018 07:11
Ubuntu EOL distribution update process
#get codename
echo "Getting ubuntu codename..."
CODENAME=$(lsb_release -c)
#add patched eol sources to list /etc/apt/sources.list
echo "Patching sources.list..."
echo "## EOL upgrade sources.list \
# Required \
@zerjioang
zerjioang / pycharm_installer.sh
Created January 26, 2018 08:56
PyCharm IDE installation script
#!/bin/bash
echo "adding the GetDeb repository"
sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu $(lsb_release -sc)-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'
echo " setup the GPG key"
wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
sudo apt update
@zerjioang
zerjioang / .zshrc
Last active November 5, 2018 09:48
Oh-my-zsh configuration file with powerlevel9k theme and plugins
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@zerjioang
zerjioang / docker.sh
Created April 17, 2019 10:04
docker installation tiny script
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
sudo usermod -aG docker $USER
@zerjioang
zerjioang / .conkyrc
Created December 25, 2019 16:55
Conky config
background no
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 3.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
@zerjioang
zerjioang / ipv4_test.go
Created October 26, 2020 17:43
IPv4 Validation performance comparison in Go
package main_test
import (
"net"
"regexp"
"testing"
)
// IP address lengths (bytes).
const (