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
View .vimrc
let g:netrw_preview=1
set relativenumber
set history=1000
set encoding=utf8
set laststatus=2
set shiftwidth=2
"au BufRead,BufNewFile *.rb,*.rhtml set shiftwidth=2
set softtabstop=2
set ts=2
"set guifont=Monospace\ 9
View keybase.md

Keybase proof

I hereby claim:

  • I am fridim on github.
  • I am fridim (https://keybase.io/fridim) on keybase.
  • I have a public key whose fingerprint is 9E30 5E49 D4DE 5A7C FC0D F5D3 993E 1DC9 61F6 67C0

To claim this, I am signing this object:

@fridim
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/sh
. ~/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
cd
swift upload public "tmp/$filename"
View check_temp.sh
#!/bin/sh
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'
fi
View .i3blocks.conf
[btc]
command=echo "BTC: $(curl 'https://blockchain.info/ticker' -s|jq '.["EUR"]["15m"]') €"
interval=600
@fridim
fridim / timezone.rb
Last active Aug 29, 2015 — forked from vivien/timezone.rb
Script to toggle timezones in i3blocks
View timezone.rb
#!/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
View evalin.rb
#!/usr/bin/env ruby
# Author : Emad Elsaid (https://github.com/blazeeboy)
require 'json'
require 'open-uri'
require 'uri'
require 'net/http'
CODE_LIMIT = 10
$url = "https://eval.in/"
$languages = {
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.
@fridim
fridim / euler60.md
Created Nov 26, 2014
Problème Euler 60 en Racket
View euler60.md

Problème Euler 60

2014-11-26 #projecteuler #racketlang

L'énoncé sur projecteuler.net

la citation

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

@fridim
fridim / keybase.md
Created May 23, 2015
keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am fridim on github.
  • I am fridim (https://keybase.io/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:

You can’t perform that action at this time.