A Pen by Jayashree Srinivasan on CodePen.
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
synapse.saintedlittle.nl { | |
reverse_proxy localhost:8008 | |
@wellknown path /.well-known/matrix/client | |
handle @wellknown { | |
header Content-Type application/json |
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/sh | |
# "CONFIG" ZONE ####################################################### | |
GAME_NAME="Euro Truck Simulator 2" | |
GAME_VERSION="1.27.2.4s" | |
GAME_ICON_NAME="227300.png" | |
# END OF "CONFIG" ZONE ################################################ | |
# Thanks to Vitally_D for the idea of this script | |
################################################# | |
# Detect/set directories | |
[ -z "$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME="$HOME/.config" |
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
while((opt = getopt(argc, argv, ":f:o:t:h")) != -1) { | |
switch(opt) { | |
case 'f': | |
infile = fopen(optarg, "rt"); | |
break; | |
case 'o': | |
outfile = fopen(optarg, "wt"); | |
break; | |
case '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
(async() => { | |
let delay = (ms) => new Promise((res) => setTimeout(res, ms)); | |
await jQuery.post("/saleaction/ajaxopendoor", { | |
"sessionid": g_sessionID, | |
"authwgtoken": jQuery("#application_config").data("userinfo").authwgtoken, | |
"door_index": 0, | |
"clan_accountid": 41316928, | |
}); | |
for (let link of [ | |
"/category/arcade_rhythm/?snr=1_614_615_clorthaxquest_1601", |
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
header('Content-type: text/html; charset=utf-8'); | |
$wall_id="-95098766"; // Положительное число: пользователь. Отрицательное: группа. | |
$count="20"; // Количество записей, которое необходимо получить. Максимальное значение: 100. | |
$api = file_get_contents("http://api.vk.com/method/wall.get?owner_id={$wall_id}&count={$count}"); | |
$wall = json_decode($api,true); | |
foreach ($wall['response'] as $item => $result) { | |
echo $result['text'].'<hr/>'; | |
} |
Загрузите бинарный выпуск GnuPG для текущей версии Windows с [официального сайта] (https://www.gnupg.org/download/index.html) и установите его.
Возьмите последнюю версию gpg из вашего менеджера пакетов, если она еще не установлена;)
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 shutil | |
from datetime import datetime | |
from itertools import repeat | |
from multiprocessing import Pool | |
from os import cpu_count, makedirs | |
from os.path import join, exists | |
import requests | |
import vk_api |
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
[ | |
{ | |
"mode": "collect", | |
"dump_config": { | |
"path": "dump", | |
"download": false, | |
"download_errors": "download_errors.json" | |
}, | |
"login_data": { | |
"token": "", |
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
def dump_manager(config): | |
dump_config = config['dump_config'] | |
if config['mode'] == 'collect': | |
vk = collect(config['login_data']) | |
dump_config.update({'albums': vk.albums, 'docs': vk.docs, 'conversations': vk.conversations, 'users': vk.users, | |
'account': vk.account}) | |
elif config['mode'] == 'dump': | |
dump_config.update({'albums': load_collection(dump_config['albums']), | |
'docs': load_collection(dump_config['docs']), |
NewerOlder