Skip to content

Instantly share code, notes, and snippets.

Avatar
🏳️‍🌈
bash the fash

Jean-Michaël Celerier jcelerier

🏳️‍🌈
bash the fash
View GitHub Profile
@jcelerier
jcelerier / gist:0f170a9446f3a9419848
Created Apr 4, 2015
Sort TODO's by chronological order in git
View gist:0f170a9446f3a9419848
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 Aug 20, 2015
Script to extract PSX roms in 7z / bin / ape format.
View psx_extract.sh
#!/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"
View gccsegfault.cpp
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
View inverted_index.cpp
#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;
View openmp-FasterGameOnHeap.cpp
#include <cstdio>
#include <cstdlib>
#include <chrono>
#include <random>
#include <thread>
#include <cmath>
#include <string>
#include <vector>
#include <array>
View string_int_container_benchmark.cpp
#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"};
View gist:4d2d96d1d3374212f93298d5300f8d36
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
View 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:

View CMakeError.log
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>
View mingw64 llvm
$ ./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