Skip to content

Instantly share code, notes, and snippets.

View ahmadshobirin's full-sized avatar
😶‍🌫️

Ahmad Shobirin ahmadshobirin

😶‍🌫️
View GitHub Profile
int led1 = 0;
int led2 = 1;
int led3 = 2;
int led4 = 3;
int led5 = 4;
int led6 = 5;
int led7 = 6;
int led8 = 7;
void setup() {
@ahmadshobirin
ahmadshobirin / Github revert commit and updated to repo.md
Last active March 4, 2021 12:33
Github revert commit and updated to repo

Revert the full commit

Move to branch target ex: master

git checkout {branch}

Get commit id from the repo or git log and reseted

git reset --hard {commit_id}

@ahmadshobirin
ahmadshobirin / PUISI IT, Yusron dan Shobirin
Created August 13, 2020 03:51
PUISI IT, Yusron dan Shobirin
PUISI IT
Surya kembali terbit tanpa terbirit-birit
seperti biasa aku dan hariku kian hari kian rumit
Projek A membelit belum Project B dan C terasa sembelit
"nanti bantu inject data client ya?!" katanya; tapi datanya kurang komplit
dikasih arahan biar nggak dikira pelit
segala usaha dilakukan ibarat lari sambil jinjit
saya kerjakan setiap jam dan menit
@ahmadshobirin
ahmadshobirin / Laravel or Lumen Command Not Found Ubuntu 20
Last active August 5, 2020 08:42
Laravel or Lumen Command Not Found Ubuntu 20
#Make sure u have installed **Laravel or Lumen**
- composer global require laravel/installer
- composer global require "laravel/lumen-installer"
For zsh
echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.zshrc
source ~/.zshrc
@ahmadshobirin
ahmadshobirin / readme.md
Created August 5, 2020 08:37 — forked from benstr/readme.md
Gist Markdown Cheatsheet

#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6


Paragraph

@ahmadshobirin
ahmadshobirin / GENERATE NO TRANSACTION INCREMENT OR SEQUENCE BY QUERY
Created July 24, 2020 07:16
GENERATE NO TRANSACTION INCREMENT OR SEQUENCE BY QUERY
--GENERATE PLAN LINK200600807 FOR COLUMN 'ordersn'
--USED MAX NOT COUNT
--TESTED IN POSTGRESQL
-- FUNCTION ONLY POSTGRES
-- 1. '||' FOR CONCAT
-- 2. 'TO_CHAR' FOR GENERATE DATE FORMAT
-- 3. '::TEXTT' FOR CASTING
SELECT 'LINK' || to_char(CURRENT_DATE, 'YYMMDD') ||
@ahmadshobirin
ahmadshobirin / One Command LINE Git add, commit, push.md
Last active December 15, 2022 19:42
One Command LINE Git add, commit, push

TYPE IN TERMINAL


git config --global alias.lazy '!f() { git add -A && git commit -m "$@" && git push; }; f'

REFRESH U TERMINAL

and use this command for add, and commit

@ahmadshobirin
ahmadshobirin / Upload All Files In Folder Local To VPN Server, UBUNTU
Last active May 29, 2020 04:05
Upload All Files In Folder Local To VPN Server, UBUNTU
#Use SCP, make sure you have installed it or installed it now
`sudo apt install openssh-client` or `sudo apt-get install openssh-client`
1. Open Terminal
2. command: `scp -r localpath/* user@ip:/path/to/upload`
Note:
`-r` meaning a recursive get all files and sub folder
`localpath` is a local folder on your computer, and user `/*` get only files, subfolders
@ahmadshobirin
ahmadshobirin / form-register aslab
Created October 12, 2019 05:05
form-register aslab
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tugas Pertama HTML</title>
</head>
<style>
#register-form{
margin: 0 auto;
width: 350px;
@ahmadshobirin
ahmadshobirin / Parse Variabel Json to Jquery Laravel
Last active August 26, 2019 07:29
Parse Variabel Json to Jquery Laravel
//Controller
public function edit($id)
{
$data = User::where('id',$id)->first()->toJson(); //only model can use toJson()
return view('admin/pencatatan/form',[ 'data' => $data]);
}
//js-view
var data = {!! $data !!}