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
14:52:58.938 [info] HTTP port: 4001 | |
14:52:58.938 [info] Permissions file path: permissions.yml | |
14:52:58.938 [info] Passwd file path: passwd.yml | |
14:52:58.938 [info] Consumer groups cache directory: priv | |
14:52:58.948 [info] Kafka cluster: [{'localhost', 9092}] | |
14:52:58.948 [info] brod producer config: [] | |
14:52:58.950 [info] brod ssl config: false | |
14:52:58.950 [info] not using sasl auth | |
14:52:58.953 [info] Zookeeper cluster: [{'localhost', 2181}] | |
14:52:58.953 [info] Reloading permissions from permissions.yml |
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
$alphabet = | |
{ | |
11 => ?i, | |
12 => ?c, | |
13 => ?u, | |
14 => ?o, | |
21 => ?t, | |
22 => ?n, | |
23 => ?h, |
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
hdiutil convert -format UDRW -o destination_file.img source_file.iso | |
# Or re-partition it with Disk Utility with 1 Free Space Partition | |
diskutil partitionDisk /dev/disk2 1 "Free Space" "unused" "100%" | |
# Or copy the image through Disk Utility in Restore menu | |
dd if=destination_file.img.dmg of=/dev/disk2 bs=1m | |
# Or eject manually | |
diskutil eject /dev/disk2 |
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
avoid_safe_mode=1 | |
# uncomment if you get no picture on HDMI for a default "safe" mode | |
#hdmi_safe=1 | |
# uncomment this if your display has a black border of unused pixels visible | |
# and your display can output without overscan | |
#disable_overscan=1 | |
# uncomment the following to adjust overscan. Use positive numbers if console | |
# goes off screen, and negative if there is too much border |
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
#!/usr/bin/env ruby | |
God.watch do |w| | |
w.group = "hubot_group" | |
w.name = "hubot" | |
w.interval = 1.seconds | |
w.env = { 'NODE_ENV' => 'production'} | |
w.start = "node ..." | |
w.start_grace = 5.seconds | |
w.restart_grace = 5.seconds |
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
var nodes = document.querySelectorAll(".audio_remove"), i = 0, inter = setInterval( function() { if (i == nodes.length) { clearInterval(inter);}; var evt = document.createEvent("MouseEvents"); evt.initMouseEvent("click", true, true, nodes[i], 0, 0, 0, 0, 0, false, false, false, false, 0, null); nodes[i].dispatchEvent(evt); i++; }, 350); |
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
# As a separate module, because we might want to | |
# mock some files in the future or use generator | |
# for the same reason it returns opened instance of file | |
# | |
# Each method check if corresponding file exists in | |
# spec/support/files/file.name.kitten.ext | |
# if method has `_path` in the end Pathname instance would be returned | |
# otherwise it will be File instance | |
module TestFiles | |
def self.respond_to?(method) |
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
❯ /usr/bin/time -l antiword ~/Projects/universiteam/spec/support/files/lorem.complex.doc | |
0.02 real 0.00 user 0.00 sys | |
688128 maximum resident set size | |
0 average shared memory size | |
0 average unshared data size | |
0 average unshared stack size | |
157 page reclaims | |
32 page faults | |
0 swaps | |
7 block input operations |
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
import Data.Traversable | |
data Term a = | |
Var a | |
| Lambda a (Term a) | |
| Apply (Term a) (Term a) | |
instance Show a => Show (Term a) where | |
show (Var v) = show v | |
show (Lambda n t) = "/" ++ (show n) ++ "." ++ (show t) |
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
""" | |
jQuery templates use constructs like: | |
{{if condition}} print something{{/if}} | |
Or like: | |
{% if condition %} print {%=object.something %}{% endif %} | |
This, of course, completely screws up Django templates, |
NewerOlder