Skip to content

Instantly share code, notes, and snippets.

@ggirou
ggirou / Dart.flt
Created January 18, 2015 12:18
WinMerge Dart filter
## This is a directory/file filter for WinMerge
## This filter lets through only files XML/HTML developer cares about
name: Dart
desc: Lets through only files XML/HTML developer cares about
## This is an exclusive filter
## (it lets through only matching files)
def: include
## Filters for filenames begin with f:
@ggirou
ggirou / .gitignore
Last active August 29, 2015 14:15 — forked from anonymous/.gitignore
Drfibonacci's Sunflower Spectacular
*.dart.js
*.js.deps
*.js.map
.buildlog
pubspec.lock
.pub/
.settings/
build/
packages
@ggirou
ggirou / content_shell_install.sh
Last active August 29, 2015 14:16
Drone.io content_shell installation
#!/bin/bash
# Install Dartium content_shell
$DART_SDK/../chromium/download_contentshell.sh
unzip content_shell-linux-x64-release.zip
mkdir content_shell
mv drt*/* ./content_shell
# Define html_test alias to run tests as dart w/ content_shell
html_test(){
@ggirou
ggirou / logapp.conf
Created April 14, 2015 14:23
Logstash configuration
input {
# stdin { }
file {
path => "/path/to/catalina.out*"
start_position => beginning
}
}
# %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %marker - %msg%n
@ggirou
ggirou / .linux-commands
Last active January 6, 2019 21:07
Linux commands
.
#!/usr/bin/env node
const fs = require('fs');
const readline = require('readline');
const commitFile = process.argv[2];
const fromIDE = !process.stdout.isTTY;
if (fromIDE) {
process.exit(0);
@ggirou
ggirou / run.sh
Last active July 3, 2017 19:39
Android monkeyrunner
#!/bin/bash
# fswatch script.py | xargs -n1 ./run.sh
monkeyrunner < script.py
@ggirou
ggirou / jukebox.py
Last active December 23, 2024 17:12
Keyboard jukebox
#!/usr/bin/env python3
import colorsys
import rainbowhat as rh
from rainbowhat import display, lights, weather, rainbow, buzzer, touch
import time
import signal
from subprocess import Popen, PIPE
import asyncio
import glob
@ggirou
ggirou / bluetooth-adapter.sh
Last active April 30, 2020 20:08
Raspberry pi bluetooth speaker
hciconfig
hciconfig hci0 up
hciconfig hci0 reset
# Scan for Bluetooth devices
hcitool scan
@ggirou
ggirou / rainbow.py
Last active April 30, 2020 13:08
Rainbow hat XP
import rainbowhat as rh
rh.rainbow.set_pixel(0, 255, 0, 0)
rh.rainbow.show()
#######################
import rainbowhat as rh
import time