Skip to content

Instantly share code, notes, and snippets.

View sigmike's full-sized avatar

Michaël Witrant sigmike

  • Ouvrages
  • France
View GitHub Profile
--- old/acml-ifort/PKGBUILD 2013-12-18 06:41:22.000000000 +0100
+++ new/acml-ifort/PKGBUILD 2013-12-25 16:59:28.788836594 +0100
@@ -20,7 +20,7 @@
wget ${_source}
mv "index.html?f=acml-5-3-1-ifort-64bit.tgz" "${srcdir}/index.html"
_nonce=`grep "nonce" "${srcdir}/index.html" | awk '{print $5;}' | sed "s^value=^^g" | sed 's^"^^g'`
- _f=`grep "nonce" "${srcdir}/index.html" | awk '{print $14;}' | sed "s^value=^^g" | sed 's^"^^g'`
+ _f=`grep "nonce" "${srcdir}/index.html" | awk '{print $14;}' | sed 's^value="^^g' | sed 's^"/>^^g'`
# Request actual file using acquired variables
-- Compiling with OpenMP support
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this on this machine.
-- No OMAP4 processor on this on this machine.
-- Found readline library
-- LuaJIT Target: x86
-- LuaJIT target x86
-- Found readline library
-- Checking for [mkl_gf - mkl_gnu_thread - mkl_core - pthread - m]
-- Library mkl_gf: not found
@sigmike
sigmike / gist:3972937
Created October 29, 2012 10:55
netstat "objdump -s" changes
--- netstat-fulldump 2012-10-29 11:54:57.618488200 +0100
+++ netstat.changed-fulldump 2012-10-29 11:50:38.042485423 +0100
@@ -1,5 +1,5 @@
-netstat: file format elf32-i386
+netstat.changed: file format elf32-i386
Contents of section .interp:
8048134 2f6c6962 2f6c642d 6c696e75 782e736f /lib/ld-linux.so
@@ -767,66 +767,66 @@
@sigmike
sigmike / gist:3972886
Created October 29, 2012 10:38
netstat disassembled diff
--- netstat-dump 2012-10-29 11:27:51.242470805 +0100
+++ netstat-changed-dump 2012-10-29 11:27:46.290470752 +0100
@@ -1,5 +1,5 @@
-netstat: file format elf32-i386
+netstat.changed: file format elf32-i386
Disassembly of section .init:
@@ -2089,21 +2089,22 @@
@sigmike
sigmike / gist:3127680
Created July 17, 2012 06:47
Thousand separator of each locale
# Generated with this command: cd /usr/share/i18n/locales; egrep '^thousands_sep ' *
# The value is the unicode character, you can search for them here:
# http://www.fileformat.info/info/unicode/char/search.htm
aa_DJ:thousands_sep ""
ar_AE:thousands_sep "<U002C>"
ar_BH:thousands_sep "<U002C>"
ar_DZ:thousands_sep "<U002C>"
ar_EG:thousands_sep "<U002C>"
ar_IQ:thousands_sep "<U002C>"
ar_JO:thousands_sep "<U002C>"
@sigmike
sigmike / gist:3127659
Created July 17, 2012 06:37
Locales using a comma as thousand separator
# generated with this command: cd /usr/share/i18n/locales; egrep -l '^thousands_sep +"<U002C>"' *
ar_AE
ar_BH
ar_DZ
ar_EG
ar_IQ
ar_JO
ar_KW
ar_LB
ar_LY
#!/usr/bin/env ruby
require 'rubygems'
require 'twurl'
begin
Twurl::CLI.run(ARGV.dup)
rescue Timeout::Error
STDERR.puts "Timeout. Retrying..."
retry
CREATE USER '<username>'@'localhost' IDENTIFIED BY '<password>';
CREATE DATABASE IF NOT EXISTS `<database_name>`;
GRANT ALL PRIVILEGES ON `<database_name>`.* TO '<username>'@'localhost';
#########################################################################################################
# I18n French translation for Devise (http://github.com/plataformatec/devise)
# I18n traduction de français pour Devise
#
# Note from author: I'm not a native French speaker.
# Please correct my French under the "For generated views" section.
# (The main section is already corrected.)
# Note de l'autheur: Je ne parle pas beaucoup de français.
# Pourriez-vous corriger mon français au dessous de la section "For generated views",
# s'il vous plait?
#!/usr/bin/env ruby
require 'rubygems'
require 'mechanize'
require 'pp'
def url_for(path)
base = "http://example.com/"
base + path
end