Skip to content

Instantly share code, notes, and snippets.

View jcelerier's full-sized avatar
🏳️‍🌈
bash the fash

Jean-Michaël Celerier jcelerier

🏳️‍🌈
bash the fash
View GitHub Profile
@jcelerier
jcelerier / gist:0f170a9446f3a9419848
Created April 4, 2015 18:26
Sort TODO's by chronological order in git
git grep -n TODO | while IFS=: read -r file line junk; do git --no-pager blame --line-porcelain -L "$line,$line" -- "$file" | grep -v 'previous' | awk 'NR==4 || NR==12' | sed 'N;s/\n/ /' ; done | sort -k 2
@jcelerier
jcelerier / psx_extract.sh
Created August 20, 2015 19:27
Script to extract PSX roms in 7z / bin / ape format.
#!/bin/bash -eux
# Extracts and load PSX games that are distributed in .7z / .ape format.
# Requires : ffmpeg, perl, cdemu, ecm2bin
GAME_FOLDER="$1"
EXTRACT_FOLDER=/tmp/game
rm -rf "$EXTRACT_FOLDER"
mkdir "$EXTRACT_FOLDER"
cp -rf "$GAME_FOLDER"/* "$EXTRACT_FOLDER"
@jcelerier
jcelerier / gccsegfault.cpp
Created August 30, 2015 07:24
GCC segfault
This file has been truncated, but you can view the full file.
# 1 "/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Process/ScenarioModel.cpp"
# 1 "<interne>"
# 1 "<ligne-de-commande>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<ligne-de-commande>" 2
# 1 "/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Process/ScenarioModel.cpp"
# 1 "/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Process/ScenarioModel.hpp" 1
# 1 "/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Document/Constraint/ConstraintModel.hpp" 1
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
#include <array>
#include <memory>
#include <boost/range/algorithm.hpp>
using std::string;
using std::vector;
using std::array;
@jcelerier
jcelerier / openmp-FasterGameOnHeap.cpp
Last active September 14, 2016 21:58 — forked from jackmott/FasterGame.cpp
Faster Game CPP
#include <cstdio>
#include <cstdlib>
#include <chrono>
#include <random>
#include <thread>
#include <cmath>
#include <string>
#include <vector>
#include <array>
#include <map>
#include <boost/container/flat_map.hpp>
#include <unordered_map>
#include <string>
#include <chrono>
#include <iostream>
#include <vector>
#include <experimental/string_view>
const auto strings = {"token0", "foobar", "bee happy, very happy, very very happy", "", "12345"};
@jcelerier
jcelerier / gist:4d2d96d1d3374212f93298d5300f8d36
Created September 13, 2018 08:14
gnu gold flto / threads error
This file has been truncated, but you can view the full file.
# 1 "/home/jcelerier/score/API/OSSIA/ossia-python/ossia_python.cpp"
# 1 "<interne>"
# 1 "<ligne-de-commande>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<ligne-de-commande>" 2
# 1 "/home/jcelerier/score/API/OSSIA/ossia-python/ossia_python.cpp"
namespace pybind11
{
@jcelerier
jcelerier / keybase.md
Created October 7, 2018 09:59
keybase.md

Keybase proof

I hereby claim:

  • I am jcelerier on github.
  • I am jcelerier (https://keybase.io/jcelerier) on keybase.
  • I have a public key ASDuDRC91oz2RnzMRILX_bEBhwij8X7y743yFFAonD2rcQo

To claim this, I am signing this object:

Determining if the include file link.h exists failed with the following output:
Change Dir: /home/blah/llvm-mingw/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make.exe" "cmTC_237b0/fast"
/usr/bin/make -f CMakeFiles/cmTC_237b0.dir/build.make CMakeFiles/cmTC_237b0.dir/build
make[1]: Entering directory '/home/blah/llvm-mingw/llvm/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_237b0.dir/CheckIncludeFile.c.o
/usr/bin/cc.exe -o CMakeFiles/cmTC_237b0.dir/CheckIncludeFile.c.o -c /home/blah/llvm-mingw/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/blah/llvm-mingw/llvm/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: link.h: No such file or directory
#include <link.h>
$ ./build-all.sh llvm
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /mingw64/bin/cc.exe
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
-- Check for working C compiler: /mingw64/bin/cc.exe
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0 to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake