Skip to content

Instantly share code, notes, and snippets.

View mmahut's full-sized avatar
💭
return nil;

Marek Mahut mmahut

💭
return nil;
View GitHub Profile
# sysctl -a
abi.vsyscall32 = 1
debug.exception-trace = 1
debug.kprobes-optimization = 1
dev.cdrom.autoclose = 1
dev.cdrom.autoeject = 0
dev.cdrom.check_media = 0
dev.cdrom.debug = 0
dev.cdrom.info = CD-ROM information, Id: cdrom.c 3.20 2003/12/17
dev.cdrom.info =
{
"alert": {
"alertRuleTags": {},
"conditions": [
{
"evaluator": {
"params": [
1
],
"type": "lt"
@mmahut
mmahut / jormungandr_alive.py
Created October 3, 2019 10:03
Keep my jourmungandr alive
#!/usr/bin/env python
import requests
import json
import datetime
import psutil
REST_API='http://127.0.0.1:8443/api/v0/node/stats'
def kill_jormungandr():
for proc in psutil.process_iter():
@mmahut
mmahut / configuration.nix
Created August 28, 2019 11:55
The Cardano Shelley testnet on Raspberry PI
{ config, pkgs, lib, ... }:
{
# NixOS wants to enable GRUB by default
boot.loader.grub.enable = false;
# if you have a Raspberry Pi 2 or 3, pick this:
boot.kernelPackages = pkgs.linuxPackages;
# A bunch of boot parameters needed for optimal runtime on RPi 3b+
boot.loader.raspberryPi.enable = true;
@mmahut
mmahut / jormungandr-with-nixos-on-rpi.md
Created August 21, 2019 18:46
Running jormungandr on Raspberry PI using NixOS

Running jormungandr on Raspberry PI using NixOS

@mmahut
mmahut / gist:b326c65b4f64b8b92a73c80ecb9bc142
Created September 15, 2018 07:27
MTF removed facebook posts
100%_Brettanomyces_Fermentation https://www.facebook.com/groups/MilkTheFunk/permalink/1204614559566756/?comment_id=1204678676227011&comment_tracking=%7B%22tn%22%3A%22R%22%7D
100%_Lactobacillus_Fermentation https://www.facebook.com/groups/MilkTheFunk/permalink/1160607363967476/?comment_id=1160651337296412&comment_tracking=%7B%22tn%22%3A%22R%22%7D
Barrel https://www.facebook.com/groups/MilkTheFunk/permalink/1154676014560611/
Barrel https://www.facebook.com/groups/MilkTheFunk/permalink/1171161846245361/
Barrel https://www.facebook.com/groups/MilkTheFunk/permalink/1456770341017842/
Barrel https://www.facebook.com/groups/MilkTheFunk/permalink/1530364933658382/
Barrel https://www.facebook.com/groups/MilkTheFunk/permalink/1548619735166235/
Blending https://www.facebook.com/groups/MilkTheFunk/permalink/1568455919849283/?comment_id=1568622383165970&comment_tracking=%7B%22tn%22%3A%22R0%22%7D
File:Mold_ex14.jpg https://www.facebook.com/groups/MilkTheFunk/permalink/1325350184159859/
File:Mold_ex16.jpg https:/
Saccharomyces https://www.facebook.com/groups/MilkTheFunk/1530874020274140/
MTF_Member_Recipes https://www.facebook.com/groups/MilkTheFunk/2105781242783412/
Grain https://www.facebook.com/groups/MilkTheFunk/1722624404432433/
Grain https://www.facebook.com/groups/MilkTheFunk/2163890653639137/
Corking https://www.facebook.com/groups/MilkTheFunk/1982202411807963/
Barrel https://www.facebook.com/groups/MilkTheFunk/1195484540479758/?match=Y2hhbGsgYW5kIGdhcmxpYyxnYXJsaWMsY2hhbGs%3D
Barrel https://www.facebook.com/groups/MilkTheFunk/2140647185963484/
Commercial_Sour_Beer_Dregs_Inoculation https://www.facebook.com/groups/MilkTheFunk/1407620505932826/
Alternative_Bacteria_Sources https://www.facebook.com/groups/MilkTheFunk/1448945931800283/?comment_tracking=%7B%22tn%22%3A%22R%22%7D
User:DanABA:Wild yeast study: https://www.facebook.com/groups/MilkTheFunk/2017380088290195/
Saccharomyces https://www.facebook.com/groups/MilkTheFunk/permalink/1230684866959725/?comment_tracking=%7B%22tn%22%3A%22R%22%7D
Corking https://www.facebook.com/groups/MilkTheFunk/permalink/1765959683432238/?comment_tracking=%7B%22tn%22%3A%22R7%22%7D
Soured_Fruit_Beer https://www.facebook.com/groups/MilkTheFunk/permalink/1643348419026699/?comment_tracking=%7B%22tn%22%3A%22R1%22%7D
Soured_Fruit_Beer https://www.facebook.com/groups/MilkTheFunk/permalink/1466272273400982/?comment_tracking=%7B%22tn%22%3A%22R%22%7D
Barrel https://www.facebook.com/groups/MilkTheFunk/permalink/1805757702785769/?comment_tracking=%7B%22tn%22%3A%22R2%22%7D
Packaging https://www.facebook.com/groups/MilkTheFunk/permalink/2210596275635241/?comment_tracking=%7B%22tn%22%3A%22R1%22%7D
Hops https://www.facebook.com/groups/MilkTheFunk/?comment_tracking=%7B%22tn%22%3A%22R%22%7D
Alternative_Bacteria_Sources https://www.facebook.com/groups/MilkTheFunk/1448945931800283/?comment_tracking=%7B%22tn%22%3A%22R%22%7D
Lactic_Acid https://www.facebook.com
@mmahut
mmahut / gist:15334456875e47154ab5
Created January 27, 2016 11:57
How to run our own apache configuration from a python cartridge
### First of all, we create app.py that will execute our own custom script
[python-mmahut.rhcloud.com repo]\> cat app.py
import subprocess
process = subprocess.Popen("/tmp/start_apache.sh", stdout=subprocess.PIPE, shell=True)
output = process.communicate()[0]
[python-mmahut.rhcloud.com repo]\>
### start_apache is just an example, better location would suit it more
### please note /tmp/my_own_customer_httpd.conf