Skip to content

Instantly share code, notes, and snippets.

@advayDev1
advayDev1 / README.md
Last active July 12, 2018 04:21
raspberry pi setup
@advayDev1
advayDev1 / make-daemon-user.sh
Last active July 8, 2018 01:20
daemon user rasp pi
sudo adduser --system monlogd
sudo usermod -a -G input monlogd
sudo usermod -a -G video monlogd
@advayDev1
advayDev1 / .gitconfig
Created November 25, 2015 09:59
git aliases
[user]
name = X X
email = X@example.com
[core]
autocrlf = input
preloadindex = true
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
@advayDev1
advayDev1 / build.gradle
Created September 8, 2015 17:42
Native library project to link with j2objc-gradle
apply plugin: 'objective-cpp'
// See https://github.com/j2objc-contrib/j2objc-gradle
// Modified version of j2objc-gradle NativeCompilation.groovy.
// Original notice follows.
/*
* Copyright (c) 2015 the authors of j2objc-gradle (see AUTHORS file)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@advayDev1
advayDev1 / guava-local-j2objc-build-fail
Created August 27, 2015 22:54
Build logs for guava 19.0-rc1 in j2objc-gradle
With the following build:
```gradle
dependencies {
compile 'com.google.j2objc:j2objc-annotations:0.9.8'
compile 'com.google.code.findbugs:jsr305:3.0.0'
compile 'com.google.errorprone:error_prone_annotations:2.0.4'
compile 'org.codehaus.mojo:animal-sniffer-annotations:1.14'
j2objcTranslation 'com.google.guava:guava:19.0-rc1:sources'
}
@advayDev1
advayDev1 / markdown-toc.js
Created August 26, 2015 02:51
Update a ToC in Markdown
// To update the TOC, replace 'h3' with the level
// of your headings,
// open a debugging console on the file.md page on GitHub
// and execute:
$('article>h3').map(function(i){
var txt = $(this).text();
var href= $(this).find('a').attr('href');
return "- [" + txt + "](" + href + ")";
}).get().join('\n');
@advayDev1
advayDev1 / buildstamp.gradle
Last active August 29, 2015 14:28
BuildStamp gradle task
// See: https://github.com/madvay/git-build-info
@advayDev1
advayDev1 / j2objc-native-build.gradle
Last active August 29, 2015 14:21
j2objc-gradle-build.gradle - Gradle-based building of objc code created using j2objc
// This is superseded by:
// https://madvay.github.io/mixc-build/