Skip to content

Instantly share code, notes, and snippets.

View ubunteroz's full-sized avatar
🏠
Working from home

Surya Handika ubunteroz

🏠
Working from home
  • Kota Bima, Nusa Tenggara Barat, Indonesia
  • 11:29 (UTC +08:00)
  • X @ubunteroz
View GitHub Profile
@ubunteroz
ubunteroz / uksm_mon.sh
Created February 5, 2015 07:06
Simple UKSM Monitor
#!/bin/bash
while true
do
clear
PSHARING=$(cat /sys/kernel/mm/uksm/pages_sharing)
PSHARED=$(cat /sys/kernel/mm/uksm/pages_shared)
PUNSHARED=$(cat /sys/kernel/mm/uksm/pages_unshared)
echo -en "Simple UKSM Monitor\n\n"
echo -n "Shared pool size (KB) : "
@ubunteroz
ubunteroz / USAGE
Last active August 29, 2015 14:21
SINTESISpwn
$ ./sintesispwn.sh <NIM>
goroutine 616 [running]:
github.com/ethereum/go-ethereum/internal/debug.(*HandlerT).Stacks(0xc42001ac80, 0x0, 0x0)
/media/BIGSPACE/kancil/dev/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/internal/debug/api.go:177 +0x74
reflect.Value.call(0xc420096de0, 0xc42009ca78, 0x13, 0x55a7b5f9f110, 0x4, 0xc4244f9e80, 0x1, 0x1, 0x2, 0x0, ...)
/usr/lib/go-1.7/src/reflect/value.go:434 +0x5c8
reflect.Value.Call(0xc420096de0, 0xc42009ca78, 0x13, 0xc4244f9e80, 0x1, 0x1, 0xc420029740, 0xc420260960, 0xc420260960)
/usr/lib/go-1.7/src/reflect/value.go:302 +0xa4
github.com/ethereum/go-ethereum/rpc.(*Server).handle(0xc4201bf860, 0x7f6e000388c8, 0xc42045c1b0, 0x55a7b6779980, 0xc4204210e0, 0xc4201fe310, 0xc420029780, 0x1, 0x55a7b58e2563)
/media/BIGSPACE/kancil/dev/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/rpc/server.go:318 +0x8ed
github.com/ethereum/go-ethereum/rpc.(*Server).exec(0xc4201bf860, 0x7f6e000388c8, 0xc42045c1b0, 0x55a7b6779980, 0xc4204210e0, 0xc4201fe310)
Verifying that "ubunteroz.id" is my Blockstack ID. https://onename.com/ubunteroz
@ubunteroz
ubunteroz / terbilang.js
Created January 14, 2018 06:38
terbilang.js
module.exports = function(number) {
if (!number) {
number = 0;
}
const angka = ['satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan'];
const base1000 = ['ribu', 'juta', 'miliar', 'triliun'];
let spelled = [];
let result = undefined;
@ubunteroz
ubunteroz / pngcrush.desktop
Created January 20, 2019 22:17
KDE5 service menu for crushing PNG file to save space
[Desktop Entry]
Type=Service
Icon=image-png
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=image/png;
Actions=pngcrush;
Encoding=UTF-8
[Desktop Action pngcrush]
Name=Crush PNG

Keybase proof

I hereby claim:

  • I am ubunteroz on github.
  • I am lelaki (https://keybase.io/lelaki) on keybase.
  • I have a public key ASAEdkSVjXyyB1Evk61Mc5ncNhmhBp4RXq-WuaHmnMt1vwo To claim this, I am signing this object:
{
"body": {
"key": {
@ubunteroz
ubunteroz / Leaderboard.ipynb
Created November 13, 2021 05:32
cBridge v2 Testnet Leaderboard Calculation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ubunteroz
ubunteroz / mariadb.yaml
Last active March 18, 2022 06:41
Akash SDL for Deploying MariaDB
---
version: "2.0"
services:
db:
image: mariadb:10.6
expose:
- port: 3306
as: 3306
to:
@ubunteroz
ubunteroz / Dockerfile
Last active March 15, 2022 07:45
Akash SDL for Deploying Avalanche Fuji Testnet Node
FROM debian:bullseye AS base
RUN apt update && apt install wget tini -y && apt clean
FROM base AS download
ENV version=1.7.7
WORKDIR /app
RUN wget https://github.com/ava-labs/avalanchego/releases/download/v${version}/avalanchego-linux-amd64-v${version}.tar.gz
RUN tar xvf avalanchego-linux-amd64-v${version}.tar.gz
RUN mv avalanchego-v${version} bin