Refer to the official documentation and download page:
export ALICLOUD_ACCESS_KEY="anaccesskey"
export ALICLOUD_SECRET_KEY="asecretkey"
on run {input, parameters} | |
set img_path to POSIX path of input | |
set the clipboard to POSIX file img_path | |
end run |
# inside 'common' folder | |
output "vpc-id" { | |
value = "${alicloud_vpc.default.id}" | |
} |
Refer to the official documentation and download page:
export ALICLOUD_ACCESS_KEY="anaccesskey"
export ALICLOUD_SECRET_KEY="asecretkey"
Refer to the official documentation and download page:
export ALICLOUD_ACCESS_KEY="anaccesskey"
export ALICLOUD_SECRET_KEY="asecretkey"
data "alicloud_instance_types" "1c1g" { | |
cpu_core_count = "1" | |
memory_size = "1" | |
} |
# remove old | |
rm -rf /opt/wcl/monitoring | |
mkdir -p /opt/wcl/monitoring | |
chmod 755 /opt/wcl | |
cd /opt/wcl/monitoring | |
# https://gist.github.com/maxim/6e15aa45ba010ab030c4 | |
TOKEN=$1 | |
VERSION=$2 # tag name or the word "latest" |
#!/bin/sh | |
############################################################ | |
# # | |
# This is a bootstrap script for setting up wcl monitoring # | |
# Author: wcl # | |
# Website: https://wiredcraft.com/ # | |
# # | |
############################################################ | |
set -e |
function gcme(){ | |
message=$1 | |
message_with_emoji=$message | |
if [[ $message == *"add"* ]] | |
then | |
message_with_emoji="$1 :beer:" | |
elif [[ $message == *"remove"* ]] | |
then | |
message_with_emoji="$1 :mask:" | |
elif [[ $message == *"fix"* ]] |
###vpn | |
``` | |
alias vpnon="scutil --nc start 'Foo'" | |
alias vpnoff="scutil --nc stop 'Foo'" | |
``` |
<?php | |
// Perform the CURL query | |
$ch = curl_init($url); | |
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); | |
curl_setopt($ch, CURLOPT_TIMEOUT, 10); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |