Skip to content

Instantly share code, notes, and snippets.

View 19317362's full-sized avatar

david.wang 19317362

View GitHub Profile
From ce43c6180ee1fdc0a1c4a92e984f8ebf418c78db Mon Sep 17 00:00:00 2001
From: sooorajjj <[email protected]>
Date: Tue, 24 Jan 2017 09:42:14 +0530
Subject: [PATCH] jack-server: change default port && Increase Java Heap Size
my personal configuration for arch 8gig ram machine
Change-Id: I6c6dfed3e2deb2217323790f081153f3d2e12d83
---
tools/jack | 4 ++--
@19317362
19317362 / Makefile
Created April 22, 2019 10:36 — forked from sehe/Makefile
Boost shared memory lockfree circular buffer queue
all:consumer producer
CPPFLAGS+=-std=c++03 -Wall -pedantic
CPPFLAGS+=-g -O0
CPPFLAGS+=-isystem ~/custom/boost/
LDFLAGS+=-L ~/custom/boost/stage/lib/ -Wl,-rpath,/home/sehe/custom/boost/stage/lib
LDFLAGS+=-lboost_system -lrt -lpthread
%:%.cpp
@19317362
19317362 / VultrDataCentersPingTester.bat
Created June 9, 2019 13:50 — forked from jingyulong/VultrDataCentersPingTester.bat
From Local to Vultr DataCenters Ping Tester
@echo off
echo ========================================
echo From Local to Vultr DataCenters Ping Tester
echo ========================================
pause
echo=
echo 01 Tokyo
ping hnd-jp-ping.vultr.com -n 10
echo=
echo =============================
@19317362
19317362 / ipc.cpp
Created June 29, 2019 21:22 — forked from wyyqyl/ipc.cpp
interprocess communication with boost::interprocess
#include <iostream>
#include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/interprocess/ipc/message_queue.hpp>
using namespace boost::interprocess;
const char kSharedMemory[] =
"asdv2_adblock_shared_object_{5095C5F0-D82D-4442-9A62-8769871F42D1}";
const char kMessageQueue[] =
"asdv2_adblock_shared_queue_{5095C5F0-D82D-4442-9A62-8769871F42D1}";
@19317362
19317362 / andro_info.sh
Created July 30, 2019 21:45 — forked from konfou/andro_info.sh
Android Device Specifications
#! /bin/bash
if ! type adb; then
echo "adb not found"
echo "check PATH"
else
echo "============================"
echo "Android Device Specificatios"
echo "============================"
adb wait-\for-device
echo "> Manufacturer"
@19317362
19317362 / instructions.md
Created September 12, 2019 01:35 — forked from creationix/instructions.md
Installing Ubuntu Gnome 14.10 on Late 2013 Retina Macbook Pro 13"

Installing Ubuntu on a Mac

Desktop linux has been late to the show with high dpi support, but gnome seems to be leading the pack. I decided to try again. It's worked fairly well out of the box. Here are my steps if anyone wishes to repeat.

Booting into Ubuntu Live Image

@19317362
19317362 / tool.py
Created September 14, 2019 09:06 — forked from nicky-zs/tool.py
A modification to python's standard library: json/tool.py, which makes it better print JSON containing non-ascii code.
r"""Command-line tool to validate and pretty-print JSON
Usage::
$ echo '{"json":"obj"}' | python -m json.tool
{
"json": "obj"
}
$ echo '{ 1.2:3.4}' | python -m json.tool
Expecting property name: line 1 column 2 (char 2)
@19317362
19317362 / how-to-install-latest-gcc-on-ubuntu-lts.txt
Created February 11, 2020 09:14 — forked from application2000/how-to-install-latest-gcc-on-ubuntu-lts.txt
How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
These commands are based on a askubuntu answer http://askubuntu.com/a/581497
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
@19317362
19317362 / README.md
Created June 8, 2020 18:42 — forked from chuyik/README.md
macOS 给 Git(Github) 设置代理(HTTP/SSH)
@19317362
19317362 / Upscale_yuv.c
Created August 6, 2020 05:54 — forked from abhishekmurthy/Upscale_yuv.c
Upscaling a YUV image using Bilinear or Nearest scale algorithms
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/stat.h>
typedef unsigned char uint8_t;
/**
* @param src input nv12 raw data array