Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Focusing

nardev nardev

:octocat:
Focusing
View GitHub Profile
@nardev
nardev / iButtonRW.ino
Created Aug 20, 2019 — forked from swiftgeek/iButtonRW.ino
RW1990 programmer, with arduino
View iButtonRW.ino
// Based on https://danman.eu/blog/cloning-ibutton-using-rw1990-and-avr/
// and: http://elimelecsarduinoprojects.blogspot.com/2013/06/read-dallas-ibutton-arduino.html
// By Swift Geek 28-08-2015
// TODO: danger to atmega328! Use OpenCollector logic!
// Used 4.8kΩ Pull-up and 3.1 Vcc for arduino/pull-up
#include <OneWire.h>
OneWire ibutton (8); // I button connected on PIN 2.
View debian 9 stable nvidia from repo
nvidia-xconfig --query-gpu-info
Number of GPUs: 1
GPU #0:
Name : NVS 5400M
UUID : GPU-b338de29-91e4-4d38-69b9-20d7c8423251
PCI BusID : PCI:1:0:0
Number of Display Devices: 0
View Eagle cad adjust all parts name font size
display torig borig; # Display the top and bottom origins
group all; # Group everything
smash (C>0 0); # Smash everything in the group
display none tname bname tval bval; # OPTIONAL: limit changes to
names and values
group all; # Group everything including smashed texts.
change font vector (C>0 0); # Change the font to a vector font
change size 50mil (C>0 0); # Change the font size
change ratio 15 (C>0 0); # Change the width:height ratio
View nodejs compress and copy
'use strict';
const fs = require('fs');
console.log('gzip scripts and files starting');
console.log("==============================================");
// gzip/compress js scripts and place them in /data directory
// http://nodejs.org/api.html#_child_processes
var sys = require('sys')
@nardev
nardev / NeoPixelTest.ino
Created Aug 28, 2017 — forked from dougalcampbell/NeoPixelTest.ino
Example of driving an Adafruit NeoPixel Ring with the Digispark Arduino-compatible board
View NeoPixelTest.ino
#include <Adafruit_NeoPixel.h>
#define PIN 1
#define STRIPSIZE 16
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
@nardev
nardev / install imapsync on Debian.md
Created Nov 24, 2016 — forked from facelordgists/install imapsync on Debian.md
Install imapsync on Debian Wheezy x64 from scratch
View install imapsync on Debian.md
apt-get update && apt-get upgrade

sudo apt-get install libdate-manip-perl libterm-readkey-perl libterm-readkey-perl libdigest-hmac-perl libdigest-hmac-perl libdate-manip-perl libmail-imapclient-perl makepasswd rcs perl-doc git

cd /tmp

git clone git://github.com/imapsync/imapsync.git

cd imapsync
@nardev
nardev / gist:efdb2a88a99fd38edae9dbfeb978abc1
Created Jun 10, 2016 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
View gist:efdb2a88a99fd38edae9dbfeb978abc1
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
View .vimrc
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@nardev
nardev / gist:4093811
Created Nov 17, 2012 — forked from padolsey/gist:527683
A short snippet for detecting versions of IE in JavaScript
View gist:4093811
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
You can’t perform that action at this time.