Skip to content

Instantly share code, notes, and snippets.

View dennorske's full-sized avatar
🐍

denNorske dennorske

🐍
View GitHub Profile
@Cheaterman
Cheaterman / cmdparser.py
Created April 3, 2022 13:16
cmdparser.py
import inspect
import types
import samp
t_unauthorized = 'You are not allowed to use this command'
t_unauthd_color = 0xFF1111FF
_cmd_list = dict()
current_cmd = None
@rsese
rsese / make-test-file.rb
Last active May 6, 2017 20:00
Create a test file of size NUM_LINES * LINE_LENGTH 📰
fout = File.open("test.dat", "w+")
NUM_LINES = 50000
LINE_LENGTH = 130
line = ("a" * LINE_LENGTH) + "\n"
(1..NUM_LINES).each do
fout.write(line)
end
@iamphilrae
iamphilrae / phpMyAdmin Export Filename Template, Including Date and Time
Last active April 3, 2024 20:30
phpMyAdmin Export Filename Template, Including Date and Time
@DATABASE@__%Y-%m-%d_%H-%M-%S
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #