Skip to content

Instantly share code, notes, and snippets.

View HirogaKatageri's full-sized avatar
:atom:
Constantly planning~

Gian Quintana HirogaKatageri

:atom:
Constantly planning~
View GitHub Profile
@HirogaKatageri
HirogaKatageri / .zshrc
Created March 25, 2023 13:48
Tmux Config for MacOS
# Use 'reattach-to-user-namespace' to enable copy & paste using clipboard.
if command -v reattach-to-user-namespace >/dev/null 2>&1; then
alias pbcopy='reattach-to-user-namespace pbcopy'
alias pbpaste='reattach-to-user-namespace pbpaste'
fi
@HirogaKatageri
HirogaKatageri / manual_partition.md
Last active September 21, 2022 01:36
Simple Guide for Manual Partition of a Linux System

Simple Commands for Manual Partitioning

Partition Table

fdisk 
  -g GPT Partition
  -l (1,19) (43 if you need LVM)
  -n add partition
  -x advanced options
 -f sort order
@HirogaKatageri
HirogaKatageri / cyberghost-vpn-autostart-ubuntu-20.04
Created September 10, 2021 14:44
Enable Autostart of CyberGhostVPN
- Create a /usr/bin/cyberghostvpn-autostart file.
- Enter your cyberghostvpn connect commands without 'sudo' save and exit.
- Enter command 'sudo visudo'
- Input the following at the last line: "<username> ALL=(ALL) NOPASSWD:/usr/bin/cyberghostvpn-autostart"
- Open your startup applications and enter the ff:
- Command: sudo /usr/bin/cyberghostvpn-autostart
@HirogaKatageri
HirogaKatageri / Skyrim with SKSE
Last active July 4, 2021 12:45
Install Skyrim: Special Edition with SKSE 2021-06-04
- Install Skyrim Special Edition using Steam.
- Download SKSE on https://drive.google.com/file/d/1I6tgvZDaSs2JPXkHdWJwuZVwzF0OSpzz/view?usp=sharing
this contains a hotfix for SKSE in use with GE's Custom ProtonDB.
- Extract content of SKSE zip file to "~/.local/share/Steam/steamapps/common/Skyrim Special Edition"
- Backup SkyrimSELauncher.exe and SkyrimSE.exe
- Rename skse64_loader.exe to SkyrimSELauncher.exe
- Edit Skyrim: Special Edition launch options "WINEDLLOVERRIDES="xaudio2_7=n,b" PULSE_LATENCY_MSEC=90 %command%"
- Run Skyrim via Steam and on the Main Menu try typing "GetSKSEVersion" to see if SKSE is running successfully
@HirogaKatageri
HirogaKatageri / .bashrc #git shortcuts
Last active September 21, 2022 23:10
Shell Script Commands: Git Shortcuts
# Add the following line to your ~/.bashrc or where your other shell commands are at.
# git.ignore: Untracks ignored files in Git.
# git.prune: Deletes local merged branches on current branch. It protects: (master, main, develop)
alias git.ignore='git add . && git commit -m "Committing all changes..." && git rm -r --cached . && git add . && git commit -m "Removing ignored tracked files..."'
alias git.prune='git branch --merged | egrep -v "(^\*|master|main|develop)" | xargs git branch -d'
@HirogaKatageri
HirogaKatageri / ubuntu-env-locations.txt
Last active May 26, 2021 01:27
Ubuntu Environment Variable Locations
- ~/.profile
- ~/.bashrc
- ~/etc/environment
- ~/etc/profile
fun View.onScreenResize(onResize: (isScreenSmaller: Boolean) -> Unit) {
this.viewTreeObserver.addOnGlobalLayoutListener {
val r = Rect()
this.getWindowVisibleDisplayFrame(r)
val screenHeight = this.rootView.height
val keypadHeight = screenHeight - r.bottom
val ratio = 0.15
@HirogaKatageri
HirogaKatageri / EditText Extension
Last active July 21, 2019 15:07
EditText Multi-Line Action:[Done] Kotlin Extension
fun EditText.isMultilineSendEnabled(isEnabled: Boolean) {
if (isEnabled) {
this.imeOptions = EditorInfo.IME_ACTION_DONE
this.setRawInputType(InputType.TYPE_CLASS_TEXT)
}
}
@HirogaKatageri
HirogaKatageri / Terminal Commands to untrack .gitignore files in Git Repository
Last active July 21, 2019 15:09
Untracking .gitignore files in Git Repository
1: Commit All Changes
2: git rm -r --cached .
3: git add .
4: Commit
---
https://stackoverflow.com/a/49969162/2598247