Skip to content

Instantly share code, notes, and snippets.

View zalun's full-sized avatar

Piotr Zalewa zalun

View GitHub Profile
$fullred: #ff0000;
body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid $fullred;
}
<html><head><script>alert('wtf')</script></head></html>
@zalun
zalun / serveapp.py
Last active December 11, 2015 18:19
import SimpleHTTPServer
import SocketServer
SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map['.webapp'] = 'application/x-web-app-manifest+json'
SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map['.manifest'] = 'application/x-web-app-manifest+json'
httpd = SocketServer.TCPServer(("", 3000), SimpleHTTPServer.SimpleHTTPRequestHandler)
print 'serving from http://localhost:3000/'
httpd.serve_forever()
@zalun
zalun / index.html
Created September 20, 2013 18:32
index.html and js for PGDay example
<!DOCTYPE html>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
@zalun
zalun / fiddle.css
Last active August 29, 2015 14:07 — forked from chrisg32/fiddle.css
#colorpickers {
display: inline-table;
}
#colorpickers:before, #colorpickers:after {
content:"";
display: table;
}
#colorpickers:after {
clear:both;
}
hg up @ && hg pull -u
hg up bug-1248008 && hg rebase -d @
@zalun
zalun / writeSD.sh
Created September 17, 2016 14:03
write image to SD
diskutil list
diskutil unmount (/dev/disk2s1)
dd if=(image) of=(/dev/disk2) bs=1m
@zalun
zalun / flactomp3.sh
Last active October 24, 2016 08:26
FLAC to MP3
#!/bin/bash
for a in ./*.flac; do ffmpeg -i "$a" -qscale:a 0 "$a.mp3"; done

Set hosting service to "hmo" Patch config update sqlite

// server/content-types/production-settings.js
module.exports = {
schema: {
kind: "singleType",
collectionName: "production_settings",
info: {
singularName: "production-settings",
pluralName: "production-settings",
displayName: "PayU Settings - Production",
description: ""