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/perl -w | |
# Hook script for vzdump to backup to a GCS bucket | |
# Based on the blog post of Andrew Palardy | |
# https://www.apalrd.net/posts/2022/pve_backup/ | |
use strict; | |
# Define the name of your bucket here | |
my $bucket = "proxmox-monthly-backup"; |
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
``` | |
$ defaults delete ~/Library/Preferences/com.apple.coreservices.useractivityd.plist ClipboardSharingEnabled | |
$ defaults write ~/Library/Preferences/com.apple.coreservices.useractivityd.plist ClipboardSharingEnabled 1 | |
``` | |
[Copy and paste from iPhone to MacOS not w… \- Apple Community](https://discussions.apple.com/thread/254811288?answerId=259970423022&sortBy=best#259970423022) |
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
userid=<username> | |
adduser ${userid} | |
usermod -aG sudo ${userid} |
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
$paths = @( | |
"google-drive:Google Photos\path1", | |
"google-drive:Google Photos\path2", | |
"google-drive:Google Photos\path3", | |
) | |
$paths | ForEach-Object -Process { | |
echo $_ ; .\rclone lsf $_ | Measure-Object –Line ; if($?) {.\rclone dedupe --dedupe-mode largest $_} | |
} |
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
--- | |
- hosts: all | |
vars: | |
UBUNTU_COMMON_ROOT_PASSWORD: 'xxxxx' | |
UBUNTU_COMMON_DEPLOY_PASSWORD: 'xxxxx' | |
UBUNTU_COMMON_LOGWATCH_EMAIL: [email protected] | |
ubuntu_common_deploy_user_name: deploy | |
ubuntu_common_deploy_public_keys: | |
- ~/.ssh/id_rsa.pub |
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
wget https://github.com/gitbucket/gitbucket/releases/download/$(curl -s https://api.github.com/repos/gitbucket/gitbucket/releases/latest | grep -Po '(?<="tag_name": ")[^"]*')/gitbucket.war -O gitbucket.war |
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 makepdfs ja | |
Will generate pdf for the following languages: | |
ja | |
The generation process will start now. | |
ja: | |
Parsing markdown... done | |
Creating main.tex for ja... Exception `Errno::EEXIST' at /usr/lib/ruby/1 .9.1/fileutils.rb:247 - File exists - /home/vagrant/projects/progit-ja/latex/ja | |
done | |
Running XeTeX: |
NewerOlder