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
[alias] | |
d = diff | |
dw = diff --color-words | |
lc = log ORIG_HEAD.. --stat --no-merges | |
undo=reset --hard | |
all = submodule foreach | |
sub = submodule | |
s = status | |
l = log | |
g = log --graph --oneline |
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
rule | |
{ | |
id "Simple Rule" | |
for data | |
filter | |
{ | |
type name | |
name /home | |
relation is-strict-prefix-of | |
} |
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
rule | |
{ | |
id “Smart Home Camera Command Interest Rule” | |
for interest | |
filter | |
{ | |
type name | |
name /home/LivingRoom/Camera-01/Control | |
relation is-strict-prefix-of | |
} |
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 ruby | |
require 'rest-client' | |
require 'date' | |
require 'csv' | |
require 'json' | |
require 'yaml' | |
require 'optparse' | |
require './apex' |
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
class Apex | |
def initialize(username, password) | |
@endpointLegit = "https://public-api.apexclearing.com/legit/api/v2" | |
@endpointMarginProvider = "https://public-api.apexclearing.com/margin-provider/api/v1" | |
@endpointActivitiesProvider = "https://public-api.apexclearing.com/activities-provider/api/v1" | |
authorize(username, password) | |
end |
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 python3 | |
import csv | |
import logging | |
import os | |
import re | |
import smtplib | |
import sys | |
import argparse |
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
for i in *; do N=`basename -s .mp4 $i`; echo $N; ffmpeg -i $N.mp4 -acodec copy -vcodec copy ../fix/$N.m4v; 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
#!/usr/bin/env python | |
import socket | |
import sys | |
import time | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
if len(sys.argv) != 2: | |
print >>sys.stderr, "ERROR: expected exactly 1 parameter:" |
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
%% \name command | |
%% - allows break before / | |
\usepackage{etoolbox} | |
\usepackage{xstring} | |
\DeclareListParser{\doslashlist}{/} | |
\newcounter{ndnNameComponentCounter}% | |
\newcommand{\name}[1]{{% | |
\setcounter{ndnNameComponentCounter}{0}% | |
\renewcommand{\do}[1]{{% | |
\ifnumgreater{\value{ndnNameComponentCounter}}{0}{\allowbreak/}{}% |
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
01-19 14:52:40.334: D/NFDService(3427): onCreateOptionsMenutrue | |
01-19 14:52:40.749: D/NFDService(3427): onCreateOptionsMenutrue | |
01-19 14:52:40.856: D/TaskPersister(535): removeObsoleteFile: deleting file=217_task.xml | |
01-19 14:52:40.860: D/TaskPersister(535): removeObsoleteFile: deleting file=217_task_thumbnail.png | |
01-19 14:52:41.425: D/NFDService(3427): onCreateOptionsMenutrue | |
01-19 14:52:41.452: D/NFDService(3427): MainFragment::unbindNfdService() | |
01-19 14:52:41.502: D/NDNController(3427): Discovering peers already running! | |
01-19 14:52:41.502: D/NDNController(3427): Probing task already running! | |
01-19 14:52:41.502: D/NDNController(3427): BroadcastReceiverService already started. | |
01-19 14:52:41.502: D/NDNController(3427): Face consistency checker already running! |