Skip to content

Instantly share code, notes, and snippets.

View BrainStone's full-sized avatar
🏳️‍🌈
#lgbt

Yannick Schinko BrainStone

🏳️‍🌈
#lgbt
View GitHub Profile
@BrainStone
BrainStone / scriptreplay_fix.sh
Created October 11, 2022 15:12
A simple script that fixes messed up terminal when sending SIGINT to scriptreplay
function scriptreplay () {
# Start a subshell to remove the trap in every case and to prevent the exit command from ending the parent shell
(
function _restore () {
# Reset terminal without losing scrollback
reset -I
# Exit subshell
exit
}
out/
.idea/
*.iml
alias certbot_cert='certbot certonly --webroot --rsa-key-size 4096 -w /var/www/html'
# Einige Optionen nach Bettercrypto
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
add_header Strict-Transport-Security max-age=15768000;
ssl_session_timeout 30m;
#ssl_dhparam /etc/ssl/nginx/dhparams.pem;
server {
listen 149.202.86.117:80;
listen [2001:41d0:1004:75::]:80;
server_name <subdomain>.project-creative.de *.<subdomain>.project-creative.de;
root /var/www/html;
location /.well-known {
# Just to prevent the redirect
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP tcp -- !149.20.86.177 0.0.0.0/0 tcp dpts:20000:20199
f2b-sshd-month tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 22
f2b-sshd-week tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 22
f2b-sshd tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 22
DROP tcp -- !149.20.86.177 0.0.0.0/0 tcp dpts:20000:20199
ufw-before-logging-input all -- 0.0.0.0/0 0.0.0.0/0
ufw-before-input all -- 0.0.0.0/0 0.0.0.0/0
ufw-after-input all -- 0.0.0.0/0 0.0.0.0/0
---- Minecraft Crash Report ----
WARNING: coremods are present:
OpenEyePlugin (OpenEye-1.12.1-0.8.jar)
SpongeCoremod (spongeforge-1.12.2-2655-7.1.0-BETA-3025.jar)
Contact their authors BEFORE contacting forge
// I'm sorry, Dave.
Time: 4/20/18 8:50 PM
@BrainStone
BrainStone / error.txt
Created July 18, 2017 18:38
Error that appears when running `./gradlew cleanCache clean setupDecompWorkspace eclipse --refresh-dependencies`
This file has been truncated, but you can view the full file.
./gradlew : Patching failed: minecraft\net\minecraft\command\EntitySelector.java
In Zeile:1 Zeichen:1
+ ./gradlew cleanCache clean setupDecompWorkspace eclipse --refresh-dep ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Patching failed...tySelector.java:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Hunk 1 failed! Cannot find hunk target
@BrainStone
BrainStone / Makefile
Last active April 5, 2017 14:37
Super generic Makefile for C++
#### PROJECT SETTINGS ####
# Must be either executable, dynamic_library or static_library
# Defaults to executable if a wrong value is used!
BIN_TYPE = executable
# The name of the executable to be created
# The extension gets appended automatically based on the type
BIN_NAME := prog
# The name of the documentation file
DOC_NAME := PROG-doc
# Compiler used
#!/bin/bash
# Force bash
if [ -z "$BASH" ] || [ ! "_$BASH" = "_/bin/bash" ];then bash $0 "$@";exit;fi
GET_CURRENT_ROW()
{
exec < /dev/tty
oldstty=$(stty -g)
stty raw -echo min 0