Skip to content

Instantly share code, notes, and snippets.

View siriokun's full-sized avatar

Rio Purnomo siriokun

View GitHub Profile
@siriokun
siriokun / Light YouTube Embed.md
Last active June 15, 2023 18:40 — forked from mheland/YouTube embed in Privacy Enhanced mode
YouTube IFRAME embed for faster page loads in privacy enhanced mode
@siriokun
siriokun / fly.toml
Last active June 15, 2023 18:05
fly.io for ghost
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "sitename"
primary_region = "cdg"
[build]
image = "ghost:5.49-alpine"
@siriokun
siriokun / ddev-colima.md
Last active October 23, 2023 06:39
DDEV + Colima
brew install colima docker
colima start --cpu 4 --memory 4
# colima start (after computer restart)
# cd repo
ddev config --project-type=drupal9 --docroot=web --create-docroot
ddev start
# import db
ddev import-db --file=database.sql.gz
# uninstall modules
@siriokun
siriokun / github-cli.md
Created January 21, 2022 17:12
GIT with Github CLI

Steps setup Git with Github CLI

Install Github CLI, open CMD and run these commands:

  1. ssh-keygen -t ed25519 -C "your@email.test"
  2. gh ssh-key add c:/Users/yourname/.ssh/key.pub -t keyname
  3. gh repo clone username/reponame
@siriokun
siriokun / install-vscode-termux.md
Last active January 2, 2022 14:53
Proses instalasi VSCode lewar Termux pada HP Android

Install VSCode melalui Termux pada HP Android

  1. Install Termux dan jalankan termux-setup-storage
  2. pkg install proot-distro
  3. proot-distro install ubuntu
  4. proot-distro login ubuntu
  5. pkg update
  6. pkg install wget
  7. Pilih direktori untuk menyimpan cd ~/storage/download hasil download wget https://github.com/coder/code-server/releases/download/v3.12.0/code-server-3.12.0-linux-arm64.tar.gz
  8. tar -xvf code-server-3.12.0-linux-arm64.tar.gz
@siriokun
siriokun / install-statamic-termux.md
Last active January 1, 2022 03:00
Proses instalasi Statamic pada Windows 10 atau HP Android

Cara install Statamic menggunakan Termux di HP Android

  1. Install Termux
  2. termux-setup-storage
  3. apt update && apt upgrade
  4. cd ~/storage/downloads
  5. mkdir htdocs
  6. cd htdocs
  7. Install Composer,
@siriokun
siriokun / alpine-todo.html
Created November 17, 2021 08:45 — forked from kez/alpine-todo.html
Alpine.js Todo App Demo (with Tailwind). Please feel free to fork and refactor with improvements! Motivation/details here https://www.kdobson.net/2020/alpine-js-todo-demo/)
<!DOCTYPE html>
<html lang="en">
<head>
<title>Alpine.js Todo Demo</title>
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.js" defer></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tailwindcss/ui@latest/dist/tailwind-ui.min.css">
<meta charset="utf-8">
</head>
git clone https://github.com/flutter/flutter.git -b stable
cd flutter
pwd # this will show your current path to replace [PATH_OF_FLUTTER_GIT_DIRECTORY]
sudo nano $HOME/.bashrc
export PATH="$PATH:[PATH_OF_FLUTTER_GIT_DIRECTORY]/bin"
echo $PATH
which flutter dart
flutter config --no-analytics
flutter precache
@siriokun
siriokun / The fix.md
Created October 5, 2021 07:27 — forked from megclaypool/The fix.md
["Unable to unlink, Permission denied" Error] Solution for: ``` $ git pull error: unable to unlink old 'sites/default/default.settings.php': Permission denied ```

In this case, the specific error was:

$ git pull
error: unable to unlink old 'sites/default/default.settings.php': Permission denied

I opened the sites directory and saw the following:

$ lll
  rwxr-xr-x  noxlady  staff  160 B    Tue Sep  4 13:34:39 2018  M?    all/
 r-xr-xr-x noxlady staff 192 B Tue Sep 4 13:40:49 2018 ✓  default/
@siriokun
siriokun / ssl.conf.sh
Last active September 16, 2021 12:38 — forked from githiro/ssl.conf
Apache: basic ssl.conf file
#
# This is the Apache server configuration file providing SSL support.
# It contains the configuration directives to instruct the server how to
# serve pages over an https connection. For detailing information about these
# directives see <URL:http://httpd.apache.org/docs/2.2/mod/mod_ssl.html>
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#