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
class InitialBuild(schedulers.Periodic): | |
@defer.inlineCallbacks | |
def startBuild(self): | |
if not self.enabled: | |
return | |
log.msg(str(self.builderNames)) | |
builder_name = self.builderNames[0] | |
builder_id = yield self.master.db.builders.findBuilderId(builder_name) |
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
// ==UserScript== | |
// @name Google Search Tools Back | |
// @namespace http://userstyles.org | |
// @description Brings back Google search tools to left side and displays drop-down menu items. | |
// @author Ming-Hsien Lin (akiratw) | |
// @homepageURL https://userstyles.org/styles/95110 | |
// @run-at document-end | |
// @version 11.8 | |
// @include https://*.google.*/*search* | |
// ==/UserScript== |
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 os | |
import sys | |
def text_to_int(text): | |
return int("0x{}".format(text), 0) | |
def int_to_text(myint): | |
return "{0:02x}".format(int(myint)) |
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
loadAPI(1); | |
host.defineController("Akai", "Rhythm Wolf", "1.0", | |
"FF7FA0F5-9B53-4854-828A-666666666666"); | |
host.defineMidiPorts(1, 1); | |
host.addDeviceNameBasedDiscoveryPair(["Rhythm Wolf MIDI 1"], ["Rhythm Wolf MIDI 1"]); | |
function init() { | |
var generic = host.getMidiInPort(0).createNoteInput("Rhythm Wolf Pads"); | |
generic.setShouldConsumeEvents(false); |
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
diff --git a/gtk-3.0/scss/_global.scss b/gtk-3.0/scss/_global.scss | |
index 38ca3d6..01de3ea 100755 | |
--- a/gtk-3.0/scss/_global.scss | |
+++ b/gtk-3.0/scss/_global.scss | |
@@ -3,18 +3,20 @@ | |
@import "functions"; | |
// default color scheme | |
-$bg_color: if($variant == "dark", #444, #eee); | |
-$fg_color: if($variant == "dark", #ddd, #555); |
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
" from https://github.com/sd65/MiniVim/blob/master/vimrc | |
" | |
" | |
let g:miniline_left_sep = '' | |
let g:miniline_right_sep = '' | |
"let g:miniline_right_sep = '' | |
"let g:miniline_left_sep = '' | |
let defaultAccentColor=2 | |
let colorsAndModes= { |
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 | |
# Cleanup docker files: untagged containers and images. | |
# | |
# Use `docker-cleanup -n` for a dry run to see what would be deleted. | |
untagged_containers() { | |
# Print containers using untagged images: $1 is used with awk's print: 0=line, 1=column 1. | |
# NOTE: "[0-9a-f]{12}" does not work with GNU Awk 3.1.7 (RHEL6). | |
# Ref: https://github.com/blueyed/dotfiles/commit/a14f0b4b#commitcomment-6736470 | |
docker ps -a | tail -n +2 | awk '$2 ~ "^[0-9a-f]+$" {print $'$1'}' |
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
local awful = require("awful") | |
local local_config = {} | |
function local_config.init(awesome_context) | |
awesome_context.config = { | |
wlan_if = 'wlp4s0', | |
eth_if = 'enp0s25', | |
net_preset = 'bond', |
NewerOlder