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
#!/usr/bin/env zx | |
$.verbose = argv.verbose; | |
$.silent = argv.silent; | |
import { | |
assertGit, | |
assertGithubCli, | |
getGitCtxT, | |
HandledError, |
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
#!/usr/bin/env zx | |
/** | |
* Util/Lib functions for zx scripts | |
*/ | |
/* eslint-disable i18next/no-literal-string */ | |
/* eslint-disable no-console */ | |
export class HandledError extends Error {} |
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
#!/usr/bin/env zx | |
// eslint-disable-next-line import/no-unresolved | |
// import { startSpinner } from 'zx/experimental'; | |
const about = ` | |
/** | |
* myscript.mjs | |
* - what i do | |
* - why i do |
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
<touchégg> | |
<settings> | |
<property name="composed_gestures_time">0</property> | |
</settings> | |
<application name="All"> | |
<gesture type="TAP" fingers="2" direction="UNKNOWN"> | |
<action type="MOUSE_CLICK">undefined</action> | |
</gesture> | |
<gesture type="TAP" fingers="3" direction="UNKNOWN"> | |
<action type="MOUSE_CLICK">undefined</action> |
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
#!/bin/bash | |
echo " | |
Because you can only create encrypted home for another not logged in user, you must create a separate user to set up the encrypted home for. | |
The manjaro_setup_encrypted_home.sh script will set the ecryptfs pam moduls, and encrypt the home dir if the user has no running processes (not logged in). | |
Follow the original instructions from the encryption output at the end of the process: the target user should test if he/she can log in before the restart. | |
After setting encrypted home(s), a restart is advised. |
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
#!/bin/bash | |
echo " | |
Because you can only create encrypted home for another not logged in user, you must create a separate user to set up the encrypted home for. | |
The manjaro_setup_encrypted_home.sh script will set the ecryptfs pam moduls, and encrypt the home dir if the user has no running processes (not logged in). | |
Follow the original instructions from the encryption output at the end of the process: the target user should test if he/she can log in before the restart. | |
After setting encrypted home(s), a restart is advised. |
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
#!/bin/bash | |
echo " | |
Note: If user is not yet created use other script manjaro-create-user.sh | |
Because you can only create encrypted home for another not logged in user, you must create a separate user to set up the encrypted home for. | |
The manjaro_setup_encrypted_home.sh script will set the ecryptfs pam moduls, and encrypt the home dir if the user has no running processes (not logged in). |
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
ADMIN_USER=manjaro | |
echo "*******Creating $ADMIN_USER with encrypted home*******" | |
# Enable user home encryption features (doesnt actually encrypt anything, just enables the features | |
sudo pacman -Sy lsof | |
sudo modprobe ecryptfs | |
if [ $(grep pam_ecryptfs /etc/pam.d/system-auth | wc -l) = "0" ]; then | |
sudo sed -i '/^auth\s*\[default=die\]\s*pam_faillock.so\s*authfail/a auth [success=1 default=ignore] pam_succeed_if.so service = systemd-user quiet\nauth required pam_ecryptfs.so unwrap' /etc/pam.d/system-auth | |
sudo sed -i '/^-password\s*\[success=1\s*default=ignore\]\s*pam_systemd_home.so/i password optional pam_ecryptfs.so' /etc/pam.d/system-auth | |
sudo sed -i '/^session\s*required\s*pam_unix.so/a session [success=1 default=ignore] pam_succeed_if.so service = systemd-user quiet\nsession optional pam_ecryptfs.so unwrap' /etc/pam.d/system-auth |
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
// This JS will switch FB messenger to dark theme | |
var css = ` | |
:root, .__fb-light-mode { | |
--fds-black: black; | |
--fds-black-alpha-05: rgba(0, 0, 0, 0.05); | |
--fds-black-alpha-10: rgba(0, 0, 0, 0.1); | |
--fds-black-alpha-15: rgba(0, 0, 0, 0.15); | |
--fds-black-alpha-20: rgba(0, 0, 0, 0.2); | |
--fds-black-alpha-30: rgba(0, 0, 0, 0.3); | |
--fds-black-alpha-40: rgba(0, 0, 0, 0.4); |
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
<touchégg> | |
<settings> | |
<property name="composed_gestures_time">0</property> | |
</settings> | |
<application name="All"> | |
<gesture type="TAP" fingers="2" direction="UNKNOWN"> | |
<action type="MOUSE_CLICK">undefined</action> | |
</gesture> | |
<gesture type="TAP" fingers="3" direction="UNKNOWN"> | |
<action type="MOUSE_CLICK">undefined</action> |
NewerOlder