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 / properties.cpp
Last active May 14, 2023 17:36
Python style properties in C++
/*
** Python style properties in C++
** (C) 2010 Arkanosis
** jroquet@arkanosis.net
**
** Example code released under the MIT license
** http://www.opensource.org/licenses/mit-license.php
**
** This is an original portable version of
** http://www.codeproject.com/KB/cpp/properties.aspx
@Arkanosis
Arkanosis / properties.cpp
Last active May 14, 2023 16:53
C# style properties in C++
/*
** C# style properties in C++
** (C) 2010 Arkanosis
** jroquet@arkanosis.net
**
** Example code released under the MIT license
** http://www.opensource.org/licenses/mit-license.php
**
** This is an original portable version of
** http://www.codeproject.com/KB/cpp/properties.aspx
@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 / 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).
@Arkanosis
Arkanosis / tel2txt.py
Created June 13, 2014 17:15
Script that converts a phone number to alternatives phone “words”
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
_num2char = [
'0+ ',
'1 ',
'2ABC ',
@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.

#! /bin/sh
chans="
labsquare/Regovar
labsquare/pirus
labsquare/french
labsquare/general
labsquare/fastQt
labsquare/CuteVariant
labsquare/CutePeaks
@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';