Skip to content

Instantly share code, notes, and snippets.

# output directory %AppData%\Roaming\Factorio\script-output
# stitch with https://www.microsoft.com/en-us/research/product/computational-photography-applications/image-composite-editor/
/c
game.player.surface.always_day=true
local r=8
local rr=-8
local z=0
for y=rr,r-1 do
for x=rr,r-1 do
@marfillaster
marfillaster / map-modifier.lua
Last active May 8, 2020 11:22
Freeplay deepwater bordered starter base map modifier
-- resources targeted for https://kirkmcdonald.github.io/calc.html#zip=bVHbbsMgDP2bPEGVtFk3VcrHOI6TWiWAjFnVvx+5adLWR59jzsUMoNDVtvm017oSUOpSNbPvztWYxQOWWYmc3aeKlebUQdYwg3LwNiGTR7IR8HEbb01tXJg4KeM/6mzwTjMjuL/UuTVRwpDxrWRrsrJjfb1hJOCD1GLwKsHZ7FkL0dYHMWZyG+DC0w7k06qjUryy0OL9ZcgRqpTEe8uC1qerYVnClCaPFfgwKuBTDKK2J6c7uG5NBGKfd1rNlrelDlJK7KcjU3O6GBi+oeQfLLJg5k3i8A++JPglmqIyuteiIKEPpYrAfESLDtYT9yA70oMqyWtXjBy31YvBECOJRejdAaXsStN9dfvfIqjrNS6n6w8=
/c
local r=640
local rr=-r
local t={}
local g=4
game.player.surface.request_to_generate_chunks({0,0}, math.ceil(r/32)+1)
@marfillaster
marfillaster / dual.cfg
Last active March 28, 2024 06:32
Mikrotik dual/triple dhcp wan recursive failover w/ pcc load balancing
/interface bridge add name=bridge
/interface bridge port
add bridge=bridge interface=ether3
add bridge=bridge interface=ether2
add bridge=bridge interface=ether1
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
@marfillaster
marfillaster / README.md
Last active February 1, 2023 10:07
WSL Desktop Launched i3wm

WSL Desktop Launched i3wm

Requirements VcXsrv, i3wm in wsl.

The three files below must be stored in the same directory (%UserProfile%\Desktop).

  • i3.vbs - This is the entrypoint script. It runs i3.bat in the background.
  • i3.bat - Runs VcXsrv using d0.xlaunch profile then starts i3
  • d0.xlaunch - VcXsrv in "One window without titlebar" mode at DISPLAY=:0
@marfillaster
marfillaster / .gitlab-ci.yml
Last active July 28, 2017 04:13
Generic Docker Gitlab Runner
image: docker:latest
services:
- docker:dind
stages:
- build
- deploy
before_script:

Nginx configuration

listen       443 ssl;
ssl_certificate /etc/ssl/certs/nginx.cert;
ssl_certificate_key  /etc/ssl/private/nginx.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';

Generate self signed certificate

Verifying that +batarang is my blockchain ID. https://onename.com/batarang
// ==UserScript==
// @name coinsph rate info
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author Ken Marfilla
// @match http://stackoverflow.com/questions/5258989/manually-adding-a-userscript-to-google-chrome
// @include https://coins.ph/*
// @grant none
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am marfillaster on github.
  • I am marfillaster (https://keybase.io/marfillaster) on keybase.
  • I have a public key whose fingerprint is DC23 23ED D36A 52F5 3D56 3F2F 074F E92E 70F2 1CC6

To claim this, I am signing this object:

<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;