Skip to content

Instantly share code, notes, and snippets.

server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
import std;
sub vcl_deliver {
if (server.ip ~ req.http.foo) {}
@gquintard
gquintard / gist:6933573
Created October 11, 2013 12:05
Small patch for siege
--- utils/bombardment.in.old 2013-10-11 13:57:19.290059746 +0200
+++ utils/bombardment.in 2013-10-11 14:01:19.300384058 +0200
@@ -89,16 +89,14 @@
currentcl=$startcl # set running count of clients to inital value
-i=0
-j=1
-while [ $numruns -gt $i ]
+i=1
From 2fc458ab95b2331c4f6551f8d78e186fe9ff4a6f Mon Sep 17 00:00:00 2001
From: Guillaume Quintard <guillaume.quintard@gmail.com>
Date: Mon, 6 May 2013 23:08:27 +0200
Subject: [PATCH] correct naming, and fix playlist caching in album view
---
src/player.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/player.js b/src/player.js
let tmp = this.currentTrack.copy();
if(this.playlist.iter_next(tmp)
this.nextBtn.set_sensitive(true);
else
this.nextBtn.set_sensitive(false);
tmp = this.currentTrack.copy();
if(this.playlist.iter_previous(tmp)
this.prevBtn.set_sensitive(true);
else
@gquintard
gquintard / gist:5483460
Created April 29, 2013 18:03
use a simpler updateModel function in the album view
From 9666e0cccb4b395a9370ada9457f222bed6eb970 Mon Sep 17 00:00:00 2001
From: Guillaume Quintard <guillaume.quintard@gmail.com>
Date: Mon, 29 Apr 2013 20:02:30 +0200
Subject: [PATCH] use a simpler updateModel function in the album view
---
src/widgets.js | 54 +++++++++++++++++++++++++++---------------------------
1 file changed, 27 insertions(+), 27 deletions(-)
diff --git a/src/widgets.js b/src/widgets.js
JS ERROR: !!! Exception in callback for signal: playlist-item-changed
JS ERROR: !!! message = '"undefined is not a function"'
JS ERROR: !!! fileName = '"/home/shivan/boxon/installed/share/gnome-music/player.js"'
JS ERROR: !!! lineNumber = '437'
JS ERROR: !!! stack = '"Player<._updatePositionCallback@/home/shivan/boxon/installed/share/gnome-music/player.js:437
wrapper@/usr/share/gjs-1.0/lang.js:213
AlbumWidget<.updateModel@/home/shivan/boxon/installed/share/gnome-music/widgets.js:207
wrapper@/usr/share/gjs-1.0/lang.js:213
_emit@/usr/share/gjs-1.0/signals.js:124
Player<.load@/home/shivan/boxon/installed/share/gnome-music/player.js:129
JS LOG: onProgressScaleChangeValue 271.7746478873239
JS LOG: onProgressScaleChangeValue 271.7746478873239
JS ERROR: !!! Exception was: ReferenceError: Gst is not defined
JS ERROR: !!! message = '"Gst is not defined"'
JS ERROR: !!! fileName = '"/home/shivan/boxon/installed/share/gnome-music/widgets.js"'
JS ERROR: !!! lineNumber = '211'
JS ERROR: !!! stack = '"AlbumWidget<.updateModel@/home/shivan/boxon/installed/share/gnome-music/widgets.js:211
wrapper@/usr/share/gjs-1.0/lang.js:213
AlbumWidget<.update/<@/home/shivan/boxon/installed/share/gnome-music/widgets.js:188
_emit@/usr/share/gjs-1.0/signals.js:124
From 14345b4af1568511e532708cb29eddc0da762905 Mon Sep 17 00:00:00 2001
From: Guillaume Quintard <guillaume.quintard@gmail.com>
Date: Tue, 23 Apr 2013 00:55:18 +0200
Subject: [PATCH] Use models as playlists
this is a proof-of-concept, using the listStore of the Album view as a
playlist if one item is clicked.
Various enhacements can be made (embedding model/iter in one object,
warning that the song as been paused...) and the theory remains open to
discussion
From 7fe8db44b847b635d876c83b1a9629e77874ad6a Mon Sep 17 00:00:00 2001
From: Guillaume Quintard <guillaume.quintard@gmail.com>
Date: Tue, 23 Apr 2013 01:45:34 +0200
Subject: [PATCH 2/2] declare global pixbufs in src/widget
---
src/widgets.js | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/src/widgets.js b/src/widgets.js
From 68616aa5c24f65e67169931e711e730cf126bfb6 Mon Sep 17 00:00:00 2001
From: Guillaume Quintard <guillaume.quintard@gmail.com>
Date: Tue, 23 Apr 2013 00:51:33 +0200
Subject: [PATCH 1/2] load symbolic icon only once for the albums view
---
src/view.js | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/view.js b/src/view.js