Skip to content

Instantly share code, notes, and snippets.

View actionless's full-sized avatar
🎹
https://www.youtube.com/c/ActionlessLoveless13

Actionless Loveless actionless

🎹
https://www.youtube.com/c/ActionlessLoveless13
View GitHub Profile
@actionless
actionless / config.py
Last active December 21, 2019 21:40
buildbot scheduler with init build for new builder
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)
@actionless
actionless / userscript.js
Created July 23, 2018 01:32
Google Search Tools Back fork
// ==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==
@actionless
actionless / terminal.py
Last active May 4, 2017 19:48
terminal.py
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))
@actionless
actionless / Rhythm Wolf.control.js
Last active February 13, 2021 01:23
Akai Rhythm Wolf controller script for Bitwig 1.x
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);
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);
@actionless
actionless / miniline.vim
Created March 28, 2016 00:16
Vim miniline
" 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= {
@actionless
actionless / docdoc.md
Created September 8, 2015 18:44
test doc-doc output

We gonna use ubuntu:trusty as a base.

Install python3 and the build-time dependencies for c modules

Execute:

#!/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'}'
@actionless
actionless / local.lua
Last active August 29, 2015 14:03
config/local.lua example for actionless/awesome_config
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',