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
name: Push to github container register | |
on: | |
release: | |
types: [created] | |
jobs: | |
push-docker: | |
runs-on: ubuntu-latest | |
permissions: |
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
FROM rust:slim AS builder | |
WORKDIR /src/builder | |
ARG TARGETARCH | |
RUN if [ $TARGETARCH = "amd64" ]; then \ | |
echo "x86_64" > /tmp/arch; \ | |
elif [ $TARGETARCH = "arm64" ]; then \ | |
echo "aarch64" > /tmp/arch; \ | |
else \ |
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 | |
cat /etc/fstab | sed /swap/d | tee /etc/fstab | |
swapoff -a | |
setenforce 0 | |
sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config | |
cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf | |
overlay | |
br_netfilter |
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
apiVersion: cdi.kubevirt.io/v1beta1 | |
kind: DataVolume | |
metadata: | |
name: fdc | |
spec: | |
source: | |
registry: | |
url: "docker://quay.io/containerdisks/ubuntu:22.04" | |
pvc: | |
accessModes: |
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
apiVersion: kubevirt.io/v1 | |
kind: VirtualMachine | |
metadata: | |
labels: | |
kubevirt.io/os: linux | |
name: fdc | |
spec: | |
running: true | |
template: | |
metadata: |
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 -eu | |
# Install Containerd | |
cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf | |
overlay | |
br_netfilter | |
EOF | |
sudo modprobe overlay | |
sudo modprobe br_netfilter |
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
Architecture: x86_64 | |
CPU op-mode(s): 32-bit, 64-bit | |
Address sizes: 36 bits physical, 48 bits virtual | |
Byte Order: Little Endian | |
CPU(s): 4 | |
On-line CPU(s) list: 0-3 | |
Vendor ID: GenuineIntel | |
Model name: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz | |
CPU family: 6 | |
Model: 76 |
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
import requests | |
from bs4 import BeautifulSoup | |
r = requests.get("https://store.line.me/stickershop/product/13584756/ja") | |
soup = BeautifulSoup(r.content, "html.parser") | |
urls = [] | |
for span in soup.find_all("span", class_="mdCMN09Image"): | |
if not span.get("style")[21:-2] in urls: |
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
import subprocess | |
from sanic import Sanic, response | |
import random | |
import string | |
import sqlite3 | |
from threading import Thread | |
import time | |
import os | |
import shutil |
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 | |
echo "Rt installer" | |
git clone https://github.com/RextTeam/rt-bot.git | |
cd ./rt-bot | |
bash build.sh | |
cd .. | |
git clone https://github.com/RextTeam/rt-backend.git | |
cd rt-backend | |
bash build.sh | |
cp ../rt-bot/secret.key secret.key |