Skip to content

Instantly share code, notes, and snippets.

View siriokun's full-sized avatar

Rio Purnomo siriokun

View GitHub Profile
@siriokun
siriokun / new-linux-setup.md
Last active March 17, 2023 09:25
New Linux Setup
  1. Setup Docker
sudo apt-get update
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

Run post-install step: https://docs.docker.com/engine/install/linux-postinstall/

  1. Setup Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@siriokun
siriokun / git-pull.txt
Created June 28, 2021 15:34
Cara Update dari repository utama
git checkout -b fitur-navigasi main
git pull git://github.com/mulaidev/mapay.git main
git checkout main
git merge --no-ff fitur-navigasi
@siriokun
siriokun / git-setup.txt
Last active June 28, 2021 14:58
GIT Setup
cd ~/.ssh
ssh-keygen -t ed25519 -C "siriokun@gmail.com"
# Enter file in which to save the key (/Users/rio/.ssh/id_ed25519): siriokun
# jika windows:
clip < ~/.ssh/siriokun.pub
# jika mac:
pbcopy < ~/.ssh/siriokun.pub
ssh-add ~/.ssh/siriokun
git config --global user.email "siriokun@gmail.com"
git config --global user.email
@siriokun
siriokun / component.html
Created October 31, 2020 06:48
component.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🧱</text></svg>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Super Simple Web Component Example</title>
</head>
<body>
@siriokun
siriokun / install_certbot.sh
Created September 28, 2020 11:18
Install Certbot on CentOS
cat /etc/os-release
sudo yum install mod_ssl
sudo yum install epel-release
sudo yum install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install certbot --classic
sudo reboot
snap list
sudo snap run certbot --apache
/* purgecss start ignore */
@tailwind base;
@tailwind components;
/* purgecss end ignore */
/*
...
...
...other css
...
@siriokun
siriokun / git-merge.sh
Last active April 17, 2020 06:27
GIT Shortcuts
git fetch master
git merge master
$ git remote rm origin
$ git remote add origin git@github.com:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
@siriokun
siriokun / app.js
Created January 25, 2019 03:57
Project X
import './style';
@siriokun
siriokun / query.sql
Created January 8, 2019 10:36
Change WordPress links from live site to localhost
// Change home_url to localhost
update wp_options set option_value =
replace(option_value,'http://yourlivesite.tld','http://localhost/wp');
// Change links in content
update wp_posts set post_content =
replace(post_content,'http://yourlivesite.tld','http://localhost/wp');