Skip to content

Instantly share code, notes, and snippets.

View hsanjuan's full-sized avatar
🏰

Hector Sanjuan hsanjuan

🏰
View GitHub Profile
diff --git a/host-linux/GNUmakefile b/host-linux/GNUmakefile
index 1274617..22c184a 100644
--- a/host-linux/GNUmakefile
+++ b/host-linux/GNUmakefile
@@ -22,7 +22,7 @@ endif
include ../VERSION.mk
all:
- qmake VERSION=$(VERSIONEX)
+ qmake-qt5 VERSION=$(VERSIONEX)
@hsanjuan
hsanjuan / keybase.md
Created November 19, 2016 17:22
keybase.md

Keybase proof

I hereby claim:

  • I am hsanjuan on github.
  • I am hsanjuan (https://keybase.io/hsanjuan) on keybase.
  • I have a public key whose fingerprint is B882 EE44 C062 0AAD 6F48 51AB 187A D938 2814 C04D

To claim this, I am signing this object:

#!/bin/bash
# Prerequisites: http://wiki.openwrt.org/doc/howto/buildroot.exigence
# Additionally JDK is needed
generate_buildenv() {
# Prepare build enviroment
mkdir openwrt_build
cd openwrt_build
git clone --depth=1 git://git.openwrt.org/15.05/openwrt.git
@hsanjuan
hsanjuan / photo_developing_cheatsheet.md
Last active April 17, 2018 09:27
Photo developing cheatsheet

Photograph developing cheat sheet

Working with ADOX products: http://www.adox.de .

35mm film developing

Requirements

  • Water at 20°C
  • ADONAL: Developer which equals to Rodinal
@hsanjuan
hsanjuan / ephemeral_response_monkey.rb
Created July 10, 2013 13:49
EphemeralResponse monkey patch. This patches ephemeralResponse so that request are saved with an associated request number and replayed in order afterwards. The usecase is to support that requests to the same endpoint return different values in different moments.
# Standard ephemeralResponse, although very simple idea, does not respond to our needs
# because it expects that an endpoint will always return the same data
# whether our endpoints return different data because the data is modified in the tests
# We monkey patch fixtures so that data is saved and loaded with a request number
# attached. This allows us to store data for every request
module EphemeralResponse
$requestnumber = 0
class Fixture
@hsanjuan
hsanjuan / ordered_yaml.rb
Created January 22, 2013 15:44
Ordered YAML generation with Ruby 1.8
class Hash
def to_yaml(opts={})
YAML::quick_emit( self, opts ) do |out|
out.map( taguri, to_yaml_style ) do |map|
keys = keys().sort {|a,b| a.to_s <=> b.to_s}
keys.each do |k|
v = self[k]
map.add( k, v )
end
end