Skip to content

Instantly share code, notes, and snippets.

View zaki-hanafiah's full-sized avatar
🥸
🐔 the one who knocks

Zaki zaki-hanafiah

🥸
🐔 the one who knocks
View GitHub Profile
@zaki-hanafiah
zaki-hanafiah / coh2_fix.sh
Created July 23, 2023 11:16
COH2_Proton_fix
#!/bin/bash
# Just a simple bash script to automate extracting & moving a required dll to fix multiplayer sync-error issue.
# All credit for the script to TechT10n, updated for PopOS! 22.04
# Credit for writing down the steps for this solution goes to jrbergen, who in turn got the solution from Cytomax55.
# More details here: https://gist.github.com/jrbergen/0ce746676c4fbcc2becd6054d1bba2ed
# and here: https://github.com/ValveSoftware/Proton/issues/3875#issuecomment-764191557
# Below is the default Steam library location.
# Change the path for STEAM_ROOT if you do not use the default location for your Steam Library (do NOT include the trailing /)
@zaki-hanafiah
zaki-hanafiah / proxmox-cifs-lxc.md
Last active July 2, 2024 16:16
Proxmox: Create CIFS shared storage between host and LXCs (Linux Containers)

In the LXC (run commands as root user)

  1. Create the group "lxc_shares" with GID=10000 in the LXC which will match the GID=110000 on the PVE host.

   groupadd -g 10000 lxc_shares

  1. Add the user(s) that need access to the CIFS share to the group "lxc_shares". f.e.: jellyfin, plex, ... (the username depends on the application)

   usermod -aG lxc_shares USERNAME

#!/bin/sh
#
# Suggested name for this script: git-clean-stale-branches
#
# This script will help to remove "stale" branches from a remote
# repository (by default the "origin" repository). Stale branches
# are any branches that does not exist in the local repository.
#
# This script should be run in the local repository. It will print
# out a git command to remove all branches from the remote repository
@zaki-hanafiah
zaki-hanafiah / multiple_ssh_setting.md
Last active December 29, 2021 14:48 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"