Skip to content

Instantly share code, notes, and snippets.

View danzeeeman's full-sized avatar

Dan Moore danzeeeman

View GitHub Profile
Option 1 – From Startup
With the Galaxy S6 powered completely off, press and hold “Volume Up” + “Home” + “Power” buttons simultaneously.
When the Samsung logo appears, release the “Power” button, but continue to hold “Volume Up” and “Home“.
When the “Android system recovery” screen appears, release all buttons.
Use the “Volume Down” button to toggle the selection to “wipe data/factory reset“, then press “Power” to choose that selection.
Use the “Volume Down” button to toggle the selection to “Yes — delete all user data“, then press “Power” to choose that selection.
Wait for the reset to finish. You will eventually be prompted to “Reboot system now“. Press “Power” to choose that selection.
fboSettings.numSamples = 8;
fboSettings.wrapModeHorizontal = GL_CLAMP_TO_EDGE;
fboSettings.wrapModeVertical = GL_CLAMP_TO_EDGE;
fboSettings.internalformat = GL_RGBA;
fboSettings.depthStencilAsTexture = false;
fboSettings.height = 1024;
fboSettings.width = 1024;
fboSettings.useStencil = false;
fboSettings.numColorbuffers = 8;
fboSettings.useDepth = false;
brew install libtecla
==> Downloading http://www.astro.caltech.edu/~mcs/tecla/libtecla-1.6.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/libtecla-1.6.2.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libtecla/1.6.2 --mandir=/usr/local/Cellar/libtecla/1.6.2/share/man
==> make install
sed -n 's/^[ ]*\([_a-zA-Z0-9]*\)[ ]*;.*/+e \1/p' libtecla.map >libtecla.map.opt
clang -o libtecla.1.6.2.dylib -dynamiclib -flat_namespace -undefined suppress -compatibility_version 1.6 -current_version 1.6.2 -install_name /usr/local/Cellar/libtecla/1.6.2/lib/libtecla.1.6.2.dylib normal_obj/getline.o normal_obj/keytab.o normal_obj/freelist.o normal_obj/strngmem.o normal_obj/hash.o normal_obj/history.o normal_obj/direader.o normal_obj/homedir.o normal_obj/pathutil.o normal_obj/expand.o normal_obj/stringrp.o normal_obj/cplfile.o normal_obj/cplmatch.o normal_obj/pcache.o normal_obj/version.o normal_obj/chrqueue.o normal_obj/ioutil.o normal_obj/errmsg.o libgcc.a
clang: error: no such file or directory: 'libgcc.a'
make[1]: *
@danzeeeman
danzeeeman / gist:6779737
Created October 1, 2013 14:52
Like all great government ideas...they are slow and unresponsive.
danthemans-MacBook-Air:src dantheman$ ping healthcare.gov
PING healthcare.gov (23.8.119.205): 56 data bytes
64 bytes from 23.8.119.205: icmp_seq=0 ttl=60 time=890.033 ms
64 bytes from 23.8.119.205: icmp_seq=1 ttl=60 time=844.003 ms
64 bytes from 23.8.119.205: icmp_seq=2 ttl=60 time=514.734 ms
Request timeout for icmp_seq 3
64 bytes from 23.8.119.205: icmp_seq=3 ttl=60 time=1017.533 ms
64 bytes from 23.8.119.205: icmp_seq=4 ttl=60 time=1018.370 ms
^C
--- healthcare.gov ping statistics ---
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
if(!hasFocus) {
Intent closeDialog = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
sendBroadcast(closeDialog);
}
}
this.b = new WebSocket("https://www.google.com", "", this.c);
this.b.a(new WebSocket.Listener()
{
public void onConnected() {
if (ApplicationChannel.b(ApplicationChannel.this) != 0L) {
ApplicationChannel.a(ApplicationChannel.this, SystemClock.uptimeMillis());
ApplicationChannel.d(ApplicationChannel.this).postDelayed(ApplicationChannel.c(ApplicationChannel.this), 1000L);
}
ApplicationChannel.d(ApplicationChannel.this).post(new Runnable()
{
n file included from /usr/include/sched.h:43:0,
from /usr/include/pthread.h:25,
from /opt/vc/include/interface/vcos/pthreads/vcos_platform.h:47,
from /opt/vc/include/interface/vcos/vcos.h:116,
from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
from /opt/vc/include/bcm_host.h:46,
from ../../../libs/openFrameworks/utils/ofConstants.h:160,
from ../../../libs/openFrameworks/ofMain.h:5,
from src/RFID.h:3,
from src/RFID.cpp:1:
@danzeeeman
danzeeeman / gist:6214320
Created August 12, 2013 19:36
ffmpeg Raspberry Pi
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[rawvideo @ 0x1b28440] Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from '/home/pi/openFrameworks/apps/myApps/omxCameraApp/bin/data/ofxvrpipe0':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: rawvideo, rgb24, 1280x720, 30 tbr, 30 tbn, 30 tbc
Incompatible pixel format 'rgb24' for codec 'mpeg4', auto-selecting format 'yuv420p'
[buffer @ 0x1b28e20] w:1280 h:720 pixfmt:rgb24
[avsink @ 0x1b289a0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0x1b323a0] w:1280 h:720 fmt:rgb24 -> w:1280 h:720 fmt:yuv420p flags:0x4
03-22 22:34:22.875: I/LULZ HAXOR(28153): action 6 0.266667
03-22 22:34:22.875: I/LULZ HAXOR(28153): action 2 0.266667
03-22 22:34:22.875: I/LULZ HAXOR(28153): action 2 0.266667
03-22 22:34:22.875: I/LULZ HAXOR(28153): action 5 0.333333
03-22 22:34:22.885: I/LULZ HAXOR(28153): action 6 0.333333
03-22 22:34:22.896: I/LULZ HAXOR(28153): action 2 0.200000
03-22 22:34:22.896: I/LULZ HAXOR(28153): action 1 0.200000
03-22 22:34:22.976: I/LULZ HAXOR(28153): action 0 0.333333
03-22 22:34:22.996: I/LULZ HAXOR(28153): action 2 0.333333
03-22 22:34:23.016: I/LULZ HAXOR(28153): action 2 0.333333