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
#!/usr/bin/env bash | |
reload_nginx() { | |
echo "reload nginx" | |
service nginx reload | |
} | |
create_autoconfig() { | |
local DOMAIN="${1}" |
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
// ==UserScript== | |
// @name New script | |
// @namespace Violentmonkey Scripts | |
// @match *://*/* | |
// @grant unsafeWindow | |
// @version 1.0 | |
// @author - | |
// @description 12/2/2022, 12:42:04 PM | |
// ==/UserScript== |
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
# https://www.openssl.org/source/ | |
perl ./Configure --prefix=/usr/local --openssldir=/usr/local/openssl no-ssl3 no-ssl3-method no-zlib no-comp | |
make | |
make test | |
# https://serverfault.com/questions/391834/where-are-os-x-man-pages-stored | |
sudo make install MANDIR=/usr/local/share/man MANSUFFIX=ssl | |
make clean |
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
curl -LO https://github.com/sbingner/llvm-project/releases/download/v10.0.0-1/linux-ios-arm64e-clang-toolchain.tar.lzma | |
TMP=$(mktemp -d) | |
tar --lzma -xvf linux-ios-arm64e-clang-toolchain.tar.lzma -C $TMP | |
pushd $TMP/ios-arm64e-clang-toolchain/bin | |
find * ! -name clang-10 -and ! -name ldid -and ! -name ld64 -exec mv {} arm64-apple-darwin14-{} \; | |
find * -xtype l -exec sh -c "readlink {} | xargs -I{LINK} ln -f -s arm64-apple-darwin14-{LINK} {}" \; | |
popd | |
mkdir -p $THEOS/toolchain/linux/iphone | |
mv $TMP/ios-arm64e-clang-toolchain/* $THEOS/toolchain/linux/iphone/ | |
rm -rf $TMP linux-ios-arm64e-clang-toolchain.tar.lzma |
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
(() => { | |
try { | |
const el = document.querySelector('p[id][style="display: none;"]') | |
const inline = (' ' + el.innerHTML).slice(1) | |
const content = decodeURIComponent(escape((window.atob(inline)))) | |
console.log(content) | |
navigator.clipboard.writeText(content) | |
} catch (error) { | |
console.error(error) |
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
/** | |
* @author 챙챙 | |
* @writer 논란 | |
* @review 챙챙 평가원 | |
* @궁예 챙챙 | |
* @수강생 논란 | |
* @풀이 카니 | |
* | |
* @문제 화자는 언제 신체 검사를 했을까? | |
* |
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
@echo off | |
goto init | |
:init | |
cls | |
echo NetClass v8 Client manager | |
echo. |
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
#!/bin/zsh | |
domain= | |
function test_dns() { | |
echo "" | |
echo "Testing on $1" | |
result=$(dig @$1 $domain) |
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
#include <stdio.h> | |
int main() { | |
char gender; | |
float tall; | |
float weight; | |
printf("성별을 입력하세요: [f/m] "); | |
scanf("%c", &gender); |
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
#!/usr/bin/env sh | |
echo -e "[$(date)] - <alpinelinux> sync is about to start" >> /_seia/projects/mirror/log | |
# make sure we never run 2 rsync at the same time | |
lockfile="/tmp/alpine-mirror.lock" | |
if [ -z "$flock" ] ; then | |
exec env flock=1 flock -n $lockfile "$0" "$@" | |
echo -e "[$(date)] - <alpinelinux> stopped the sync because there is lockfile" >> /_seia/projects/mirror/log | |
fi |