curl -o- https://gist.githubusercontent.com/heri16/c64ec7a20334cc4037ab879083bed5a4/raw/chrome-remote-desktop.patch | sudo patch /opt/google/chrome-remote-desktop/chrome-remote-desktop
crd --restart
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
<!DOCTYPE html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Saving multiple files as zip</title> | |
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.773.0.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/amazon-cognito-identity-js@4.4.0/dist/amazon-cognito-identity.min.js"></script> | |
<script src="https://gist.githubusercontent.com/heri16/d4e325a13c3e57f7e24ada1f7c459843/raw/events.js"></script> |
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
mkdir -p ~/.postgresql && curl -o- https://s3.amazonaws.com/rds-downloads/rds-ca-2019-root.pem | tee ~/.postgresql/root.crt | |
psql "postgresql://postgres:<password>@prod.cluster-<xxxxxxxxx>.ap-southeast-1.rds.amazonaws.com/<dbname>?sslmode=verify-full" | |
# OR | |
curl -o- https://s3.amazonaws.com/rds-downloads/rds-ca-2019-root.pem | tee rds-ca-2019-root.pem | |
psql "postgresql://postgres:<pasword>@prod.cluster-<xxxxxxxxx>.ap-southeast-1.rds.amazonaws.com/<dbname>?sslmode=verify-full&sslrootcert=rds-ca-2019-root.pem" |
This tutorial will help you setup a Bastion host on AWS.
Arch Linux is most suitable for this task as it is the most lightweight distro after the likes of TinyCoreLinux and Alpine Linux, runs the latest Stable Linux Kernel with up-to-date security, and allows rolling upgrades with no downtime. (Such features are not available from common distros like Centos and Ubuntu server.)
This step is optional but avoids "VPC Peering" issues with other AWS regions (if you need them in future).
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
https://hangouts.google.com/call/5RtETsKTnsGnQHAnPgN5ACEM |
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
<domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm"> | |
<name>win10</name> | |
<uuid>d2c97462-3a70-4afb-ab72-5916e8ac25ae</uuid> | |
<title>Windows 10</title> | |
<metadata> | |
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0"> | |
<libosinfo:os id="http://microsoft.com/win/10"/> | |
</libosinfo:libosinfo> | |
</metadata> | |
<memory unit="KiB">8388608</memory> |
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/libalpm/hooks/90-mkinitcpio-install.hook 2020-03-05 12:45:41.000000000 +0800 | |
+++ /etc/pacman.d/hooks/90-mkinitcpio-install.hook 2020-06-13 23:08:32.861202141 +0800 | |
@@ -8,5 +8,7 @@ | |
[Action] | |
Description = Updating linux initcpios... | |
When = PostTransaction | |
-Exec = /usr/share/libalpm/scripts/mkinitcpio-install | |
+Exec = /usr/local/share/libalpm/scripts/mkinitcpio-install | |
+Depends = sbsigntools | |
+Depends = x11-ssh-askpass |
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
#oca.nflxvideo.net { | |
# # Cloaking: Make *.oca.nflxvideo.net resolve to 127.0.0.1 | |
# rewrite name regex (.+)\.oca\.nflxvideo\.net oca.nflxvideo.net | |
# hosts { | |
# 127.0.0.1 oca.nflxvideo.net | |
# } | |
#} | |
. { | |
# Cloaking: Make *.oca.nflxvideo.net resolve to 127.0.0.1 (localhost) |
Install streamlink utility (https://streamlink.github.io/install.html)
choco install streamlink
- Get youtube share link: https://youtu.be/gIB2egm7tL8
hls-live-restart
will record from beginning of stream
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
#cloud-config | |
# Validate: sudo ros config validate -i cloud-config.yml | |
# Usage: sudo ros install -c https://bit.ly/ros-cloud-config -d /dev/sda -s --append "rancher.autologin=tty1 rancher.autologin=ttyS0" | |
ssh_authorized_keys: | |
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCsnVbSuI95xB2jvcTysn0tAeQfm0zVNWYuqB0xVWiAQIyMWjSbDiXGHxHlP980Dqz1Yq3rOjXQBK2Dfi9FnpLXybQZr/VwOxPOLfisbez49UgI1uPfg/bzQB8ezqn0qDgnnLxEOldeoE0w0gUwQs1tMw5kt9wvsACc2VdYiT1B3iKmckPUfNT0SikkZ5yW/YBrvLP2M1m3Ip4i8MGRi8CfpuRuH6Yt6da9MPe7FK4IsSpVUbQPwKF0TUB0mA5SFtZvjnqgQUxLAANGQcwPDXqiOiXZYb2yRPDeuSerN35BcX2NtS0yW+bgqOfTDA9BXWBdSZ1JLzhSHmgPNmgeHOqzcEhXGPa7qtPACKgg8C9zaevFCENBlCo8ybIi00SICLiEGKPhgfr8UPT6+z5B6k+HinMKvCMfn5LcaTOeGXxS/BNDnQveToOZ0wcD3hA8/OZlP7hth55BNJoscornj0Vma9qQUeY6UxffypbY4uo4eZA+i8su9Sv01XMFQO0SdBg00l+dPM6wugtVOUwDuKrBwKb0kubZsWKz5jxKcsgABoxUUPiN/7a3KbToYeRi8zxZKkD5HFpvMT1AGqOHv0aIMc+iyFPXYk1MIrvPnTuViJ/haLHdMdDbw9fuKLfNQcGi07Xb4AfE7caAGJyGgjMcTaQ3lu8eJbVJNpjK/nIfyw== Heri-no-iPhone | |
rancher: | |
console: ubuntu # https://rancher.com/docs/ |