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
aws ec2 start-instances --instance-ids $((aws ec2 describe-instances --filters "Name=tag:name,Values=test" --query 'Reservations[].Instances[].InstanceId' --output json | ConvertFrom-Json)) | |
aws ec2 stop-instances --instance-ids $((aws ec2 describe-instances --filters "Name=tag:name,Values=test" --query 'Reservations[].Instances[].InstanceId' --output json | ConvertFrom-Json)) |
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
# Add your instance name in Values | |
$ip = aws ec2 describe-instances --filters "Name=tag-key,Values=windows_instance" --query 'Reservations[*].Instances[*].PublicIpAddress' --output text | |
mstsc /v:$ip |
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
import { | |
disable as darkreaderDisable, | |
enable as darkreaderEnable, | |
setFetchMethod as setFetch, | |
} from '@umijs/ssr-darkreader'; | |
import { ConfigProvider } from 'antd'; | |
const themeConfig = { | |
daybreak: '#1890ff', | |
dust: '#F5222D', |
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
import os | |
import sys | |
import json | |
import requests | |
from base64 import b64encode | |
from bs4 import BeautifulSoup | |
from urllib.parse import urlparse | |
IMGUR_CLIENT_ID = "" |
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
FROM ubuntu:20.04 as base | |
USER root | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN /usr/bin/apt-get update && /usr/bin/apt-get -y install meson \ | |
ninja-build \ | |
valac \ | |
libgtk-3-dev \ |
OlderNewer