Skip to content

Instantly share code, notes, and snippets.

View d4rkd0s's full-sized avatar
🌐
d4rkd0s.com

Logan Schmidt d4rkd0s

🌐
d4rkd0s.com
View GitHub Profile
@d4rkd0s
d4rkd0s / bread_us_vs_eu.txt
Created March 20, 2024 16:16
Bread is toxic only in the US...
The list of additives used in bread in the US that are banned in the EU is comprehensive, highlighting differences in food safety and health regulations between the regions. Some notable additives include:
- Potassium Bromate: Used as a flour improver, it strengthens dough and allows it to rise higher. It is banned in the EU, Canada, and several other countries due to cancer risk concerns​​.
- Azodicarbonamide (ADA): A whitening agent and dough conditioner. Its breakdown product, semicarbazide, has shown to increase tumor incidence in mice, leading to its ban in the EU​​.
- Brominated Vegetable Oil (BVO): Used in some sodas and potentially in bread for emulsification. It is banned in the EU due to health concerns stemming from its bromine content​​.
- Butylated Hydroxyanisole (BHA) and Butylated Hydroxytoluene (BHT): These are synthetic antioxidants used to prevent rancidity. They are possible carcinogens and heavily regulated or banned in the EU​​​​.
@d4rkd0s
d4rkd0s / user-select-none-globally.css
Created June 9, 2022 03:32
user select none globally
* {
/* Keyword value */
user-select: none;
/* Mozilla-specific value */
-moz-user-select: none;
/* WebKit-specific value */
-webkit-user-select: none;
/* Microsoft-specific value */
-ms-user-select: none;
}
@d4rkd0s
d4rkd0s / csgo_console_howto.txt
Last active October 8, 2022 04:56
Accessing the CS:GO Console (csgo)
How to open the developer console in CS:GO
Here’s a simple step by step guide to help you open the developer console through the options menu in-game.
1. Once you’ve launched CS:GO, you’ll be brought to a main menu screen.
2. Click the settings cog at the bottom left of the screen and then head on over to the “Game Settings” tab.
3. Scan through the list until you see the “Enable Developer Console” option and set it to “Yes”.
4. Now that you’ve done this, make sure you click “Apply” at the bottom of the screen before moving on.
5. Now select “Keyboard and Mouse” settings.
6. Search for the “Toggle Console” option at the bottom of the page, click on it and bind it to the key you’d feel most comfortable with. Try and avoid clashing it with another if possible, as this’ll make life much easier!
@d4rkd0s
d4rkd0s / grep_find_string_in_files.sh
Created September 28, 2021 17:55
Find a string in your files!
grep -rnw '/path/to/search' -e 'text'
@d4rkd0s
d4rkd0s / delete_branches_older_than.sh
Last active August 31, 2021 18:43 — forked from njames/delete_branches_older_than.sh
Script to delete branches older than 6 months old, ignore local vs remote errors.
#!/bin/sh
ECHO='echo '
for branch in $(git branch -a | sed 's/^\s*//' | sed 's/^remotes\///' | grep -v 'master$\|release$'); do
if ! ( [[ -f "$branch" ]] || [[ -d "$branch" ]] ) && [[ "$(git log $branch --since "6 months ago" | wc -l)" -eq 0 ]]; then
if [[ "$DRY_RUN" = "false" ]]; then
ECHO=""
fi
local_branch_name=$(echo "$branch" | sed 's/remotes\/origin\///')
$ECHO git branch -d "${local_branch_name}"
@d4rkd0s
d4rkd0s / pull_all_branches.txt
Created August 31, 2021 02:23
Pull all branches from a git repo's remote origin
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@d4rkd0s
d4rkd0s / 3Box_link_github
Created July 6, 2021 23:39
3Box_link_github
@d4rkd0s
d4rkd0s / iiwarn.txt
Created March 25, 2019 21:05
Immutable Infrastructure Warning
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Warning, you are on Immutable Infrastructure!
IF YOU MAKE ANY CHANGES TO THIS SERVER
THEY WILL BE OVERWRITTEN BY A PROCESS!
user@domain.tld
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@d4rkd0s
d4rkd0s / csgo.md
Last active April 27, 2019 04:11
CSGO

Gamemodes

Mode            game_type game_mode
Classic Casual 	0 	0
Classic Compt 	0 	1
Arms Race  	1 	0
Demolition  	1 	1
Deathmatch 	1 	2
Wingman         0       2
DangerZoneFFA 6 0
@d4rkd0s
d4rkd0s / mac_os_mysql_reset_pw.md
Created October 18, 2018 16:35
Reset MySQL Password on Mac OS

Stop MySQL service

  • You can do that using the preference pane if you have that installed "Preferences" > "MySQL" (at the bottom)
  • You can stop it using Terminal sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop

Skipping Access Tables

  • If you have installed MySQL5, fire up Terminal window and execute /usr/local/mysql/bin/mysqld_safe --skip-grant-tables
  • For older versions of MySQL, execute the following command /usr/local/mysql/bin/safe_mysqld --skip-grant-tables