Skip to content

Instantly share code, notes, and snippets.

Roman romanmah

Block or report user

Report or block romanmah

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
@romanmah
romanmah / kernel_to_utc.sh
Created Feb 1, 2015
Convert kernel time to utc
View kernel_to_utc.sh
#!/bin/env bash
ut=`cut -d' ' -f1 </proc/uptime`
ts=`date +%s`
date -d"70-1-1 + $ts sec - $ut sec + $1 sec" +"%F %T"
View sql test
{
// Your GitHub API token
// see: https://github.com/condemil/Gist#generating-access-token
"token": "c1d400e8fa22a571f280a22ca0db0001fe625aa3",
// Show the authors of Gists
"show_authors": false,
}
@romanmah
romanmah / redis-mygrate.py
Created Mar 20, 2014
A small utility for redis db migration
View redis-mygrate.py
#!/usr/bin/python
import redis
import pickle
import argparse
class RedisMigrate():
def __init__(self, host, port, db):
You can’t perform that action at this time.