Skip to content

Instantly share code, notes, and snippets.

View nardev's full-sized avatar
:octocat:
Focusing

Vedran Alajbegovic nardev

:octocat:
Focusing
View GitHub Profile
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
@nardev
nardev / iButtonRW.ino
Created August 20, 2019 06:33 — forked from swiftgeek/iButtonRW.ino
RW1990 programmer, with arduino
// 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.
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
'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 August 28, 2017 17:28 — forked from dougalcampbell/NeoPixelTest.ino
Example of driving an Adafruit NeoPixel Ring with the Digispark Arduino-compatible board
#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 November 24, 2016 09:24 — forked from facelordgists/install imapsync on Debian.md
Install imapsync on Debian Wheezy x64 from scratch
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 June 10, 2016 20:48 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
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
@nardev
nardev / gist:4093811
Created November 17, 2012 06:29 — forked from padolsey/gist:527683
A short snippet for detecting versions of IE in JavaScript
// ----------------------------------------------------------
// 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) {}
@nardev
nardev / .vimrc
Last active September 8, 2015 10:28 — forked from JeffreyWay/.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