This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="https://blabla.serverdensity.io/# mybank.com/">https://mybank.com</a>, definitely that site and not some other site ;) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if True: | |
from PySide import QtGui | |
from PySide import QtCore | |
import threading | |
from collections import defaultdict | |
# resizing a window too fast seems to allow for the window manager to drop some requests. | |
# for experimentation, we resize a label within a fixed-size window. | |
w = QtGui.QLabel() | |
w.show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My contributions are dedicated to the Public Domain, using the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. | |
I hereby express my intent to waive all copyright restrictions on my contributions to the fullest possible extent, without expecting any compensation, so that my contribution may be distributed, modified, and used without restriction, including the redistribution with or without modifications under any license or legal terms. | |
To my knowledge, my contribution does not infringe any patent, and does not infringe any trademark. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
;; License: creative commons zero-1.0 | |
(module props '#%kernel | |
(#%provide (for-syntax current-props) | |
define-prop | |
get-prop) | |
(#%require racket/private/small-scheme | |
syntax/id-table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(define-syntax (define-enum stx) | |
(syntax-case stx () | |
[(_ case-name contract-name id ...) | |
(with-syntax ([(code ...) (generate-temporaries #'(id ...))]) | |
#'(begin (define-syntax case-name | |
(syntax-rules (id ...) | |
[(_ val [(id) code] ...) | |
(case val | |
[(id) code] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
# Call with: | |
# | |
# nixpatch.sh file_1 file_2 … file_n | |
# | |
# where each file_i is either an ELF executable or a shell script. | |
# | |
# This script will break badly if any of the arguments contain spaces. | |
# Don't use spaces in the file_i names! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require racket/match) | |
(require racket/stream) | |
(define (for-each-cartesian-product lol fn) | |
(match lol | |
['() (fn '())] | |
[(cons hd tl) | |
(for [(elem hd)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
# Call with: | |
# | |
# nixpatch.sh file_1 file_2 … file_n | |
# | |
# where each file_i is either an ELF executable or a shell script. | |
# | |
# This script will break badly if any of the arguments contain spaces. | |
# Don't use spaces in the file_i names! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See also: http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_Ubuntu_step_by_step | |
# See also: http://charles.lescampeurs.org/2013/11/01/redmine-on-ubuntu-13-10-with-apache2-and-passenger | |
echo "vb-redmine" | sudo tee /etc/hostname | |
sudo sed -i -e "s/vb-xub1310-64/vb-redmine/" /etc/hosts | |
sudo apt-get -y install apache2 libapache2-mod-passenger mysql-server mysql-client redmine redmine-mysql | |
# Configuring mysql-server-5.5 | |
# New password for the MySQL "root" user: | |
# => root |
NewerOlder