Skip to content

Instantly share code, notes, and snippets.

View francoisjacques's full-sized avatar

François Jacques francoisjacques

View GitHub Profile
@francoisjacques
francoisjacques / private.xml
Created September 17, 2024 13:44 — forked from lifez/private.xml
Karabiner private.xml for Topre REALFORCE 87U on Mac
<?xml version="1.0"?>
<root>
<item>
<name>For Topre REALFORCE 87 Users</name>
<devicevendordef>
<vendorname>TopreCorporation</vendorname>
<vendorid>0x0853</vendorid>
</devicevendordef>
<item>

Calibre-web on FreeNAS

-- Being edited, if this line is present when you read this, I haven't managed to complete the procedure yet. YMMV.
-- That said, I managed to get to step 7, so the worst is behind.

Creating the Jail

  • Step 1 - Name Jail and Choose FreeBSD Release
@francoisjacques
francoisjacques / no-wave.css
Last active April 5, 2024 16:34
Reviewable CSS - earlAchromatic/reviewable-custom-styles/no-waves.css + line numbers + deuteranopia/protonopia
/* Deuteranopia/Protanopia */
:root {
--diff-add: 33, 150, 243;
--diff-remove: 255, 235, 59;
}
/* no waves */
.review-page .file.root .file .wavy.edge {
background-image: none;
}
@francoisjacques
francoisjacques / IPTV-big-list.m3u
Last active September 15, 2024 00:01
IPTV big list.m3u
#EXTM3U
#EXTINF:0 tvg-name="Newsmax TV" tvg-language="English" tvg-country="CA" tvg-id="Newsmax-TV" tvg-logo="https://i.imgur.com/Twkovic.gif" group-title="Entertainment",Newsmax TV
https://nmxlive.akamaized.net/hls/live/529965/Live_1/index.m3u8
#EXTINF:0 tvg-id="Sky-News" tvg-name="Sky News" tvg-logo="https://upload.wikimedia.org/wikipedia/en/9/91/SKY_TG24.png" group-title="News",Sky News (UK)
http://d59pscns5ugc8.cloudfront.net/cdhls/skynewsamericas/1013/live/06.m3u8
#EXTINF:0 tvg-name="London Live" tvg-language="English" tvg-country="GB" tvg-id="London Live" tvg-logo="https://i.imgur.com/lDm5tkK.png" group-title="News",London Live
https://bcoveliveios-i.akamaihd.net/hls/live/217434/3083279840001/master_900.m3u8
#EXTINF:-1 tvg-name="Ei" tvg-language="English" tvg-country="US" tvg-id="Ei" tvg-logo="https://i.imgur.com/2krIVOg.jpg" group-title="Family",E-I

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@francoisjacques
francoisjacques / file0.txt
Created October 23, 2019 16:15 — forked from giwa/file0.txt
Install g++/gcc 4.8.2 in CentOS 6.6 ref: http://qiita.com/giwa/items/28c754d8fc2936c0f6d2
$ wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
$ yum install devtoolset-2-gcc devtoolset-2-binutils
$ yum install devtoolset-2-gcc-c++ devtoolset-2-gcc-gfortran
@francoisjacques
francoisjacques / bundle_sizes.sh
Created July 31, 2018 15:06 — forked from DDAZZA/bundle_sizes.sh
List all bundled gems and their sizes
#!/bin/bash
# List the gems in the current bundle and their sizes
bundle list --paths | xargs du -s | sort -n | awk '{ print $2 $4 }' | xargs du -sh
#!/bin/bash
# Add vagrant-hostupdater, vagrant-nfs and /sbin/pfctl -ef commands to sudoers, for `vagrant up` without a password
# force sudo on self.
if [ $( id -u ) -ne 0 ]; then
exec sudo -p "Login password for %p: " "$0" "$@"
exit $?
fi
# Stage updated sudoers in a temporary file for syntax checking
--- ext/openssl/ossl_pkey_ec.c
+++ ext/openssl/ossl_pkey_ec.c
@@ -757,8 +757,10 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
method = EC_GFp_mont_method();
} else if (id == s_GFp_nist) {
method = EC_GFp_nist_method();
+#if !defined(OPENSSl_NO_EC2M)
} else if (id == s_GF2m_simple) {
method = EC_GF2m_simple_method();
+#endif
@francoisjacques
francoisjacques / gdb_ruby_backtrace.py
Created February 7, 2018 19:45 — forked from csfrancis/gdb_ruby_backtrace.py
Dump an MRI call stack from gdb
# Updated for Ruby 2.3
string_t = None
def get_rstring(addr):
s = addr.cast(string_t.pointer())
if s['basic']['flags'] & (1 << 13):
return s['as']['heap']['ptr'].string()
else:
return s['as']['ary'].string()