Skip to content

Instantly share code, notes, and snippets.

View ranggasama's full-sized avatar

Johanes Anggara ranggasama

  • Jakarta, Indonesia
View GitHub Profile
@ranggasama
ranggasama / post.go
Created January 20, 2021 11:08
Sample Golang application to send HMAC authentication
package main
import (
"bytes"
"crypto/hmac"
"crypto/sha256"
"crypto/tls"
"encoding/base64"
"fmt"
"io/ioutil"
@ranggasama
ranggasama / index.js
Last active January 20, 2021 11:01
Sample NodeJs application to send HMAC authentication
const https = require('https');
const fs = require('fs');
const crypto = require('crypto');
const data = JSON.stringify({
foo: 'bar'
}),
path = '/ok',
method = 'POST';
@ranggasama
ranggasama / .zshrc
Created January 4, 2021 01:28
WSL2
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export TERM="xterm-256color"
# Path to your oh-my-zsh installation.
export ZSH="/home/ranggasama/.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,
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
"copyOnSelect": false,
"copyFormatting": false,
"profiles": {
"defaults": {
},
"list": [
{