Skip to content

Instantly share code, notes, and snippets.

View CyberFlameGO's full-sized avatar
💠
Hey, I’m Cyber/Aaron.

CyberFlame CyberFlameGO

💠
Hey, I’m Cyber/Aaron.
View GitHub Profile
@CyberFlameGO
CyberFlameGO / Ensemble.plist
Created August 30, 2021 10:04 — forked from zhuowei/Ensemble.plist
Put this file as /Library/Preferences/FeatureFlags/Domain/Ensemble.plist and reboot to (hopefully) turn on Universal Control on macOS 12
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- not sure which one it is, so set both -->
<key>Ensemble</key>
<dict>
<key>Enabled</key>
<true/>
</dict>
@CyberFlameGO
CyberFlameGO / Ensemble.plist
Created August 30, 2021 10:04 — forked from zhuowei/Ensemble.plist
Put this file as /Library/Preferences/FeatureFlags/Domain/Ensemble.plist and reboot to (hopefully) turn on Universal Control on macOS 12
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- not sure which one it is, so set both -->
<key>Ensemble</key>
<dict>
<key>Enabled</key>
<true/>
</dict>
### 1: Drop invalid packets ###
/sbin/iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP
### 2: Drop TCP packets that are new and are not SYN ###
/sbin/iptables -t mangle -A PREROUTING -p tcp ! --syn -m conntrack --ctstate NEW -j DROP
### 3: Drop SYN packets with suspicious MSS value ###
/sbin/iptables -t mangle -A PREROUTING -p tcp -m conntrack --ctstate NEW -m tcpmss ! --mss 536:65535 -j DROP
### 4: Block packets with bogus TCP flags ###
@CyberFlameGO
CyberFlameGO / proxy_basic_iptable_rules.sh
Created July 5, 2021 00:17
Recommended BASIC IPTables firewall rules for Bungeecord networks
### Recommended BASIC IPTables firewall rules for Bungeecord networks ###
# Anything containing 'OPTIONAL' may cause network issues on some server setups. Use at your own risk (Can obviously be removed #
### 1: Drop invalid packets ###
/sbin/iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP
### 2: Drop TCP packets that are new and are not SYN ###
/sbin/iptables -t mangle -A PREROUTING -p tcp ! --syn -m conntrack --ctstate NEW -j DROP
### 4: Block packets with bogus TCP flags ###
@CyberFlameGO
CyberFlameGO / coffee.py
Last active March 21, 2021 21:47
A school task
#!/usr/bin/env python3
# From https://github.com/CyberFlameGO/schoolPythonProject/blob/master/coffee.py
# This dictionary stores the coffees available and their prices
coffee_kv_store = {"espresso": 2.50, "mocha": 4, "cappuccino": 3, "latte": 3.50, "flat white": 2.50, "long black": 2.50}
# This list stores the coffees ordered
coffees_ordered = [] # a key-value pair would be ideal but this is easiest imo tbh
# 'while' loop variables
ordering = True
https://when.lol
@CyberFlameGO
CyberFlameGO / cyberflame.md
Created April 1, 2020 07:49
My first gist

Heya! This is my first gist. I'll probably actually make good use of these some time in the future but yeah here's the first.