fdisk
-g GPT Partition
-l (1,19) (43 if you need LVM)
-n add partition
-x advanced options
-f sort order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- ~/.profile | |
- ~/.bashrc | |
- ~/etc/environment | |
- ~/etc/profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun EditText.isMultilineSendEnabled(isEnabled: Boolean) { | |
if (isEnabled) { | |
this.imeOptions = EditorInfo.IME_ACTION_DONE | |
this.setRawInputType(InputType.TYPE_CLASS_TEXT) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1: Commit All Changes | |
2: git rm -r --cached . | |
3: git add . | |
4: Commit | |
--- | |
https://stackoverflow.com/a/49969162/2598247 |