Skip to content

Instantly share code, notes, and snippets.

View jcadam's full-sized avatar

Adam Jiang jcadam

  • Nvidia Corp.
  • Tokyo, Japan
View GitHub Profile
@jcadam
jcadam / l4t_r21.4_default_kernel_config
Created November 12, 2015 15:50
Default kernel config in L4T R21.4
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.10.40 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_ARM_DMA_USE_IOMMU=y
CONFIG_ARM_DMA_IOMMU_ALIGNMENT=8
CONFIG_HAVE_PWM=y
@jcadam
jcadam / test_bdb.cpp
Last active August 29, 2015 14:21
access berkeley db parallely
/*
* test_bdb.cpp
*
* access bdb with DB_THREAD (bad idea, according to
* https://docs.oracle.com/cd/E17076_04/html/api_reference/CXX/frame_main.html)
*
* g++ -o /tmp/test_bdb test_bdb.cpp -ldb_cxx -lboost_thread -lboost_system
*/
#include <db_cxx.h>
@jcadam
jcadam / xcompmgr-crunchbang
Created November 13, 2012 14:12
Script to set transparency
#!/bin/bash
# Openbox Pipe Menu for xcompmgr
# Written for CrunchBang Linux <http://crunchbang.org/projects/linux/>
# by Philip Newborough (aka corenominal) <mail@philipnewborough.co.uk>
# Set xcompmgr command options
#EXEC='xcompmgr -c -t-5 -l-5 -r4.2 -o.55' #basic
EXEC='xcompmgr -cCfF -t-5 -l-5 -r4.2 -o.55 -D6' #more effects
# Toggle compositing. Call with "myxcompmgr --startstop"
@jcadam
jcadam / tint2rc
Created November 11, 2012 15:16
My tint2 config
#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------
# For more information about tint2, see:
# http://code.google.com/p/tint2/wiki/Welcome
#
# For more config file examples, see:
# http://crunchbanglinux.org/forums/topic/3232/my-tint2-config/
#---------------------------------------------
# BACKGROUND AND BORDER
@jcadam
jcadam / conkyrc
Created November 11, 2012 15:14
My conkyrc
# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
@jcadam
jcadam / menu.xml
Created November 11, 2012 14:50
My openbox menu config
<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/ file:///usr/share/openbox/menu.xsd">
<menu id="root-menu" label="Openbox 3">
<item label="Run Program">
<action name="Execute">
<execute>
gmrun
</execute>
</action>
</item>
@jcadam
jcadam / autostart.sh
Created November 11, 2012 14:46
My openbox autostart
# Run the system-wide support stuff
#. $GLOBALAUTOSTART
# Programs to launch at startup
# =============================
# Set-up keyboard maps and sytem tray switcher
# tip - quickly toggle between keyboard maps by holding both shift keys!
#setxkbmap -option grp:shifts_toggle,grp_led:scroll gb,us,de,fr &
setxkbmap -option grp:shifts_toggle,grp_led:scroll jp,us &