Skip to content

Instantly share code, notes, and snippets.

View rpratama-codes's full-sized avatar

Rizqi Pratama rpratama-codes

View GitHub Profile
@rpratama-codes
rpratama-codes / send-emoji-on-gmail-title-and-body.md
Last active August 13, 2025 23:53 — forked from tanaikech/submit.md
Sending Gmail with Title and Body Including Emoji using Javascript

Sending Gmail with Title and Body Including Emoji using Javascript

This is a sample script for sending Gmail with the title and body including Emoji using Google Apps Script.

Sample script

This sample script uses Gmail API. So please enable Gmail API at Advanced Google services. Ref

@rpratama-codes
rpratama-codes / 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
}
@rpratama-codes
rpratama-codes / 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
@rpratama-codes
rpratama-codes / BackspaceBack.py
Last active April 18, 2025 09:20 — 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
@rpratama-codes
rpratama-codes / 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()