Skip to content

Instantly share code, notes, and snippets.

Guillaume Coré fridim

Block or report user

Report or block fridim

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
fridim / get.html
Last active Dec 8, 2016
glod-web a webservice frontend to
View get.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>download goodies!</title>
<h1>Extraction in progress ... <span id="ajaxcontent" ></span></h1>
import datetime
import os
import time
# Ansible 1.9 and 2.0 compatibility
from ansible.plugins.callback import CallbackBase
parent_class = CallbackBase
except ImportError:
parent_class = object
fridim /
Created May 23, 2015
keybase proof

Keybase proof

I hereby claim:

  • I am fridim on github.
  • I am fridim ( on keybase.
  • I have a public key whose fingerprint is D79D FF62 9E08 1E21 1181 A3C3 0A74 F4B1 A990 3389

To claim this, I am signing this object:

fridim /
Created Nov 26, 2014
Problème Euler 60 en Racket

Problème Euler 60

2014-11-26 #projecteuler #racketlang

L'énoncé sur

la citation

If you can't explain it simply, you don't understand it well enough.
Albert Einstein

View after.rkt
#lang typed/racket/base
#| By replacing the 1st digit of the 2-digit number *3, it turns out that six of
the nine possible values: 13, 23, 43, 53, 73, and 83, are all prime.
By replacing the 3rd and 4th digits of 56**3 with the same digit, this 5-digit
number is the first example having seven primes among the ten generated numbers,
yielding the family: 56003, 56113, 56333, 56443, 56663, 56773, and 56993.
Consequently 56003, being the first member of this family, is the smallest prime
with this property.
View evalin.rb
#!/usr/bin/env ruby
# Author : Emad Elsaid (
require 'json'
require 'open-uri'
require 'uri'
require 'net/http'
$url = ""
$languages = {
fridim / timezone.rb
Last active Aug 29, 2015 — forked from vivien/timezone.rb
Script to toggle timezones in i3blocks
View timezone.rb
# Toggle timezones in i3blocks
# Author: Vivien Didelot <>
# Fill the ZONES array and define a block like this:
# [timezone]
# command=THIS_SCRIPT
# interval=5
View .i3blocks.conf
command=echo "BTC: $(curl '' -s|jq '.["EUR"]["15m"]') €"
p="$(sensors coretemp-isa-0000 | awk '/Physical/ { print $4 }')"
h="$(sensors coretemp-isa-0000 | awk '/Physical/ { print $7 }')"
echo "Temp: $p"
echo "T: $p"
if [[ $p > $h ]]; then
echo '#FFAAAA'
fridim / dmenu_screenshot_swift
Last active Aug 29, 2015
take a screenshot, upload it to openstack swift, and copy the link to the clipboard
View dmenu_screenshot_swift
. ~/bin/dmenu_options
q="$(dmenu $options -l 60 -p "Screenshot :"|sed 's/ /_/g')"
[ "$q" ] || exit 1
mkdir -p ~/tmp
filename="$(date +%Y%m%d%H%M)_${q}.png"
import "${HOME}/tmp/${filename}"
. ~/PRIV/enocloud_fridim.rc
swift upload public "tmp/$filename"
You can’t perform that action at this time.