This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import multiprocessing | |
import random | |
import time | |
class Logger: | |
def __init__(self, num_lines, last_output_per_process, terminal_lock): | |
self.num_lines = num_lines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')" | |
# syntax = docker/dockerfile:1.4.0 | |
FROM node:20 | |
WORKDIR /root | |
RUN npm install sqlite3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
__http_request_example(){ | |
curl \ | |
--silent \ | |
--location http://ip.jsontest.com \ | |
--write-out "\n%{http_code}" | |
} | |
__response_formatter(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLEANUP_MODULES_ON_EXIT_REGEX = re.compile(r"(?i)CleanupModulesOnExit\s*=\s*(yes|true)") | |
def _is_modules_cleanup_enabled(): | |
"""Verify firewalld modules cleanup config is enabled. | |
:returns: Whether or not the CleanupModulesOnExit is set to true in | |
firewalld config. | |
:rtype: bool | |
""" | |
# Return false if the config file does not exist. Either it means that |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<addon id="service.autoexec" name="Autoexec Service" version="1.0.0" provider-name="evinjaff"> | |
<requires> | |
<import addon="xbmc.python" version="3.0.0"/> | |
</requires> | |
<extension point="xbmc.service" library="autoexec.py"> | |
</extension> | |
<extension point="xbmc.addon.metadata"> | |
<summary lang="en_GB">Automatically run python code when Kodi starts.</summary> | |
<description lang="en_GB">The Autoexec Service will automatically be run on Kodi startup.</description> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Display] | |
fDefault1stPersonFOV=90 | |
fDefaultFOV=90 | |
fDefaultWorldFOV=90 | |
fFPWorldFOV=90 | |
fTPWorldFOV=90 | |
;bEnableRaytracing=1 | |
;bUseSkyLighting=1 | |
;set to 0 to disable | |
fMaxAnisotropy=2 |
Note
- If a 120 FPS version of the mod is available, it is used.
- All mods are installed manually. No modloader is used.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env luajit | |
-- THIS IS BEING MAINTAINED AT https://github.com/TangentFoxy/.lua-files | |
-- GO THERE INSTEAD OF DOWNLOADING THIS FILE DIRECTLY. | |
-- Primarily written by ChatGPT using GPT-3.5, with corrections and modifications by me. | |
-- Do whatever the hell you want with it. | |
local lfs = require "lfs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
from math import floor | |
class SnowflakeGenerator: | |
def __init__(self, mid=None, time_start=1288834974657): | |
self.time_start = time_start | |
self.mid = mid if mid else os.getpid() |
NewerOlder