sudo apt update
sudo apt install -y strongswan libstrongswan-standard-plugins libstrongswan-extra-plugins libcharon-standard-plugins libcharon-extra-plugins apparmor-utils
sudo cp /usr/share/ca-certificates/mozilla/AddTrust_External_Root.crt /etc/ipsec.d/cacerts
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
diff --git src/utils.py src/utils.py | |
index 36080f2..30832c5 100644 | |
--- src/utils.py | |
+++ src/utils.py | |
@@ -1,23 +1,25 @@ | |
-import scipy.misc, numpy as np, os, sys | |
+import numpy as np, os, sys | |
+import imageio | |
+import skimage.transform | |
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
decl_regex = re.compile(r' *([a-zA-Z0-9_\* \[\]]+ : [0-9]+);') | |
arr_regex = re.compile(r'([a-zA-Z][0-9a-zA-Z]*)\[([0-9]+)\]') | |
type_table = { | |
'int': 'ctypes.c_int', | |
'char': 'ctypes.c_char', | |
'size_t': 'ctypes.c_size_t', | |
'unsigned': 'ctypes.c_uint', | |
'unsigned int*': 'POINTER(ctypes.c_uint)' | |
} | |
classname = 'hipDeviceArch_t' |
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 | |
lodevice=$(losetup -f) | |
dd if=/dev/zero of=xfs.img bs=1G count=8 | |
mkfs.xfs xfs.img | |
sudo losetup $lodevice xfs.img | |
sudo mkdir -p /xfs | |
sudo mount -o pquota $lodevice /xfs |
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
export PREFIX=/opt/backend.ai | |
export PATH=${PREFIX}/bin:$PATH | |
export LANG=C.UTF-8 | |
apk add --no-cache ca-certificates | |
export GPG_KEY=0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D | |
export PYTHON_VERSION=3.6.8 |
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 | |
sudo apt update | |
if ! hash docker 2>/dev/null; then | |
echo 'docker is not installed; installing...' | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ |
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
export PREFIX=/opt/backend.ai | |
export PATH=${PREFIX}/bin:$PATH | |
export LANG=C.UTF-8 | |
apt-get update && apt-get install -y --no-install-recommends \ | |
ca-certificates \ | |
netbase \ | |
&& rm -rf /var/lib/apt/lists/* |
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
Check files below |
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 telebot | |
import time | |
bot = telebot.TeleBot('643354920:AAEtp_QYjozBjyl8_FfHTM9zSusDKE_xCvM') | |
stat = {} | |
id_to_username = {} | |
last_아니 = {} | |
allowed_words = ['아니', '아니씹', '아니씨발', '아니시발'] |
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 json | |
import requests | |
import os | |
'''{ | |
"resource": "Resource path", | |
"path": "Path parameter", | |
"httpMethod": "Incoming request's method name" | |
"headers": {Incoming request headers} | |
"queryStringParameters": {query string parameters } | |
"pathParameters": {path parameters} |