Skip to content

Instantly share code, notes, and snippets.

@BeyondVincent
BeyondVincent / gitlab-docker-compose.yml
Created September 17, 2016 15:30
gitlab-docker-compose
version: '2'
services:
redis:
restart: always
image: sameersbn/redis:latest
command:
- --loglevel warning
volumes:
- /Users/BeyondVincent/docker/gitlab/redis:/var/lib/redis:Z
@BeyondVincent
BeyondVincent / pname.c
Created September 13, 2016 05:09 — forked from deltheil/pname.c
Android Native API (JNI): get the device name
#include <stdio.h>
#include <string.h>
#include <sys/system_properties.h>
/* Get device name
--
1/ Compile with the Android NDK Toolchain:
arm-linux-androideabi-gcc -static pname.c -o pname
2/ Transfer on device:
//
// UIView+DEFrameAdditions.h
//
// Copyright (c) 2011-2013 Double Encore, Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the distribution. Neither the name of the Double Encore Inc. nor the names of its
// contributors may be used to endorse or promote products derived from this software without specific prior written permission.