Skip to content

Instantly share code, notes, and snippets.

:octocat:
gitpug

David J. Kordsmeier truedat101

:octocat:
gitpug
Block or report user

Report or block truedat101

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View HOWTO-Lightroom_sync_with_s3-windows-macos.md

HOWTO Lightroom sync with s3 windows/macos

1. The pitch

As I am an avid photographer & travelling quite a lot, I wanted to sync my Adobe Lightroom library from Macbook to my Microsoft Windows desktop at home with very little/no human intervention. It is also a good thing that both Lightroom versions (mac & windows) share a common file system/structure, this helped alot in synchronizing data from one environment to another.

This HOWTO assumes you already have an AWS account created and running with an IAM user configured.

Put together, the solution would look as such (pardon my poor diagram skills):

                                  _  
macbook pro                     (`  ).                     windows desktop
@truedat101
truedat101 / gist:9e7eeb0c22c7e8fc8dde5f205e1aa0cc
Last active May 11, 2018
A simple example of writing a formatted string out to a file or to json in Dlang
View gist:9e7eeb0c22c7e8fc8dde5f205e1aa0cc
import std.stdio;
import std.string;
import std.file;
import std.json;
static const auto HK_DB = "hk_db.json"; // this is the filename
//
// Use a formatting string to fill in values for this config file
//
@truedat101
truedat101 / gist:6093671
Created Jul 27, 2013
Set up a qq mail account , and then configure imap
View gist:6093671
Sign up here
http://zc.qq.com/en/index.html
You will be required to provide a valid email to allow you to validate the account. Also annoying, you don't get to choose your email account name, it gets assigned.
Sign in, english: https://en.mail.qq.com/cgi-bin/loginpage
For configuration, I could not get pop3 working. It's unclear why. IMAP did work, using:
@truedat101
truedat101 / cross-compile-go-arm64.md
Last active Jun 16, 2017 — forked from conoro/cross-compile-go-arm64.md
Cross-compiling Golang for ARM64 (aarch64) e.g. Pine64 on Fedora AMD64
View cross-compile-go-arm64.md
  • Install Go for Linux the usual way on your main Linux box:
cd
wget https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz
tar -zxvf go1.8.linux-amd64.tar.gz
sudo mv go /usr/local/
export GOROOT=/usr/local/go
mkdir -p ~/.gitwork/go/src
mkdir ~/.gitwork/go/bin
@truedat101
truedat101 / checkboxes.md
Created Feb 12, 2017 — forked from germanny/checkboxes.md
Markdown checkboxes
View checkboxes.md
  • checkbox is done with the two brackets next to the P key
  • checkbox is done with the two brackets next to the P key
  • checkbox is done with the two brackets next to the P key
  • checkbox is done with the two brackets next to the P key
View Curl to talk to the emovu web api
curl -i -X POST \
-H "LicenseKey: MYAPIKEY \
-F "previousFrameResult=" -F imageFile=@img1.jpg -F timestamp=0 http://api.emovu.com/api/imageframe/
View A Sensible Android NDK Gradle Build (for your app's build.gradle)
import org.apache.tools.ant.taskdefs.condition.Os
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.example.hellojni"
@truedat101
truedat101 / smilequestionsloaded
Last active Dec 24, 2015
Sample SMILE JSON data
View smilequestionsloaded
[
{
"TYPE":"QUESTION",
"IP":"127.0.0.1",
"NAME":"teacher",
"O1":"Person from outer space",
"O2":"Both answers in 3) and 4)",
"O3":"Non-citizen",
"O4":"A first generation of Japanese (Issei) who came to the U.S.A.",
"Q":"When referring to Japanese Americans, what was an Alien?",
@truedat101
truedat101 / smilesessioncomplete
Last active Dec 24, 2015
smile data loaded, users in session, session complete
View smilesessioncomplete
[
{
"TYPE":"QUESTION",
"IP":"127.0.0.1",
"NAME":"teacher",
"O1":"Person from outer space",
"O2":"Both answers in 3) and 4)",
"O3":"Non-citizen",
"O4":"A first generation of Japanese (Issei) who came to the U.S.A.",
"Q":"When referring to Japanese Americans, what was an Alien?",
@truedat101
truedat101 / gist:6646367
Created Sep 21, 2013
iwdev and iwconfig for SMILEPlug
View gist:6646367
Script started on Thu 29 Aug 2013 03:40:33 PM PDT
root@SMILEplug:~# ip##[Kwpriv wdev0ap0 wpawpa2mode 3
root@SMILEplug:~# iwpriv wdev0ap0 wpawpa2mode 3##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[Kpassphrase "wpa2 mysecret"
root@SMILEplug:~# ip##[Kwpriv wdev0ap0 ciphersuite "wpa2 aes-ccmp"
root@SMILEplug:~# w##[Kiwconfig de##[K##[Kwe##[Kdev0ap0 commit
root@SMILEplug:~# iwconfig wdev0ap0 commit
root@SMILEplug:~# iwpriv wdev0ap0 wpawpa2mode 3
lo no private ioctls.
eth0 no private ioctls.
You can’t perform that action at this time.