This file contains hidden or 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
-- References | |
-- https://serverfault.com/questions/60508/grant-select-to-all-tables-in-postgresql | |
-- https://blog.redash.io/postgres-readonly/ | |
-- Create a read-only role | |
CREATE ROLE myapp_readonly_role_name; | |
GRANT CONNECT ON DATABASE db_name TO myapp_readonly_role_name; | |
GRANT USAGE ON SCHEMA schema_name TO myapp_readonly_role_name; |
This file contains hidden or 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 | |
# This script cleans all cache for Microsoft Teams on Linux | |
# Tested on Ubuntu-like, Debian by @necrifede, Arch Linux by @lucas-dclrcq and Manjaro with flatpak by @danie1k. Feel free to test/use in other distributions. | |
# Tested Teams via snap package. | |
# Tested Teams via flatpak package. | |
# | |
# How to use in terminal: | |
# ./clear_cache_MS_Teams.sh ( deb-stable | deb-insider | snap | flatpak ) | |
# or |
- https://about.fb.com/news/2019/05/fake-accounts/ (稍微描述點方法)
- https://www.eyerys.com/articles/how-deep-entity-classification-ai-helped-facebook-remove-billions-fake-accounts (詳細描述偵測方法與建立訓練模型,內有影片,內容為Facebbok工程師出來分享如何做到)
DigitalOcean does not provide a way to download a snapshot of your droplet locally. You can use rsync to accomplish this instead.
On your local machine, assuming you have added your-server
in your SSH config:
rsync -aAXHv --append-verify --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} your-server:/
-a
: archive mode (all files, with permissions, etc.)-A
: preserve ACLs/permissions (not included with -a)
- CoLab
- Scikit Learn
- https://computingforgeeks.com/how-to-install-kvm-on-rhel-8
- https://blog.hostonnet.com/opennebula
- https://godleon.github.io/blog/KVM/KVM-Template-And-Snapshot/
- Most of trobuleshottings are also for KVM running in Ubuntu 18.04.
- https://www.linuxtechi.com/install-configure-kvm-ubuntu-18-04-server/
- https://linuxize.com/post/how-to-install-kvm-on-ubuntu-18-04/
- cmusatyalab/elijah-cloudlet#13
- https://askubuntu.com/questions/930491/group-libvirtd-does-not-exist-while-installing-qemu-kvm
- https://manpages.ubuntu.com/manpages/disco/man7/qemu-cpu-models.7.html
- https://bugs.launchpad.net/nova/+bug/1750829
- https://opennebula.io/selecting-the-right-cpu-model-on-kvm-x86-hosts
- https://superuser.com/questions/1231348/kvm-error-starting-domain-unsupported-configuration-unable-to-find-security-dr
- http://www.21yunwei.com/archives/6540
This file contains hidden or 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 | |
# References: | |
# https://www.mysterydata.com/update-apache-2-4-to-latest-version-on-ubuntu-16-04-server-vestacp/ | |
sudo_prefix="sudo " | |
if [[ ${USER} == "root" ]]; then | |
sudo_prefix="" | |
else |