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
import glob | |
import functools | |
import json | |
import pathlib | |
import uuid | |
import os | |
import click | |
import requests |
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
import datetime | |
import json | |
import os | |
import random | |
import time | |
import click | |
from dotenv import load_dotenv | |
from pytwitter import Api |
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/local/bin/bash | |
users_yaml='./users.yml' | |
uuid='' | |
while read -r line | |
do | |
if [[ "$line" == "users:" ]] || [[ "$line" == "groups:" ]] || [[ "$line" == permissions* ]]; then | |
continue |
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
lines = [] | |
stations = [] | |
declarations_started = False | |
netherroutes_started = False | |
with open("./Station.java") as f: | |
lines = f.readlines() | |
for line in lines: |
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
[[source]] | |
name = "pypi" | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
[dev-packages] | |
[packages] | |
requests = "*" | |
beautifulsoup4 = "*" |
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
[[source]] | |
name = "pypi" | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
[dev-packages] | |
[packages] | |
requests = "*" | |
beautifulsoup4 = "*" |
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
diff --git a/include/common.php b/include/common.php | |
index 1661f58..3af340a 100644 | |
--- a/include/common.php | |
+++ b/include/common.php | |
@@ -45,6 +45,16 @@ if (!defined('PUN')) | |
exit; | |
} | |
+// If the password config is missing, here are some default values | |
+if (!isset($password_hash_options) || empty($password_hash_options)) |
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
diff --git a/search.php b/search.php | |
index 28c4661..0822fd2 100755 | |
--- a/search.php | |
+++ b/search.php | |
@@ -29,6 +29,7 @@ if (isset($_GET['action']) || isset($_GET['search_id'])) | |
{ | |
$action = (isset($_GET['action'])) ? $_GET['action'] : null; | |
$forum = (isset($_GET['forum'])) ? intval($_GET['forum']) : -1; | |
+ $topic = (isset($_GET['topic'])) ? intval($_GET['topic']) : -1; | |
$sort_dir = (isset($_GET['sort_dir']) && $_GET['sort_dir'] == 'DESC') ? 'DESC' : 'ASC'; |
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
{"#chan": ["CheshireScrat", "Ichi", "Voren", "Anna", "GLaDOS", "Guy", "Swaps", "@Amaury", "Fanch"]} |
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
{ | |
"channels": [ | |
{ | |
"name": "Zcraft", | |
"path": [ | |
"Zcraft" | |
], | |
"position": 0, | |
"users": [ | |
{ |
NewerOlder