Hroot's default admin account poses a security threat. This code provides a rake task to
- Create Admin Accounts within HROOT
- Delete Admin Accounts within HROOT
- Delete the Default Admin Account within HROOT
| import time | |
| import itertools | |
| class DieRollAnimation: | |
| _CYCLE = itertools.cycle(range(1, 7)) | |
| def __init__(self, roll_duration_s): | |
| self._roll_duration_s = roll_duration_s |
| """ | |
| Python version of | |
| https://github.com/cessor/okra | |
| """ | |
| import os | |
| import sys | |
| import time | |
| from xml.dom import minidom | |
| from pathlib import Path |
| /* | |
| Add the following code to the end of Steam/steamui/css/libraryroot.css | |
| Source https://steamcommunity.com/sharedfiles/filedetails/?id=1906786841 | |
| For this to work, the shortcut needs Target flags -noverifyfiles and -norepairfiles, or the file must be set to read-only. | |
| */ | |
| /*.sharedappdetailsheader_TopCapsule_NZMJ6 { | |
| display:none!important; |
| /* | |
| Add the following code to the end of Steam/steamui/css/libraryroot.css | |
| Source https://steamcommunity.com/sharedfiles/filedetails/?id=1906786841 | |
| For this to work, the shortcut needs Target flags -noverifyfiles and -norepairfiles, or the file must be set to read-only. | |
| */ | |
| /*.sharedappdetailsheader_TopCapsule_NZMJ6 { | |
| display:none!important; |
| class Method { | |
| constructor(methodName, parent) { | |
| return new Proxy(function () {}, { | |
| get (self, name) { | |
| if(name == 'returns') { | |
| return (value) => parent._calls[methodName] = value | |
| } | |
| if(name == 'throws') { |
| class Pseudo { | |
| constructor(value) { | |
| return new Proxy({}, { | |
| get: () => value | |
| }) | |
| } | |
| } | |
| const callable = new Pseudo(10) |
| import hashlib | |
| def hash_ip(self, ip_address): | |
| return hashlib.sha224(ip_address.encode('utf-8')).hexdigest() |
| # Simple Flatten Array | |
| functools.reduce(lambda a,b: a + b.split(','), list_, []) |
| from random import random | |
| def secretNumber(): | |
| return int(random() * 1000) | |
| def guess(): | |
| print '> ', | |
| return input() | |
| def evaluate(number, secret): |