This file contains 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/ruby | |
# | |
# Toggle timezones in i3blocks | |
# Author: Vivien Didelot <vivien.didelot@gmail.com> | |
# | |
# Fill the ZONES array and define a block like this: | |
# | |
# [timezone] | |
# command=THIS_SCRIPT | |
# interval=5 |
This file contains 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/sh | |
# Copyright (C) 2014 Julien Bonjean <julien@bonjean.info> | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains 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
diff --git a/i3-msg/main.c b/i3-msg/main.c | |
index 354e8af..a1af25c 100644 | |
--- a/i3-msg/main.c | |
+++ b/i3-msg/main.c | |
@@ -124,16 +124,18 @@ int main(int argc, char *argv[]) { | |
uint32_t message_type = I3_IPC_MESSAGE_TYPE_COMMAND; | |
char *payload = NULL; | |
bool quiet = false; | |
+ bool monitor = false; | |
This file contains 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
[openmw] | |
command=curl -s https://gist.githubusercontent.com/vivien/7535f85928558fffb11d/raw/openmw.rb | ruby | |
interval=3600 |
This file contains 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 | |
# use the provided interface, otherwise the first default device | |
if [[ -n $BLOCK_INSTANCE ]] | |
then | |
IF=$BLOCK_INSTANCE | |
else | |
IF=$( ip route | awk '/^default/ { print $5 ; exit }' ) | |
fi |
This file contains 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
From 87d6bfd5fe53c64ab2f3bb860484d741dc9b5572 Mon Sep 17 00:00:00 2001 | |
From: Vivien Didelot <vivien.didelot@savoirfairelinux.com> | |
Date: Wed, 14 Jan 2015 18:55:45 -0500 | |
Subject: [PATCH] net: dsa: review hwmon attributes visibility | |
Instead of setting a minimal mode for the temp_max sysfs attribute and | |
adding write permission in the is_visible function, use the | |
DEVICE_ATTR_RW macro to reduce boiler plate and remove write permission | |
if the set_temp_limit function is missing. |
This file contains 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
diff --git a/js/plugins.js b/js/plugins.js | |
index b282d13..839df4c 100644 | |
--- a/js/plugins.js | |
+++ b/js/plugins.js | |
@@ -21,6 +21,50 @@ var Plugin = function(name, contentForMessage) { | |
}; | |
}; | |
+var parseURL = function(url) { | |
+ var regexp = /(https?):\/\/(?:www\.)?([^\/\?#]+)(\/[^\?#]+)?(#|\?)?(.*)/; |
This file contains 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
diff --git a/js/plugins.js b/js/plugins.js | |
index 839df4c..b5559b8 100644 | |
--- a/js/plugins.js | |
+++ b/js/plugins.js | |
@@ -94,6 +94,44 @@ var UrlPlugin = function(name, urlCallback) { | |
}; | |
}; | |
+var urlHandlers = [{ | |
+ /* |
This file contains 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<?xml-stylesheet type="text/xsl" href="/webservices/catalog/xsl/searchRetrieveResponse.xsl"?> | |
<searchRetrieveResponse xmlns="http://www.loc.gov/zing/srw/" xmlns:oclcterms="http://purl.org/oclc/terms/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:diag="http://www.loc.gov/zing/srw/diagnostic/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<version>1.1</version> | |
<numberOfRecords>801</numberOfRecords> | |
<records> | |
<record> | |
<recordSchema>marcxml</recordSchema> | |
<recordPacking>xml</recordPacking> |
This file contains 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
# A tiny Ruby API for the AlloURL service. | |
# | |
# Author: Vivien 'v0n' Didelot <vivien.didelot@gmail.com> | |
require 'open-uri' | |
module AlloURL | |
module_function | |
# Retrieves the link encapsulated in the AlloURL +url+. |
OlderNewer