Skip to content

Instantly share code, notes, and snippets.

View snj33v's full-sized avatar
🏠
Working from home

Sanjeev snj33v

🏠
Working from home
  • Tamil Nadu, India
View GitHub Profile
@snj33v
snj33v / .tern-project
Last active January 25, 2018 13:18
tern-project config for most of js projects
{
"ecmaVersion": 6,
"libs": [
"browser",
"ecmascript"
],
"plugins": {
"es_modules": {},
"node": {},
"webpack": {},

Keybase proof

I hereby claim:

  • I am snj33v on github.
  • I am smdrz (https://keybase.io/smdrz) on keybase.
  • I have a public key whose fingerprint is CEFF F4A7 B4BB 90EC 6CB7 4B46 E40B 6145 8C8F 6603

To claim this, I am signing this object:

/**
* dualshock4.h - DualShock 4 USB HID Report Helper
*
* NOTE: Do not use this for production purposes, it's far from complete and is my
* initial attempt at working with USB HID. If it doesn't work, too bad.
* (Hoping to put this into content/browser/gamepad someday. If I ever finish.)
**
* Copyright (c) 2014 Sangwhan Moon
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
src/main.cpp
src/ofApp.cpp
src/ofApp.h
../../../libs/openssl/include/openssl/aes.h
../../../libs/openssl/include/openssl/dh.h
../../../libs/openssl/include/openssl/x509v3.h
../../../libs/openssl/include/openssl/txt_db.h
../../../libs/openssl/include/openssl/ebcdic.h
../../../libs/openssl/include/openssl/krb5_asn.h

How to install cGit on Nginx (Ubuntu server)

Step-by-step installtion of cGit on nginx without funky rewrite rules.

Pre-requisites

This is for :

@snj33v
snj33v / gtkmb1
Last active August 29, 2015 14:02
example using Gtk.MenuButton()
# !/usr/bin/python3
__author__ = 'sam'
from gi.repository import Gtk
class Window(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self)
self.set_default_size(400, 200)
self.set_default_geometry(400, 200)
@snj33v
snj33v / Xorg.8.log
Created November 10, 2013 15:05
Xorg log
[ 448.212]
X.Org X Server 1.14.3
Release Date: 2013-09-12
[ 448.212] X Protocol Version 11, Revision 0
[ 448.212] Build Operating System: Linux 3.10-2-amd64 x86_64 Debian
[ 448.212] Current Operating System: Linux dark 3.11-1-amd64 #1 SMP Debian 3.11.6-2 (2013-11-01) x86_64
[ 448.212] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.11-1-amd64 root=UUID=2439640f-044d-4e7f-98e0-279ed357c855 ro quiet splash
[ 448.212] Build Date: 05 October 2013 02:04:26PM
[ 448.212] xorg-server 2:1.14.3-4 (Julien Cristau <jcristau@debian.org>)
[ 448.212] Current version of pixman: 0.30.2
@snj33v
snj33v / gist:7399239
Created November 10, 2013 15:03
Kernel log
Nov 10 13:32:22 dark kernel: [ 899.672183] cfg80211: Calling CRDA to update world regulatory domain
Nov 10 13:32:22 dark kernel: [ 899.675661] cfg80211: World regulatory domain updated:
Nov 10 13:32:22 dark kernel: [ 899.675664] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Nov 10 13:32:22 dark kernel: [ 899.675665] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov 10 13:32:22 dark kernel: [ 899.675666] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov 10 13:32:22 dark kernel: [ 899.675667] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Nov 10 13:32:22 dark kernel: [ 899.675668] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov 10 13:32:22 dark kernel: [ 899.675669] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov 10 13:32:26 dark kernel: [ 902.987295] wlan0: authenticate with 00:1a:95:76:17:4c
Nov 10 13:32:26 dark kernel: [ 902.989835
void testApp::setup(){
ofSetFrameRate(30);
ofBackground(255,255,255);
ofEnableSmoothing();
}