Skip to content

Instantly share code, notes, and snippets.

View toriato's full-sized avatar

toriato

View GitHub Profile
#!/bin/bash
shopt -s expand_aliases
UPLOAD_ENTRYPOINT="https://vmm.pw"
UPLOAD_TOKEN=""
UPLOAD_DISCORD_WEBHOOK=""
fpath="$1"
fname="$(basename $fpath)"
fdir="$(dirname $fpath)"
@toriato
toriato / autoexec.cfg
Last active July 22, 2022 16:16
Garry's Mod CFGs
cl_showpos 1
cl_showfps 1
net_graph 0
net_graphheight 50
net_graphpos 1
// performance
fps_max 63
menu_cleanupgmas
gmod_mcore_test 1
#!/bin/bash
cd "${0%/*}"
GAMEMODE="sandbox"
ARGS=(
"-nomaster"
"+sv_setsteamaccount <CHANGEMESENPAI>"
"+host_workshop_collection 2835137286"
"+maxplayers 32"
"+map gm_cluster_01"
#!/bin/bash
entrypoint=$ENTRYPOINT
project=${PROJECT:-paper}
version=$VERSION
build=$BUILD
sumbin=${SUMBIN:-sha256sum}
entrypoint_paper="https://papermc.io/api/v2"
entrypoint_purpur="https://api.purpurmc.org/v2"
// ==UserScript==
// @name dcinside.list.preview.user.js
// @namespace https://github.com/toriato/userscripts/dcinside.list.preview.user.js
// @description 디시인사이드 갤러리 목록에서 제목 위에 커서를 올려 게시글을 미리 열람합니다
// @author Sangha Lee <[email protected]>
// @icon https://nstatic.dcinside.com/dc/m/img/dcinside_icon.png
// @require https://github.com/toriato/userscripts/raw/master/library/fetch.js
// @match https://gall.dcinside.com/board/lists*
// @match https://gall.dcinside.com/mgallery/board/lists*
// @match https://gall.dcinside.com/mini/board/lists*
# Logging
SyslogFacility AUTH
LogLevel VERBOSE
# Authentication
LoginGraceTime 2m
PermitRootLogin no
StrictModes yes
MaxAuthTries 1
MaxSessions 4
@toriato
toriato / launch.ps1
Last active September 22, 2022 14:57
Various powershell script for Arma 3 dedicated server
param (
[Parameter(HelpMessage = "서버 경로")]
[String]
$PathToServer = "$(Get-Location)\serverfiles",
[Parameter(HelpMessage = "서버 실행 파일 경로")]
[String]
$PathToServerExecutable = "$(Get-Location)\serverfiles\arma3server_x64_perf.exe",
[Parameter(HelpMessage = "프로필 경로")]
@toriato
toriato / index.php
Last active February 21, 2023 08:56
simple file uploader and url shortener for sharex
<?php
define('MYSQL_DSN', 'mysql:host=mariadb;dbname=aeon');
define('MYSQL_USER', 'MYUSER');
define('MYSQL_PASS', 'MYP4SS');
define('MYSQL_OPTIONS', [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC
]);
@toriato
toriato / insomnia-collection.yaml
Last active June 20, 2024 06:40
Insomnia 디시인사이드 공앱 (com.dcinside.app) API 컬렉션
_type: export
__export_format: 4
__export_date: 2022-03-03T09:17:49.623Z
__export_source: insomnia.desktop.app:v2021.7.2
resources:
- _id: req_90b1c3ff75f94475b0366ad0bd3215f1
parentId: fld_5c1bb9b53bed4a078e8a8bb4f5e5bb32
modified: 1646298701854
created: 1646293770269
url: https://firebaseinstallations.googleapis.com/v1/projects/{{
@toriato
toriato / cloudflare-ddns.sh
Last active September 14, 2021 02:09
Cloudflare DDNS bash script
#!/bin/bash
# cloudflare-ddns.sh
# requires bash, jq and curl to run!
# TODO: error handling :)
# token can be generate from https://dash.cloudflare.com/profile/api-tokens
# requires Zone.DNS permission to update DNS record
# more info on https://api.cloudflare.com/#getting-started-requests
TOKEN="__________"