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
#!/usr/bin/env bash | |
# Read https://github.com/diafygi/acme-tiny before using this script | |
# This scripts expects: | |
# 1. letsencrypt account.key is present $ACCOUNT_KEY dir (Step 1.) | |
# 2. CSR to generated (files: domain.key and domain.csr) (Step 2.) | |
# domain.csr should be present in $DOMAIN_ROOT/$DOMAIN | |
# (eg. /home/letsencrypt/acme-tiny/mapilary.com/domain.csr) | |
# Resulting cert chained.pem will be stored in $DOMAIN_ROOT/$DOMAIN/chained.pem |
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
#!/usr/bin/env bash | |
while true; do ps h -u nodejs -o pid,%cpu,%mem,rss,sz,vsz,cmd | awk '{ print strftime("%Y-%m-%d %H:%M:%S"), $0; fflush(); }'; sleep 30; done |
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
// you will need to run emailjs-tcp-socket server | |
// https://github.com/emailjs/emailjs-tcp-socket | |
// NODE_ENV=integration node ws-proxy/server.js | |
// Also for gmail turn on less secure app option | |
// https://www.google.com/settings/security/lesssecureapps | |
// In case cert is revoked/expired generate new cert | |
// https://support.google.com/a/answer/6180220?hl=en | |
// fill your gmail credentials and change ws-proxy url at very bottom |
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
package com.marianhello.bgloc.sync; | |
import android.accounts.Account; | |
import android.app.NotificationManager; | |
import android.content.AbstractThreadedSyncAdapter; | |
import android.content.ContentProviderClient; | |
import android.content.ContentResolver; | |
import android.content.Context; | |
import android.content.SyncResult; | |
import android.database.Cursor; |
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
packages: [ | |
"adventurous-syntax" | |
"atom-alignment" | |
"atom-beautify" | |
"atom-ternjs" | |
"atom-typescript" | |
"color-picker" | |
"emmet" | |
"file-icons" | |
"linter" |
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
//Inspired by: https://gist.github.com/joelambert/1002116#file-requestanimframe-js | |
var TimerMixin = require('react-timer-mixin'); | |
var IntervalMixin = Object.assign({}, TimerMixin, { | |
/** | |
* Behaves the same as setInterval except uses requestAnimationFrame() where possible for better performance | |
* @param {function} fn The callback function | |
* @param {int} delay The delay in milliseconds | |
*/ |
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/bash | |
cat << EOF | |
########################################################### | |
# Workaround adb disconnecting issue on macOS Sierra | |
# | |
# More info: | |
# https://code.google.com/p/android/issues/detail?id=219085 | |
# credits to: hans...@meetme.com, vs...@google.com | |
########################################################### |
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
# Last Modified: Wed Oct 12 13:00:00 2016 | |
# All credits to: | |
# https://github.com/detrout/apparmor-det/ | |
# Helpful links: | |
# https://bugs.dogfood.paddev.net/ubuntu/+source/libvirt/+bug/1386465 | |
# http://blog.azimuthsecurity.com/2012/09/poking-holes-in-apparmor-profiles.html | |
#include <tunables/global> |
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/bash | |
# Put into /lib/systemd/system-sleep/suspend-modules | |
# chmod a+x /lib/systemd/system-sleep/suspend-modules | |
# Create /etc/suspend-modules.conf | |
# with one module per line | |
# credits to: | |
# https://bbs.archlinux.org/viewtopic.php?pid=1540125#p1540125 |
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 debian | |
# Add aditional debian sources (contrib,...) into sources.d | |
COPY conf_sources.sh /tmp/ | |
RUN /tmp/conf_sources.sh | |
# Install and set-up the current image - run only when creating the image | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
libncurses5-dev \ |