Skip to content

Instantly share code, notes, and snippets.

View henare's full-sized avatar

Henare Degan henare

View GitHub Profile
@henare
henare / rescue_me.rb
Created January 3, 2022 22:19
Ruby rescue with retry
def rescue_with_retry(error_class: StandardError, retry_count: 3, &block)
attempts ||= 0
yield
rescue error_class
attempts += 1
puts "#{attempts}: Oh take me in your arms"
retry if attempts < retry_count
end
@henare
henare / changelog.txt
Created July 15, 2019 04:24
openssl 1.0.1f-1ubuntu2.27 changelog
openssl (1.0.1f-1ubuntu2.27) trusty-security; urgency=medium
* SECURITY UPDATE: PortSmash side channel attack
- debian/patches/CVE-2018-5407.patch: fix timing vulnerability in
crypto/bn/bn_lib.c, crypto/ec/ec_mult.c.
- CVE-2018-5407
* SECURITY UPDATE: timing side channel attack in DSA
- debian/patches/CVE-2018-0734-pre1.patch: address a timing side
channel in crypto/dsa/dsa_ossl.c.
- debian/patches/CVE-2018-0734-1.patch: fix timing vulnerability in
name sort_name wikidata birth_year party area constituency constituency_wikidata term
Michael von Abercron Abercron, Michael von Q1666351 1952 CDU Schleswig-Holstein Pinneberg Q1008517 19
Doris Achelwilm Achelwilm, Doris Q40097453 1976 LINKE Bremen 19
Grigorios Aggelidis Aggelidis, Grigorios Q40998799 1965 FDP Niedersachsen 19
Gökay Akbulut Akbulut, Gökay Q40997638 1982 LINKE Baden-Württemberg 19
Stephan Albani Albani, Stephan Q15093113 1968 CDU Niedersachsen 19
Renata Alt Alt, Renata Q40997592 1965 FDP Baden-Württemberg 19
Norbert Altenkamp Altenkamp, Norbert Q1996643 1972 CDU Hessen Main-Taunus Q1008387 19
Peter Altmaier Altmaier, Peter Q65539 1958 CDU Saarland Saarlouis Q1008583 19
Philipp Amthor Amthor, Philipp Q40998607 1992 CDU Mecklenburg-Vorpommern Mecklenburgische Seenplatte I – Vorpommern-Greifswald II Q1008402 19
@henare
henare / Gemfile
Last active July 7, 2017 05:54
bello_winter_music_lineup_youtube_videos
source "https://rubygems.org"
gem "mechanize"
gem "scraperwiki"
@henare
henare / 2016-12-04_planningalerts_cron_output.txt
Created December 5, 2016 01:11
Output from the PlanningAlerts daily cronjob
I, [2016-12-04T12:00:18.933856 #22575] INFO -- : Scraping 150 authorities
I, [2016-12-04T12:00:20.971645 #22575] INFO -- : 0 new applications found for Blue Mountains City Council, NSW with date from 2016-11-20 to 2016-12-04
I, [2016-12-04T12:00:21.048111 #22575] INFO -- : Took 1 s to collect applications from Blue Mountains City Council, NSW
E, [2016-12-04T12:00:25.479310 #22575] ERROR -- : Error Validation failed: Description can't be blank while trying to save application A004527384 - for Brisbane City Council, QLD. So, skipping
E, [2016-12-04T12:00:26.754557 #22575] ERROR -- : Error Validation failed: Description can't be blank while trying to save application A004527692 - for Brisbane City Council, QLD. So, skipping
E, [2016-12-04T12:00:27.276336 #22575] ERROR -- : Error Validation failed: Description can't be blank while trying to save application A004527296 - for Brisbane City Council, QLD. So, skipping
E, [2016-12-04T12:00:28.531905 #22575] ERROR -- : Error Validation failed: Description can't be b

Sous vide miso salmon

Serve with rice and salad.

Miso glaze

  • 2 tablespoons mirin
  • 1 tablespoon miso paste
  • 2 teaspoons honey
  • 1 teaspoon grated peeled fresh ginger
@henare
henare / postcodes.json
Last active May 3, 2016 12:02
Postcode to 2016 Australian Federal Electorates. Archived from http://greens.org.au/sites/greens.org.au/files/cpn/block-95.js
{
"0800": [
"Solomon"
],
"0810": [
"Solomon"
],
"0812": [
"Solomon"
],
ALBURY CITY COUNCIL https://eservice.alburycity.nsw.gov.au/portal/pages/XC.Track/Default.aspx
ARMIDALE DUMARESQ COUNCIL https://epathway.newengland.nsw.gov.au/ePathway/Production/Web/GeneralEnquiry/EnquiryLists.aspx
ASHFIELD COUNCIL http://www.ashfield.nsw.gov.au/page/development_applications.html
AUBURN CITY COUNCIL https://secure.auburn.nsw.gov.au/ePathway/Production/Web/GeneralEnquiry/EnquiryLists.aspx?ModuleCode=LAP&js=1866677207
BALLINA SHIRE COUNCIL http://da.ballina.nsw.gov.au/Common/User/Terms.aspx
BALRANALD SHIRE COUNCIL http://www.balranald.nsw.gov.au/
BANKSTOWN CITY COUNCIL http://online.bankstown.nsw.gov.au/Planning/Common/Common/Terms.aspx
BATHURST REGIONAL COUNCIL https://www.bathurst.nsw.gov.au/building/development-applications/da-tracking.html
BEGA VALLEY SHIRE COUNCIL http://www.begavalley.nsw.gov.au/cp_themes/default/home.asp
BELLINGEN SHIRE COUNCIL http://www.bellingen.nsw.gov.au/development/development-application-da-tracking
@henare
henare / ep-popolo-v1.0.json
Last active September 8, 2015 05:47
Interim Ukrainian EveryPolitician Popolo generated data
{
"persons": [
{
"family_name": "Євлахов",
"given_name": "Сергійович",
"id": "person/18089",
"image": "http://static.rada.gov.ua/dep_img8/d207_1.jpg",
"images": [
{
"url": "http://static.rada.gov.ua/dep_img8/d207_1.jpg"
<?php
// **********************************************************************
// OA::API PHP API interface for OpenAustralia.org
// Version 1.0
// Author: Mark Kinkade <pagetribemail@gmail.com>
//
// This work has been adapted/extended from the great work done by:
// Ruben Arakelyan <ruben@wackomenace.co.uk>
// Copyright (C) 2008 Ruben Arakelyan. Some rights reserved.