Skip to content

Instantly share code, notes, and snippets.

View retry.sh
#!/usr/bin/env bash
# https://github.com/microsoft/dotnet-framework-docker/blob/master/eng/common/pull-image.sh
# Stop script on NZEC
set -e
# Stop script if unbound variable found (use ${var:-} if intentional)
set -u
print_err() {
printf "%b\n" "Error: $1" >&2
@mandric
mandric / test.js
Last active May 2, 2019
start a service and test it example from heroku
View test.js
const { spawn } = require('child_process');
const request = require('request');
const test = require('tape');
// Start the app
const env = Object.assign({}, process.env, {PORT: 5000});
const child = spawn('node', ['index.js'], {env});
test('responds to requests', (t) => {
t.plan(4);
View driver.js
"use script";
const webdriver = require('selenium-webdriver');
const chrome = require('selenium-webdriver/chrome');
const firefox = require('selenium-webdriver/firefox');
const edge = require('selenium-webdriver/edge');
const Command = require("selenium-webdriver/lib/command").Command;
const { logging } = webdriver
View gist:fee6c718eb76e8e6c775b00cc2489537
Verifying my Blockstack ID is secured with the address 17VfKHLgWyeiWpRpmSBaZiSLvrdcBS2777 https://explorer.blockstack.org/address/17VfKHLgWyeiWpRpmSBaZiSLvrdcBS2777
@mandric
mandric / TestcrosswalkActivity.java
Created Oct 14, 2016
Trying to get chromium command line switches to work with crosswalk-21.51.546.6
View TestcrosswalkActivity.java
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.medicmobile.testcrosswalk;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
View bulk-update
#!/bin/sh
#
# Do bulk edit request.
#
SELF=`basename $0`
COUCH_URL=${COUCH_URL-http://admin:secret@localhost:5988}
DOCS="$1"
if [ -z "$DOCS" ]; then
View make-album
#!/usr/bin/env bash
EXTS_PICS_RE='(\.png$|\.jpg$|\.jpeg$)'
EXTS_VIDS_RE='(\.mp4$|\.mov$|\.mpg$|\.m4v$)'
EXTS_AUDIO_RE='(\.mp3$|\.opus$|\.m4a$)'
ALBUM_SUBTITLE="${ALBUM_SUBTITLE-`date '+%B %Y'`}"
ALBUM_SORT="${ALBUM_SORT-sort}"
ALBUM_POSTER_WIDTH=${ALBUM_POSTER_WIDTH-640}
ALBUM_TITLE="${ALBUM_TITLE-`basename "$PWD"`}"
View manage result data.md

Intro

This document expands on some of the technical details of SMSSync Issue 120 and proposes a solution for managing result data of outgoing SMS messages sent by SMSSync.

Settings

No new settings should be required for this feature.

View Integrating SMS Portals.md

Is your phone rooted? I wonder what the value is on your phone for these settings?

sqlite3 /data/data/com.android.providers.settings/databases/settings.db Selet * from gservices where name = 'sms_outgoing_check_max_count';

http://forum.xda-developers.com/showthread.php?p=5519546

SMS Portals project that can be integrated with SMSSync: https://github.com/vaneyck/sms-portals

The idea is that SMSSync has a setting to enable SMS Portals and when the portals are installed it uses them/cycles between them. Each portal has the 100/150 sms/hr limit so to get around it we install multiple portals that are registered as separate apps by Android.