Skip to content

Instantly share code, notes, and snippets.


Mark Steve Samson marksteve

View GitHub Profile
View setup_rathena_db.ps1
"DROP DATABASE RAGNAROK" | mysql -u root -p
"CREATE DATABASE ragnarok CHARACTER SET utf8 COLLATE utf8_bin;" | mysql -u root -p
Get-Content main.sql | mysql -u root -p ragnarok
Get-Content logs.sql | mysql -u root -p ragnarok

Building pgModeler in MacOS with Homebrew

The official installation instructions for pgModeler recommends installing Xcode and the Enterprise DB distribution of Postgres to fulfill its build requirements. Luckily, Homebrew's got us covered!

  1. Checkout the source

    git clone
View password.html
<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<meta name=viewport content=width=device-width>
<style>*{margin:0;padding:0}body,input{font:14px/1 Arial,Helvetica,sans-serif}body{padding:5em 1em;text-align:center;}input{padding:0.2em;margin:0.2em;}#d{font-size:4em}</style>
<p><input id=a type=password placeholder="master password"></p>
<p><input id=b placeholder=indentifier size=18><input id=c size=1 value=8></p>
<p id=d>password</p>
marksteve / Makefile
Last active Oct 29, 2019
Makefile for Python projects
View Makefile
.PHONY: dev
dev: venv/bin/pip-sync requirements.txt
requirements.txt: venv/bin/pip-compile
venv/bin/pip-compile \
--no-index \
--no-emit-trusted-host \ > requirements.txt
venv/bin/pip-compile venv/bin/pip-sync: venv
venv/bin/pip install wheel pip-tools
# curl -L | bash
RS="\[\033[0m\]" # reset
FBLK="\[\033[30m\]" # foreground black
BRED="\[\033[41m\]" # background red
echo >> ~/.bashrc
echo "export PS1='$FBLK$BRED\u@\h$RS:\w\$ '" >> ~/.bashrc
import itertools
def partition(n):
x = 1
_sum = 0
# Get possible addends
addends = set()
while _sum < n:
marksteve / _redux.ex
Last active Jun 4, 2016 — forked from rstacruz/_redux.ex
Redux.ex (elixir)
View _redux.ex
defmodule Redux do
@moduledoc """
Like redux.js, but more elixir-like
store = create_store fn state, action -> ... end
store |> get_state()
store |> dispatch(%{ type: "publish" })
watson log > watson-log
curl | python - watson-log
import csv
import fileinput
import re
while true; do
screencapture -C -x -T $1 ss-$(printf "%04d" $i).png

Keybase proof

I hereby claim:

  • I am marksteve on github.
  • I am marksteve ( on keybase.
  • I have a public key ASA_y59_BWI2CFwJoOmev0dwHe6WJHvTW4Dd0awqBUzN3wo

To claim this, I am signing this object:

You can’t perform that action at this time.