Skip to content

Instantly share code, notes, and snippets.

source 'https://rubygems.org'
ruby '1.9.3'
gem 'rails', '3.2.13'
#
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
gem 'koala'
@smartperson
smartperson / kitchen_sink.css
Created July 16, 2014 03:52
Generated css when the scss file contains @import "foundation_and_overrides"
/* small displays */
@media only screen {
.show-for-small-only, .show-for-small-up, .show-for-small, .show-for-small-down,
.hide-for-medium-only, .hide-for-medium-up, .hide-for-medium, .show-for-medium-down,
.hide-for-large-only, .hide-for-large-up, .hide-for-large, .show-for-large-down,
.hide-for-xlarge-only, .hide-for-xlarge-up, .hide-for-xlarge, .show-for-xlarge-down,
.hide-for-xxlarge-only, .hide-for-xxlarge-up, .hide-for-xxlarge,
.show-for-xxlarge-down {
display: inherit !important;
}
{
{I have|I’ve} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting
article like yours. {It’s|It is} pretty worth enough for me.
{In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made
good content as you did, the {internet|net|web} will be {much more|a lot more} useful than ever before.|
I {couldn’t|could not} {resist|refrain from} commenting.
{Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I’ll} {right away|immediately} {take hold
of|grab|clutch|grasp|seize|snatch} your {rss|rss feed}
as I {can not|can’t} {in finding|find|to find}
@smartperson
smartperson / mbot_serial.notes
Created June 13, 2017 18:04
mbot_serial.notes
tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} -p{build.mcu} -c{upload.protocol} "-P{serial.port}" -b{upload.speed} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i"
@smartperson
smartperson / com.varunmehta.ttymbot.plist
Created June 15, 2017 03:45
/Library/LaunchDaemons/com.varunmehta.ttymbot.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST
1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.varunmehta.ttymbot</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/scripts/ttymbot.sh</string>
@smartperson
smartperson / ttymbot.sh
Created June 15, 2017 03:46
/usr/local/scripts/ttymbot.sh
#!
ln -s /dev/tty.wch\ ch341\ USB\=\>RS232\ 1d10 /dev/tty.mbot
@smartperson
smartperson / meter.ps
Created August 28, 2017 11:26
postscript file to generate custom labels for analog meters
%!Postscript File
% This file generates meter faces.
% Copyright (c) 2004, Jennifer Elaan
% Circuit Corner 2004.
% Free for any use so long as this copyright notice
% remains intact.
% ------------------------------------------------------
% These are unit definitions. They define conversion factors for
% common units like mils, inches, millimeters, etc.
@smartperson
smartperson / sensible_character_map.md
Last active September 3, 2017 21:28
LCD character codes read from Logitech Z680 control pod
Letter Code (hex) Code (binary stripped) Code (rev. binary) Code (rev. hex)
D 20 20 0010 0010 0100 0100 44
E A0 20 1010 0010 0100 0101 45
I 90 20 1001 0010 0100 1001 49
N 70 20 0111 0010 0100 1110 4E
O F0 20 1111 0010 0100 1111 4F
a 80 60 1000 0110 0110 0001 61
c C0 60 1100 0110 0110 0011 63
e A0 60 1010 0110 0110 0101 65

Billing address

Smart Ass

666

Atlanta, GA 30331

Additional information

@smartperson
smartperson / virt_machine.xml
Created February 21, 2018 04:02
My libvirtd xml setup for my computer
<domain type='kvm'>
<name>generic-2</name>
<uuid>f7050b8f-4e77-4eb4-b1bf-f00aaefa6726</uuid>
<memory unit='KiB'>8388608</memory>
<currentMemory unit='KiB'>8388608</currentMemory>
<memoryBacking>
<hugepages/>
</memoryBacking>
<vcpu placement='static'>8</vcpu>
<os>