Skip to content

Instantly share code, notes, and snippets.

German Viscuso germanviscuso

Block or report user

Report or block germanviscuso

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
@germanviscuso
germanviscuso / ledctrl.cc
Last active Aug 29, 2015
AllJoyn ledctrl.cc - Control the led of the remote device running thin client (AJ_LedService)
View ledctrl.cc
/* ledctrl - Control the led of the remote device.*/
/******************************************************************************
* Copyright (c) 2013, 2014, AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
@germanviscuso
germanviscuso / rpi_boot_fix
Last active Aug 29, 2015
Fix for RPi: "Volume was not properly unmounted. Some data may be corrupt. Please run fsck."
View rpi_boot_fix
# dmesg | grep corrupt
[ 21.280705] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
# umount /boot
# git clone http://daniel-baumann.ch/git/software/dosfstools.git
# cd dosfstools
# make
cc -O2 -fomit-frame-pointer -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wextra -Wno-sign-compare -Wno-missing-field-initializers -Wmissing-prototypes -Wstrict-prototypes -g -c -o fatlabel.o src/fatlabel.c
.
@germanviscuso
germanviscuso / autothread
Last active Aug 29, 2015
Quickly launch Java background task (works on Android)
View autothread
(new Thread(new Runnable() {
public void run()
{
//CODE HERE RUNS IN BACKGROUND
}
})).start();
View Db4oSession.cs
using Db4objects.Db4o;
using Db4objects.Db4o.Linq;
using System.Collections.Generic;
using System.Configuration;
public class Db4oSession : IDisposable {
private IObjectContainer db;
public Db4oSession(IObjectContainer container) {
db = container;
View DB4OServer.cs
using Db4objects.Db4o;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Web;
public class DB4OServer {
IObjectServer _server;
public DB4OServer() {
View DB4O.cs
using Db4objects.Db4o;
using System.Linq;
using Db4objects.Db4o.Linq;
using System.Web;
using System.IO;
using System;
using System.Collections.Generic;
namespace NoSQL {
View MongoSession.cs
using Norm;
using Norm.Responses;
using Norm.Collections;
using Norm.Linq;
public class MongoSession {
private Mongo _server;
MongoQueryProvider _provider;
public MongoSession() {
@germanviscuso
germanviscuso / NdefConverter.java
Created Jan 11, 2012
NFC utility classes for Android
View NdefConverter.java
package android.stickynotes;
import android.nfc.NdefRecord;
public interface NdefConverter {
public NdefRecord asNdef();
}
View update_trackers.js
function update_trackers(params, context, done) {
// Available params are:
// params.thingID
// params.vendorThingID
// params.uri
// params.userID
// params.groupID
// params.values
// params.expected
View ConsoleInGame.cs
using UnityEngine;
using System;
using System.Collections.Generic;
/// <summary>
/// A console that displays the contents of Unity's debug log.
/// </summary>
/// <remarks>
/// Developed by Matthew Miner (www.matthewminer.com)
/// Forked by Joseph Cassano (jplc.ca) from Console to ConsoleInGame so the console can work from other scripts.
You can’t perform that action at this time.