Skip to content

Instantly share code, notes, and snippets.

Avatar
🛡️
Researching...please wait

Sergio zerjioang

🛡️
Researching...please wait
View GitHub Profile
@zerjioang
zerjioang / ipv4_test.go
Created Oct 26, 2020
IPv4 Validation performance comparison in Go
View ipv4_test.go
package main_test
import (
"net"
"regexp"
"testing"
)
// IP address lengths (bytes).
const (
View .conkyrc
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 / docker.sh
Created Apr 17, 2019
docker installation tiny script
View docker.sh
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
sudo usermod -aG docker $USER
@zerjioang
zerjioang / .zshrc
Last active Nov 5, 2018
Oh-my-zsh configuration file with powerlevel9k theme and plugins
View .zshrc
# 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 / pycharm_installer.sh
Created Jan 26, 2018
PyCharm IDE installation script
View pycharm_installer.sh
#!/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 / update.sh
Created Jan 25, 2018
Ubuntu EOL distribution update process
View update.sh
#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 \