This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conky.config = { | |
color1 = 'd70751', -- Debian Red | |
--set to = true if you want Conky to be forked in the background | |
background = true, | |
own_window = true, | |
own_window_type = 'desktop', | |
own_window_transparent = false, | |
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 [ULR]" | |
exit 1 | |
fi | |
url=$1 | |
if [[ $url != http?(s)://* ]]; then | |
url="http://$url" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function number_format(number, decimals, dec_point, thousands_sep) { | |
// http://kevin.vanzonneveld.net | |
// + original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) | |
// + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) | |
// + bugfix by: Michael White (http://getsprink.com) | |
// + bugfix by: Benjamin Lupton | |
// + bugfix by: Allan Jensen (http://www.winternet.no) | |
// + revised by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) | |
// + bugfix by: Howard Yeend | |
// + revised by: Luke Smith (http://lucassmith.name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( isset($_GET['action']) && !empty($_GET['action']) && $_GET['action'] == 'get_time' ) { | |
header('Content-type: application/json'); | |
echo json_encode ( | |
array ( | |
'year' => date('Y'), | |
'month' => date('m'), | |
'day' => date('d'), | |
'hour' => date('h'), | |
'minute' => date('i'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Simple Ajax Clock</title> | |
<style type="text/css"> | |
body { | |
margin: 0; | |
padding: 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- original/etc/init.d/newrelic-daemon 2015-11-07 18:52:55.441693757 +0200 | |
+++ edited/etc/init.d/newrelic-daemon 2015-11-07 20:13:17.994378592 +0200 | |
@@ -16,6 +16,7 @@ | |
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin | |
LABEL=newrelic-daemon | |
NAME=newrelic-daemon | |
+USER=newrelic-php | |
DESC="New Relic Daemon" | |
id=`id -u 2> /dev/null` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************************* | |
* Filename: clock.c | |
* | |
* Original Author: JRV31 (http://www.instructables.com/member/JRV31/) | |
* | |
* A natural language clock program for the RaspberryPi. | |
* | |
* Compile with the command: | |
* gcc -o clock clock.c -lncurses | |
* |