Skip to content

Instantly share code, notes, and snippets.

@muggenhor
muggenhor / gist:23f970c9c2314d09adead2cc533208c6
Created March 28, 2024 20:20
Factorio Rail loading/unloading stations with min/max loading circuit networks
0eNrlfd1uG82V7asEuhxIma7/KmMwN3Mb4FxMztVBINBSSyY+itSQlL8YAz9AHiQvNk9yuinJarF7V6+1JU9COYA/xxK1VLX/q2rtqv8++7x6aO+3y/X+8vNm89vZp/9++cru7NP/G/yz/97yarN+/PJuebterPqv7b/dt2efzpb79u7s/Gy9uOv/td8uluuL3X5zf/b9/Gy5vm7/evbJfD+f/cHu51YXT595+UkL/OTVYnu7ufh9cbtZD37SAT+52y+ufrtYrnftdt9uBz/sv//l/Kxd75f7Zfs47cM/vl2uH+4+d5/8ZIYTXu/uN9v9xed2te+w7ze77se6sXS/tYO6CPaP4fzsW/f/bMl/DN0vuV5u26vHj8R+lEfYlsB2FWw/ge0IbEOO2xPYDYkdcGyfSexIYBcSOxHYicTOBHYksQuB7Uls0xDggQUnPNOznmkI1/SOBSd807O+aQjn9KxzGsI7HetBhnBPx7q+IfzTsf5pCAd1rIMawkMd60SW8FDHur8lPNSxTmSVyTMiydM6HXiCwL0unGMjDzpwbORRF88TpNCky0QYeNYlCwy86JIFBO4aXbLAwI0uWWDgVpcsMHCnA4ecyHldJsJGHnTgEQKPukyEjVyZQ7GRZx04NvKiEws0ct/oEjQGbnQJGgO3upFDMvdON3IM3OtKC0wsQQeOjfzFQxfb5f7LXbtfXl1cbe4+L9eL/WY78TviIPJ24ersarPebzery8/tl8XXZfcj3edesC67b18ffn7Xf+Nmud3tL0fbI1+X2/1D95WXHZLDJy7axdWXfntk1/YwPdZuv+h3hi66cW/u2+3icWRn/9r96OZhf/9Ag39/nML6UUqHQZr+P7fbtl0Pt2CW1/0SMnz/S/cDtv/Etr0ef9/0OziTP+tL96Pfp3RABLIwCMEBUjARyEKpgE9lJl+kLa06uD+ATxnO1XJ79bDcv1iNxmi+tttv+y/L9e3Z4295spm+GO0s+36xPVj2p7N/O5OUP6naIKu2s8bnkff
@muggenhor
muggenhor / jenkins-dump-credentials.groovy
Last active March 23, 2021 18:49 — forked from timja/jenkins-dump-credentials.groovy
Dump jenkins credentials - use in script console
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.plugins.credentials.impl.*
import com.cloudbees.jenkins.plugins.sshcredentials.impl.*
import org.jenkinsci.plugins.plaincredentials.impl.*
final domain = Domain.global()
final store = SystemCredentialsProvider.instance.store
@muggenhor
muggenhor / sudoku.py
Created March 22, 2020 17:19
Python Sudoku Solver
#!/usr/bin/env python
puzzle = []
puzzle_s = ("9.5...1..",
"..18....6",
"..8.35.49",
"..9..4..1",
"78.3.1.65",
@muggenhor
muggenhor / callback.hpp
Created November 9, 2017 13:54
std::function variant adapted for callbacks with support for reference counted receivers
#include <cstddef>
#include <functional>
#include <memory>
#include <type_traits>
#include <utility>
namespace detail
{
template <typename...>
struct void_t_helper
# Make sure mod_ssl, mod_rewrite, mod_headers, mod_proxy,
# mod_proxy_http and mod_proxy_balancer are enabled
<VirtualHost *:80>
ServerName diaspora.example.org
ServerAlias www.diaspora.example.org
RedirectPermanent / https://diaspora.examle.org/
</VirtualHost>
<VirtualHost *:443>