Skip to content

Instantly share code, notes, and snippets.

View aamsur's full-sized avatar

Aam Surganda aamsur

View GitHub Profile
@aamsur
aamsur / git-commit-verify.sh
Created November 24, 2020 09:40
Git Commit Verified
# Create GPG
gpg --full-generate-key
# Your selection? 1
# Key is valid for? (0) 0
# Is this correct? (y/N) y
# Real name: Aam Surganda
# Email address: aam.surganda@unitedfamilyfood.com (sesuaikan dengan alamat email ketika commit)
# Comment: Professional Identity
@aamsur
aamsur / set_monitor.sh
Created November 13, 2020 03:17
Custom xrandr resolution 1600x900
#!/bin/bash
# xrandr only works in X11 sessions, not Wayland
[ "$XDG_SESSION_TYPE" = x11 ] || exit 0
xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
xrandr --verbose --addmode eDP-1 "1600x900_60.00"
sleep 10;
xrandr --output eDP-1 --mode "1600x900_60.00"
@aamsur
aamsur / cloudSettings
Last active November 21, 2020 01:49
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-11-21T01:49:03.405Z","extensionVersion":"v3.4.3"}
@aamsur
aamsur / vscode-extention.list
Last active June 26, 2019 07:13
VSCode must have extentions
Visual Studio Code:
opensource, with many updates, and package for almost anything, in laravel development I use this plugins:
Laravel 5 Snippets.
Blade Snippets.
Blade Spacer.
PHP DOCBlocker.
Laravel Artisans. (execute commands by the command pallete).
terminal (to get a button to open the terminal from VS code).
@aamsur
aamsur / http_get_request.go
Created March 13, 2017 02:08
golang http post request
package main
import (
"bytes"
"fmt"
"io/ioutil"
"net/http"
"net/url"
)