Skip to content

Instantly share code, notes, and snippets.

@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
#!/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 / .linux-commands
Last active January 6, 2019 21:07
Linux commands
.
@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 / 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 / .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 / 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 / git.md
Last active August 29, 2015 14:11
Dartlab experiences

Current tag (undefined if no tag on head)

git name-rev --tags --name-only $(git rev-parse HEAD)

@ggirou
ggirou / Wireshark filters.md
Created October 22, 2014 07:56
Wireshark filters

http && tcp.port == 8080 && (http.host ~ "hostname" || http.next_response_in)

@ggirou
ggirou / Dockerfile
Last active August 29, 2015 14:07
Websocket Dart server
FROM google/dart-runtime