Skip to content

Instantly share code, notes, and snippets.

View Arkanosis's full-sized avatar

Jérémie Roquet Arkanosis

View GitHub Profile
======================
Proton: 1684512816 proton-8.0-2d
SteamGameId: 813780
Command: ['/mnt/ssd/home/nonfreegaming/.local/share/Steam/steamapps/common/AoE2DE/AoE2DE_s.exe', 'SKIPINTRO']
Options: {'forcelgadd', 'noopwr'}
depot: 0.20230509.49493
pressure-vessel: 0.20230509.0 scout
scripts: 0.20230509.0
sniper: 0.20230509.49493 sniper 0.20230509.49493
Kernel: Linux 6.0.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 02 Dec 2022 17:25:31 +0000 x86_64
Initializing Time System
Initializing Command Line
Problem with installation detected.
Exiting with code 0
@Arkanosis
Arkanosis / kubuntu_to_debian.md
Last active May 3, 2021 19:55
Upgrading from Kubuntu 18.04 (Bionic) to Debian 10 (Buster) using Arch

Upgrading from Kubuntu 18.04 (Bionic) to Debian 10 (Buster) using Arch

The following describes how you can upgrade a running Kubuntu 18.04 to Debian 10 without having to format the root partition (which usually also contains /home).

This might sounds complicated at first, but it really isn't. Note that this is using Arch because why not, but you only need a distro on a bootable drive which is not the one being upgraded; Ubuntu or Debian would work as well.

Also, obviously:

  • only a fool would try that without proper backups;
  • this comes with no guarantee of any kind (if it breaks and you lose all your data, it's your own fault).
#! /bin/sh
chans="
labsquare/Regovar
labsquare/pirus
labsquare/french
labsquare/general
labsquare/fastQt
labsquare/CuteVariant
labsquare/CutePeaks
@Arkanosis
Arkanosis / GitHub_over_NTLM.md
Last active March 14, 2019 15:52
GitHub over NTLM

Using GitHub with read/write access, on Debian / Ubuntu, behind a NTLM proxy

This gist is accessible using:

Accessing the Internet, on Linux, behind a NTLM proxy

Most tools don't know how to pass a NTLM proxy, but do know how to pass an HTTP proxy.

@Arkanosis
Arkanosis / install_vep.md
Last active March 3, 2022 18:28
Installing VEP on Ubuntu 18.04 LTS Bionic Beaver

Installing VEP on Ubuntu 18.04 LTS Bionic Beaver

sudo apt install unzip curl git libmodule-build-perl libdbi-perl libdbd-mysql-perl build-essential zlib1g-dev
git clone https://github.com/Ensembl/ensembl-vep.git
cd ensembl-vep
./INSTALL.pl -a a

This will only build and install the base VEP and its dependencies. See the documentation (search for --AUTO and --PLUGINS) for the flags needed for additional content.

@Arkanosis
Arkanosis / strftime_ja.cpp
Created March 14, 2018 15:50
Break std::strftime using a Japanese CP932 locale on Windows
#include <ctime>
#include <iostream>
#include <locale>
int main() {
std::locale::global(std::locale("Japanese_Japan.932"));
std::time_t t = std::time(nullptr);
char mbstr[20000];
if (std::strftime(mbstr, sizeof (mbstr), "%Y年%m月%d日 %H:%M:%S", std::localtime(&t))) {
std::cout << mbstr << '\n';
# Pour que ce code fonctionne, supprimer les lignes avec des commentaires (commençant par « # ») et
# - tout mettre sur une seule ligne, ou
# - terminer chaque ligne par un « \ », sans espace après.
# trouver récursivement (« find ») tous les dossiers (« -type d ») dans mon home (« "$HOME" »)
find "$HOME" -type d |
# prendre chaque résultat de l'étape précédente, un par un, dans une variable (« directory »), et pour chacun…
while read directory; do
# substituer au résultat (« echo ») le résultat de l'exécution de « $( … ) »…
echo $(
@Arkanosis
Arkanosis / compressors_benchmark2.log
Created October 13, 2015 20:30
Naive benchmark of compressors (results 2)
--- bench@5k ---
0.00s 3129 0.00s | 5k lz4 -1
0.00s 2936 0.00s | 5k lz4 -5
0.00s 2935 0.00s | 5k lz4 -9
0.00s 2272 0.00s | 5k gzip -1
0.00s 2167 0.00s | 5k gzip -5
0.00s 2166 0.00s | 5k gzip -9
0.00s 2246 0.00s | 5k brzip -1
@Arkanosis
Arkanosis / compressors_benchmark.log
Created October 12, 2015 16:52
Naive benchmark of compressors (results)
--- bench@5k ---
0.00s 2417 0.00s | 5k lz4 -1
0.00s 2256 0.00s | 5k lz4 -5
0.00s 2254 0.00s | 5k lz4 -9
0.00s 1741 0.00s | 5k gzip -1
0.00s 1646 0.00s | 5k gzip -5
0.00s 1634 0.00s | 5k gzip -9
0.00s 1722 0.00s | 5k bro --quality 1
0.00s 1631 0.00s | 5k bro --quality 4
0.00s 1568 0.00s | 5k bro --quality 9