Skip to content

Instantly share code, notes, and snippets.

View dhanifudin's full-sized avatar
💻
work for home

Dian Hanifudin Subhi dhanifudin

💻
work for home
View GitHub Profile
@dhanifudin
dhanifudin / cheatsheet.md
Last active May 12, 2024 22:55
Cheatsheet

Cheatsheet Submission 2

Konfigurasi VPS

Instalasi Node.js

  • Persiapkan requirement untuk menambahkan repository nodesource dengan perintah berikut
sudo apt-get update

Installation RAN Simulator

Prerequisite

  • Kubernetes cluster or (k3s, kind or microk8s for single node)
  • Helm version 3

Installation Using sdran-helm-charts Repository

  • Add Helm repositories
    helm repo add cord https://charts.opencord.org 

helm repo add atomix https://charts.atomix.io

public class Latihan {
public static void main(String[] args) {
}
}
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
curl -sL https://deb.nodesource.com/setup_10.x | bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
apt-get update -y
echo "installing tzdata"
apt-get install tzdata -y
import android.util.Log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class HttpRequest {
@dhanifudin
dhanifudin / zshrc.zsh
Created July 23, 2016 11:05
Integrate prezto with zplug
export ZPLUG_HOME=$HOME/.zplug
source $ZPLUG_HOME/init.zsh
zmodload zsh/zprof
zplug "zplug/zplug"
# Prezto framework
zplug "sorin-ionescu/prezto", \
use:"init.zsh", \
@dhanifudin
dhanifudin / cvimrc
Created April 16, 2015 04:17
cvim configuration
let blacklists = ["*:localhost:*"]
let barposition = "bottom"
@dhanifudin
dhanifudin / .proxyrc
Created February 27, 2015 07:13
Easy way to configure proxy environment
proxy_server=proxy.your.heart
proxy_port=8080
proxy_user=subhi%40your.heart
proxy_password=your.heart
@dhanifudin
dhanifudin / autosave.vim
Last active December 20, 2015 16:00
Automatically save and remove trailing whitespace for vim
" Declare ignore filetype here
let g:ignore_autosave = 'tex'
function AutoSave()
if &modifiable == 1 && &readonly == 0
\ && expand('%') != ''
\ && &buftype != 'nofile'
%s/\s\+$//e
if &filetype != g:ignore_autosave
update
@dhanifudin
dhanifudin / UUIDModel.php
Last active September 9, 2015 19:39
Eloquent Laravel Model that autogenerated uuid and save using binary format
<?php
use Rhumsaa\Uuid\Uuid;
class UUIDModel extends Eloquent {
public $incrementing = false;
protected $softDelete = true;
public function __construct(array $attributes = array()) {