- Configure
/tmp
as perfstab
, adjustsize
if needed - Copy
xdg-cache.service
to/etc/systemd/user/xdg-cache.service
- Copy
xdg-cache.sh
to/usr/local/bin/xdg-cache.sh
and thenchmod +x /usr/local/bin/xdg-cache.sh
- Run
systemctl --user enable xdg-cache.service
as the user that needs this service
View Functional.java
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
public interface Functional { | |
void consume(String value); | |
String supply(); | |
String operate(String value); | |
} |
View Counting.java
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
public class Counting { | |
private int counter; | |
public int increaseCounter() { | |
counter = counter + 1; | |
return counter; | |
} | |
} |
View dkim_rotation.sh
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 bash | |
# Read https://www.linode.com/docs/email/postfix/configure-spf-and-dkim-in-postfix-on-debian-8 first! | |
# Run this script at the beginning of each month | |
# (Optional) Email notification if the script is interrupted | |
#function notify() { | |
# printf 'Refer to the logs for further info.\n' | mail -s 'DKIM rotation process was interrupted' 'admin@example.com' | |
#} | |
# |
View 10-snapshot.hook
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
[Trigger] | |
Operation=Install | |
Operation=Upgrade | |
Operation=Remove | |
Type=Package | |
Target=* | |
[Action] | |
When=PreTransaction | |
Exec=/usr/local/bin/pacman-snapshots.sh |
View gpghub.sh
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 bash | |
OWNER="$1" | |
REPO="$2" | |
declare -A PROCESSED | |
function import_github_pgp() { | |
local github_login="$1" | |
printf 'Importing PGP key of GitHub user %s\n' "$github_login" |
View update_jbrsdk.sh
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 bash | |
# shellcheck disable=SC2001 | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
OS=$(uname) | |
case "$OS" in | |
Linux) | |
OS="${OS,,}" |
View 1-diff-from-neovim-0.4.3.diff
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/share/nvim/runtime/autoload/man.vim 2020-03-31 21:23:02.000000000 +1100 | |
+++ ./man.vim 2020-04-27 01:04:54.716553901 +1000 | |
@@ -8,31 +8,8 @@ | |
let s:find_arg = '-w' | |
let s:localfile_arg = v:true " Always use -l if possible. #6683 | |
let s:section_arg = '-s' | |
-function! s:init_section_flag() | |
- call system(['env', 'MANPAGER=cat', 'man', s:section_arg, '1', 'man']) | |
- if v:shell_error |
View control.sh
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 bash | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" | |
IMAGE= | |
TAG='latest' | |
CONTAINER= | |
function printf() { | |
format="\e[1;31m$1\e[m" | |
shift |
View #Usage.md
View mysql-diff.csv
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
AUR Package | AUR File | Ubuntu Package | Ubuntu File | src Path | Common File | |
---|---|---|---|---|---|---|
mysql-community-server | /etc/apparmor.d/usr.sbin.mysqld | |||||
mysql | /etc/conf.d/mysql.conf | |||||
mysql | /etc/ld.so.conf.d/mysql.conf | |||||
mysql-common | /etc/mysql/conf.d/mysql.cnf | ./mysql/src/mysql-8.0.17/packaging/deb-in/extra/conf.d/mysql.cnf,./mysql/src/mysql-8.0.17/packaging/deb-in/extra/mysql.cnf | ||||
mysql | /etc/mysql/my.cnf | |||||
libmysqlclient | /etc/mysql/my.cnf.default | |||||
mysql-common | /etc/mysql/my.cnf.fallback | ./mysql/src/mysql-8.0.17/packaging/deb-in/extra/my.cnf.fallback | ||||
mysql-community-server | /etc/mysql/mysql.cnf | ./mysql/src/mysql-8.0.17/packaging/deb-in/extra/conf.d/mysql.cnf,./mysql/src/mysql-8.0.17/packaging/deb-in/extra/mysql.cnf | ||||
mysql-community-server | /etc/mysql/mysql.conf.d/mysqld.cnf | ./mysql/src/mysql-8.0.17/packaging/deb-in/extra/mysqld.cnf |
NewerOlder