Skip to content

Instantly share code, notes, and snippets.

View asound.conf
# actual hardware device descriptions
pcm.rawcard {
type hw
card 0
device 0
hint {
show on
description "Direct Intel audio driver access"
View xaudio.log
002c:fixme:winediag:__wine_start_process Wine Staging 5.9 is a testing version containing experimental patches.
002c:fixme:winediag:__wine_start_process Please mention your exact version when filing bug reports on
0034:err:menubuilder:init_xdg error looking up the desktop directory
00c4:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
00c4:fixme:imm:ImmReleaseContext (0000000000010058, 000000000A52BF40): stub
00c4:fixme:wbemprox:client_security_SetBlanket 00007F377C2F2720, 000000000A54AF30, 10, 0, (null), 3, 3, 0000000000000000, 0x00000000
00c4:fixme:wbemprox:client_security_Release 00007F377C2F2720
00c4:fixme:rawinput:RegisterRawInputDevices Unhandled flags 0x100 for device 0.
00c4:fixme:service:I_ScRegisterDeviceNotification Notification filters are not yet implemented.
00c4:fixme:rawinput:RegisterRawInputDevices Unhandled flags 0x100 for device 0.
View gist:f3173d4425d7a3461dcd6b71b356ec0f
JNIEXPORT jint JNICALL Java_io_netty_channel_android_JNI_bind(JNIEnv *env, jclass type, jint a1, jint a2, jint a3, jint a4, jint port, jint fd) {
struct sockaddr* address;
socklen_t size;
if (a1 == 0 && a2 == 0 && a3 == 0xff) {
size = sizeof(struct sockaddr_in);
struct sockaddr_in* ip4 = alloca(size);
*ip4 = (struct sockaddr_in) {
Alexander-- / gist:43086ea7764d9fc847106b7a4cec0d64
Created Sep 19, 2017
Comprehensive list of methods for Proguard's -assumenosideeffects option
View gist:43086ea7764d9fc847106b7a4cec0d64
# Remove - Buffer method calls. Remove all invocations of Buffer
# methods without side effects whose return values are not used.
-assumenosideeffects public class java.** extends java.nio.Buffer {
public int position();
public int arrayOffset();
public int capacity();
public int limit();
public int length();
public boolean isReadOnly();
public boolean hasArray();
Alexander-- /
Created Sep 7, 2017 — forked from zach-klippenstein/
The keystore password on Java keystore files is utterly pointless. You can reset it without knowing it, as shown by this code. Note that private keys are still secure, as far as I know. The JKS implementation is copyright Casey Marshall (, and the original source is available at I've in…
import java.util.*;
public class ChangePassword
private final static JKS j = new JKS();
public static void main(String[] args) throws Exception
View gist:80d263643d936f88ae4f
@Schema(className = "ExampleSchema", dbName = "example.db", dbVersion = 1)
@Provider(authority = ExampleContract.AUTHORITY, schemaClass = "ExampleSchema", name = "ExampleProviderProto")
public interface ExampleContract {
String AUTHORITY = "com.example.provider";
interface Developments {
String TABLE_NAME = "developments";
@URI(altNotify = {NearbyView.CONTENT_URI, DevelopmentView.CONTENT_URI})
View gist:f6555cb40aa4a6c65de8
#include "jni.h"
#include <android/log.h>
#include <stddef.h>
#include <fcntl.h> // splice ?
#include <sys/sendfile.h> // sendfile ?
#include <sys/stat.h> // fstat ?
#include <unistd.h> // seek ?
#include <stdio.h> // sprintf
#define LOG_TAG "fdshare-native"
Alexander-- / gist:540bde3aa528deefb6d5
Created Feb 27, 2015
Layout Inflater for non-ActionBarActivity material theming (cudos to
View gist:540bde3aa528deefb6d5
import android.content.Context;
import android.content.ContextWrapper;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.annotation.TargetApi;
import android.os.Build;
You can’t perform that action at this time.