This file contains hidden or 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 python3 | |
| # Copyright (c) 2026 Max Maton | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # |
This file contains hidden or 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
| // https://play.elevatorsaga.com | |
| class Manager { | |
| constructor(elevators, floors) { | |
| this.elevators = elevators | |
| this.floors = floors | |
| var obj = this | |
| var id = 0 | |
| for(var e of elevators) { |
This file contains hidden or 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 python3 | |
| import pyvo | |
| import requests | |
| import sqlite3 | |
| from datetime import datetime | |
| service_name = "Gaia@AIP" | |
| url = "https://gaia.aip.de/tap" | |
| token = '' |
This file contains hidden or 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
| bool _autoPowerSave = true; | |
| IMyTextSurface _cockpitSurface; | |
| RectangleF _viewport; | |
| List<IMyCargoContainer> _containers = new List<IMyCargoContainer>(); | |
| List<IMyEntity> _storages = new List<IMyEntity>(); | |
| IMyGasGenerator _splitter; | |
| List<IMyBatteryBlock> _batteries = new List<IMyBatteryBlock>(); |
This file contains hidden or 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
| function printf { | |
| declare parameter format. | |
| local sentinel to lex(). | |
| local args to list(). | |
| declare parameter last to sentinel. | |
| local test to last. | |
| until test = sentinel { | |
| args:add(test). | |
| declare parameter last to sentinel. |
This file contains hidden or 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
| #!/bin/bash | |
| (printf "puts "; cat) | tr -d "\n" | ruby |
This file contains hidden or 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 copy | |
| class ParallelPlayer | |
| def __init__(self, prototype, concurrent_games): | |
| self.prototype = prototype | |
| self.instances = [None] * concurrent_games | |
| self.seen_hand = [False] * concurrent_games | |
| def start_game(self, game_id): | |
| self.instances[game_id] = copy.deepcopy(self.prototype) |
This file contains hidden or 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
| while true; do | |
| sleep 5m; | |
| if ceph -s | grep -q 'are blocked'; then | |
| echo 'skip, blocked' | |
| continue | |
| fi | |
| if ceph -s | grep -q 'osd down'; then |
This file contains hidden or 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
| #!/bin/sh | |
| # postinst script for empires-gitlab-runner | |
| # | |
| # see: dh_installdeb(1) | |
| set -e | |
| # summary of how this script can be called: | |
| # * <postinst> `configure' <most-recently-configured-version> | |
| # * <old-postinst> `abort-upgrade' <new version> |
This file contains hidden or 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
| git filter-branch --prune-empty --tree-filter ' | |
| git lfs track "*.bsp" | |
| git lfs track "*.vtf" | |
| git lfs track "*.wav" | |
| git lfs track "*.mp3" | |
| git lfs track "*.mdl" | |
| git lfs track "*.vtx" | |
| git lfs track "*.vvd" | |
| git lfs track "*.phy" | |
| git lfs track "*.bik" |
NewerOlder