Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
### BEGIN INIT INFO
# Provides: node-red
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop the node-red server
### END INIT INFO
# Can be downloaded and installed in one go by using this command
#!/bin/bash
#
# script which reads and outputs DS18S20 temperature reading
# assuming:
# modules w1-gpio and w1-therm loaded into kernel
#
# example - if your DS18S20 id is 28-000001b451d9, then
# to get it's temperature reading in Celsius use:
# DS18S20 28-000001b451d9
#
@VaclavSynacek
VaclavSynacek / xively
Last active August 29, 2015 13:55
Simple script to upload one value to one channel on http://xively.com using only standard unix command line tools. More detaild description at http://vaclav.synacek.com/blog/2014/02/02/xively-data-logging-the-unix-way/
#!/bin/bash
#
# simple script to upload one value to one channel on xively.com
#
# exaple to upload value "23.4" to channel "temperature" use:
# xively temperature 23.4
#
# example to upload value "runnig" to channel "status" use escaping:
# xively status \"running\"
#
@wilk
wilk / Ruby Notepad Bookmarklet
Last active February 16, 2023 19:49 — forked from jakeonrails/Ruby Notepad Bookmarklet
Javascript in-browser editor with CTRL+SHIFT+Y shortcut to execute the content. Just put it in your address bar and press enter. It works only on Chrome.
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/javascript");addEventListener('keydown',function(evt){if(evt.ctrlKey && evt.shiftKey && evt.keyCode==89) eval(e.getSession().getValue());});</script>
@agusmu
agusmu / style.css
Created July 10, 2013 00:46
WooCommerce - One Column Checkout
/* one column checkout page */
.woocommerce #customer_details.col2-set .col-1, .woocommerce-page #customer_details.col2-set .col-1,
.woocommerce #customer_details.col2-set .col-2, .woocommerce-page #customer_details.col2-set .col-2 {
clear: both;
float: none !important;
width: 100% !important;
margin-right:0 !important;
text-align: left;
padding-bottom: 20px;
}