Skip to content

Instantly share code, notes, and snippets.

View rizqikazukun's full-sized avatar

Rizqi Pratama rizqikazukun

  • Indonesia
  • 08:43 (UTC +07:00)
View GitHub Profile
@rizqikazukun
rizqikazukun / robbyrussell.zsh_theme
Created August 5, 2024 15:19 — forked from mikehazell/robbyrussell.zsh_theme
oh-my-zsh Default Theme plus Node version info
# oh-my-zsh Theme
# Default robbyrussell theme with node version info.
# Installation: place this file in .oh-my-zsh/custom/themes/robbyrussell.zsh_theme
function node_prompt_version {
if which node &> /dev/null; then
echo "%{$fg_bold[blue]%}node(%{$fg[red]%}$(node -v)%{$fg[blue]%}) %{$reset_color%}"
fi
}
@rizqikazukun
rizqikazukun / byobuCommands
Created April 15, 2024 14:01 — forked from jshaw/byobuCommands
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
@rizqikazukun
rizqikazukun / BackspaceBack.py
Created June 18, 2023 06:12 — forked from molaeiali/BackspaceBack.py
Adds ability to go up a directory by pressing Backspace button in nautilus. This will work with the new Nautilus 43/Gnome 43/Gtk4
# Nautilus Backspace Back Extension
#
# Place me in ~/.local/share/nautilus-python/extensions/,
# ensure you have python-nautilus package, restrart Nautilus, and enjoy :)
#
# This script was written by molaeiali and is released to the public domain
import os, gi
gi.require_version('Nautilus', '4.0')
from gi.repository import GObject, Nautilus, Gtk, Gio, GLib
@rizqikazukun
rizqikazukun / removeUnusedSnap.sh
Created September 29, 2021 00:48
This is bash script for removing unused snap package
#!/bin/sh
set -eu
snap list --all | awk '/disabled/{print $1, $3}' |
while read snapname revision; do
snap remove "$snapname" --revision="$revision"
done
# Source : https://askubuntu.com/questions/1036633/how-to-remove-disabled-unused-snap-packages-with-a-single-line-of-command
@rizqikazukun
rizqikazukun / CiscoKeyGen.py
Created August 1, 2021 12:15 — forked from paalfe/CiscoKeyGen.py
Cisco IOU License Generator. Originally found at http://www.routingloops.co.uk/cisco/gns3-v1-1-install-on-ubuntu-14-04-lts/, I have done a few changes to it. Make the file executable with " chmod +x CiscoKeyGen.py " and execute it " ./CiscoKeyGen.py ".
#! /usr/bin/python
print "\n*********************************************************************"
print "Cisco IOU License Generator - Kal 2011, python port of 2006 C version"
import os
import socket
import hashlib
import struct
# get the host id and host name to calculate the hostkey
hostid=os.popen("hostid").read().strip()
hostname = socket.gethostname()