Skip to content

Instantly share code, notes, and snippets.

View xfathurrahman's full-sized avatar
👨‍🍳
Cooking

Fathurrahman xfathurrahman

👨‍🍳
Cooking
View GitHub Profile
@xfathurrahman
xfathurrahman / delete_workflow_runs.sh
Last active January 12, 2025 13:49
Delete All GitHub Workflow Runs Script
#!/bin/bash
# Replace with your personal access token
GITHUB_TOKEN="your-personal-access-token"
# Replace with the repository owner's name
OWNER="your-username"
# Replace with the repository name
REPO="your-repo-name"
# Get the list of workflow runs
app = "mysql8"
primary_region = "sin"
[build]
image = "mysql:8"
[env]
MYSQL_DATABASE = "db_test"
MYSQL_USER = "non_root_user"
@xfathurrahman
xfathurrahman / Nginx Proxy Manager on Fly.io
Created July 5, 2024 17:45
Simple Nginx Proxy Manager configuration to deploy Nginx Proxy Manager to Fly.io!
app = 'npm-on-fly'
primary_region = 'sin' # (Singapore) choose the region closest to your users
[build]
image = 'jlesage/nginx-proxy-manager:latest'
[env]
DB_MYSQL_HOST = 'your.db.host'
DB_MYSQL_NAME = 'db_npm'
DB_MYSQL_PASSWORD = 'awdkwakjdbakwbdkawbd' # You can also use a fly secret here to keep your credentials safe
@xfathurrahman
xfathurrahman / configuration.nix
Last active July 8, 2024 15:01
NIX OS - Personal Nix configuration
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@xfathurrahman
xfathurrahman / silverblue.txt
Last active July 11, 2024 16:49
My setup on Asus ROG
sudo yum install libusbx-devel libudev-devel
https://github.com/wroberts/rogauracore.git
### Change user shell to zsh ###
its works : sudo usermod --shell /path/to/shell < user >
----------- sudo usermod --shell $(which zsh) $USER ------------