Skip to content

Instantly share code, notes, and snippets.

@tpruvot
tpruvot / local_manifest.xml
Created August 10, 2011 02:47
local_manifest.xml for omap merge test
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- This file overrides default manifest, to place in .repo folder -->
<!-- ------------------------------------------------------------------------------------------------
Check sample device http://www.omapzoom.org/?p=device/ti/blaze.git;a=blob;f=blaze.mk;hb=gingerbread
<remote name="korg"
_ie_mismatch.patch
/src/common/wpa_common.c
+++ b/src/common/wpa_common.c
@@ -811,6 +811,31 @@ const char * wpa_key_mgmt_txt(int key_mg
}
+static void wpa_fixup_wpa_ie_rsn(u8 *assoc_ie, const u8 *wpa_msg_ie,
+ size_t rsn_ie_len)
+{
@tpruvot
tpruvot / local_manifest.xml
Created September 11, 2011 21:00
defy 2.3.4 local manifest
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- This file overrides default manifest, to place in .repo folder -->
<!--
<remote name="korg"
fetch="http://android.git.kernel.org/"
review="review.source.android.com" />
@tpruvot
tpruvot / default.xml
Created November 15, 2011 17:42
ICS master jordan manifest
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="aosp"
fetch="https://android.googlesource.com/" />
<remote name="github"
fetch="https://github.com/" />
<default revision="master"
remote="aosp"
sync-j="4" />
diff --git a/profiles/2nd-init/ueventd.rc b/profiles/2nd-init/ueventd.rc
index cae96b5..3785a5f 100644
--- a/profiles/2nd-init/ueventd.rc
+++ b/profiles/2nd-init/ueventd.rc
@@ -91,6 +91,8 @@
# bluetooth dun
/dev/rfcomm0 0600 system system
+/dev/graphics/fb0 0660 media graphics
+
@tpruvot
tpruvot / gist:2982091
Created June 24, 2012 06:52
failing shader
//----------------------------------------------------------------------------------
// File: omxal/al_camera_3d/assets/tex_rect_ext.frag
// SDK Version: v10.00
// Email: tegradev@nvidia.com
// Site: http://developer.nvidia.com/
//
// Copyright (c) 2007-2012, NVIDIA CORPORATION. All rights reserved.
//
// TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THIS SOFTWARE IS PROVIDED
// *AS IS* AND NVIDIA AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES, EITHER EXPRESS
@tpruvot
tpruvot / UAC Batch
Created November 28, 2014 07:10
UAC Batch Header to request Admin permission
@echo off
:: BatchGetAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
@tpruvot
tpruvot / Pkgfile
Last active August 29, 2015 14:10
cpuminer-multi crux source package
# Description: cryptocurrency cpu miner (multi algos)
# URL: http://github.com/tpruvot/cpuminer-multi
# Maintainer: Tanguy Pruvot tpruvot@github
name=cpuminer-multi
version=1.0.8
release=1
source=(https://github.com/tpruvot/cpuminer-multi/archive/v$version-multi.tar.gz)
extracflags="-march=native -DUSE_ASM"
@tpruvot
tpruvot / phpwallet
Last active August 29, 2015 14:14
PHP CLI Wrapper for Linux Wallets
#!/usr/bin/env php
<?php
/**
* This Script allow to convert json to human readable format
* Used with "sums" command, it also show amounts in BTC and EUR/USD
*/
// owner of the wallet (empty for current user)
$user = '';
@tpruvot
tpruvot / blocknotifybridge.go
Created February 20, 2016 06:22 — forked from davecgh/blocknotifybridge.go
Naive bridge to listen for blockconnected notifications and invoke an executable.
// Copyright (c) 2016 The btcsuite developers
// Copyright (c) 2015-2016 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package main
import (
"io/ioutil"
"log"