Skip to content

Instantly share code, notes, and snippets.

Mark Steve Samson marksteve

Block or report user

Report or block marksteve

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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
View pgmodeler-brew.md

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 https://github.com/pgmodeler/pgmodeler.git
    
View password.html
<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<meta name=viewport content=width=device-width>
<title>password</title>
<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>
<script>
@marksteve
marksteve / Makefile
Last active Mar 26, 2019
Makefile for Python projects
View Makefile
.PHONY: dev
dev: venv/bin/pip-sync requirements.txt
venv/bin/pip-sync
requirements.txt: venv/bin/pip-compile requirements.in
venv/bin/pip-compile \
--no-index \
--no-emit-trusted-host \
requirements.in > requirements.txt
venv/bin/pip-compile venv/bin/pip-sync: venv
venv/bin/pip install pip-tools
View remote_prompt.sh
#!/bin/bash
# curl -L https://git.io/remote_prompt.sh | 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
View partition.py
import itertools
def partition(n):
x = 1
_sum = 0
# Get possible addends
addends = set()
while _sum < n:
@marksteve
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" })
"""
View watson-log-csv-export.py
"""
Usage:
watson log > watson-log
curl https://gist.githubusercontent.com/marksteve/fed69cc86cf8f0c0e104af55516a644d/raw/85b460cceea45236ac400df716985ef996565c92/watson-csv-export.py | python - watson-log
"""
import csv
import fileinput
import re
View timelapse.sh
#!/bin/bash
i=0
while true; do
screencapture -C -x -T $1 ss-$(printf "%04d" $i).png
((i++))
done
View keybase.md

Keybase proof

I hereby claim:

  • I am marksteve on github.
  • I am marksteve (https://keybase.io/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.