I hereby claim:
- I am anaynayak on github.
- I am anay (https://keybase.io/anay) on keybase.
- I have a public key whose fingerprint is 555A A55F 2E91 306A 5EDD DEEA 9467 8869 A9A2 0850
To claim this, I am signing this object:
data MessageType = Info | |
| Warning | |
| Error Int | |
deriving (Show, Eq) | |
type TimeStamp = Int | |
data LogMessage = LogMessage MessageType TimeStamp String | |
| Unknown String | |
deriving (Show, Eq) |
I hereby claim:
To claim this, I am signing this object:
import sys | |
from PyQt5.QtWidgets import QSystemTrayIcon, QApplication | |
from PyQt5.QtGui import QIcon | |
class BuildNotifyTest: | |
def __init__(self, app): | |
self.app = app | |
self.tray = QSystemTrayIcon(QIcon.fromTheme("edit-undo"), self.app) |
(function ($) { | |
var highlightEnvs = prompt('Highlight nodes containing(comma separated)', 'Prod,prd').split(','); | |
var hideEnvs = prompt('Hide nodes containing(comma separated)', 'dev,Dev,e2e,E2E').split(','); | |
highlightEnvs.forEach(function (env) { | |
$("g title:contains(" + env + ".)").parent().children('circle').css('fill', 'lightskyblue'); | |
}); | |
hideEnvs.forEach(function (env) { | |
$("g title:contains(" + env + ".)").parent().css('opacity', 0.5); |
var fs = require('fs'), | |
readline = require('readline'); | |
var filePath = process.argv[2] | |
if (!filePath) { | |
console.error("node dynamo.js /path/to/file") | |
process.exit(1) | |
} | |
var rd = readline.createInterface({ | |
input: fs.createReadStream(filePath), | |
console: false |
var page = require('webpage').create(), | |
system = require('system'), | |
address; | |
if (system.args.length === 1) { | |
console.log('Usage: phantomjs url_requests.js http://some.url.com'); | |
phantom.exit(1); | |
} else { | |
address = system.args[1]; | |
var logUrl = function (req) { |
site :opscode | |
cookbook 'ntp' |
#!/bin/sh | |
rm -rf * | |
mv .git/config /tmp/git_config | |
rm -rf .git | |
git init | |
mv -f /tmp/git_config .git/config | |
touch .gitignore | |
git add . | |
git commit -m "Code cleanup" | |
git push -f |
import socket | |
import sys | |
host = sys.argv[1] | |
port = int(sys.argv[2]) | |
sock = socket.socket() | |
sock.connect((host,port)) | |
print sock.recv(4096) | |
sock.close |