Skip to content

Instantly share code, notes, and snippets.

@sgezel
sgezel / CD-key Validator
Created April 29, 2015 10:12
CD-key generator & validator based on username
__author__ = 'sage'
class Security:
def checkkey(self, username, cdkey):
total = 0
for letter in username.lower():
total += ord(letter)*1.03
gemiddeldeUsername = round(total/username.__len__(), 0)
@sgezel
sgezel / gist:c1f590bc4032553b21fe11485dba3bc1
Created May 8, 2019 07:09
powershell bulk replace filename
Dir | Rename-Item -NewName {$_.name -replace "tower","building"}
@sgezel
sgezel / Jellyfin.css
Last active September 10, 2020 10:22
/* Theme park css , moded */
@import url(https://gilbn.github.io/theme.park/CSS/themes/jellyfin/jellyfin-base.css);
:root {
--main-bg-color: radial-gradient(circle, #3a3a3a, #000000) center center/cover no-repeat fixed;
--modal-bg-color: radial-gradient(circle , #3a3a3a, #000000) center center/cover no-repeat fixed;
--button-color: #E50914;
--button-color-hover: #CF1A2B;
--accent-color: #E50914;
--accent-color-hover: #CF1A2B;
}