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
[Unit] | |
Description=Minecraft Server | |
Wants=network.target | |
After=network.target | |
[Service] | |
User=minecraft | |
Nice=5 | |
Restart=on-failure | |
SuccessExitStatus=0 143 |
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
/* | |
>> HorlogeSkynet's Arkenfox User.JS override preferences << | |
Version: v0.11.2 | |
Upstream version: 133.0 | |
Installation : Follow <https://github.com/arkenfox/user.js/wiki/3.4-Apply-&-Update-&-Maintain>. | |
Note : This is an OVERRIDE script for <https://github.com/arkenfox/user.js>, DO NOT USE IT ALONE. | |
*/ | |
// Re-enables 'about:home' page for startup landing page and new tabs. | |
/* 0102 */ user_pref("browser.startup.page", 1); |
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 | |
# | |
# @HorlogeSkynet's Gitea automatic updating script for GNU/Linux. | |
# | |
# Version : v3.0.2 | |
# URL : <https://gist.github.com/HorlogeSkynet/d676b9204869842933169dbe35ed8650> | |
# | |
# /!\ A proper Gitea server managed by a systemd service is required /!\ | |
# --> Maintainer one : <https://gist.github.com/HorlogeSkynet/81a3a4ff2ea342dc3a77dc038cbc0e35> |
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 python3 | |
""" | |
A Python script to programmatically shutdown a Buffalo TeraStation NAS. | |
=== | |
Usage documentation : | |
1. Install dependency : `pip3 install requests` |
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 | |
sed -i.bak 's/NotFound/Active/1' /usr/share/perl5/PVE/API2/Subscription.pm | |
systemctl restart pveproxy.service |
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
"""Flask v1.x testing class working with UNITTEST Python module.""" | |
# Run this module with : | |
# `python3 -m unittest test_flask_v1.py` | |
import os | |
import tempfile | |
import unittest | |
# Import your production module using Flask around here. |
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
<?php | |
use Cake\Filesystem\File; | |
use Cake\View\View; | |
/* ... */ | |
// Instanciates a new View class. | |
$view = new View(); |
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 python3 | |
import unittest | |
from subprocess import check_output | |
from unittest.mock import patch | |
class YourClass(object): | |
def __init__(self): |
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 python3 | |
import os | |
import tempfile | |
import unittest | |
from subprocess import PIPE, Popen, check_output | |
from unittest.mock import patch | |