Skip to content

Instantly share code, notes, and snippets.

View concatime's full-sized avatar

Issam E. Maghni concatime

  • Silicon Laboratories, Inc
  • Montréal, QC.
View GitHub Profile
# WATCHOUT, THIS WILL ERASE YOUR .VIMRC & TESTED ONLY UNDER UBUNTU 17.10
LJVER=2.1.0-beta3 # LuaJIT
VMVER=8.0 # VIM
CFLAGS+=-pipe
MAKEFLAGS+=-j`nproc`
CC=clang
[ -z $1 ] || { CC=$1; }
export CC CFLAGS MAKEFLAGS
set -e
import java.util.ArrayList;
interface Solver
{
byte INDEX = 73; // Nième valeur recherchée
static void main(final String... args) {
buffer.add(6d); // 0
buffer.add(-16d); // 1
buffer.add(396d); // 2

apt-transport-https

First, if you are on Ubuntu Cosmic, you need to manually compile json-c because the version provided is 0.12.1, but sway requires at least version 0.13. It is pretty straight forward, so take a look here.

Then, we need to install common dependencies between wlroots and sway-1.0.

sudo apt install gcc pkgconf meson ninja-build libwayland-dev libinput-dev libcap-dev

Secondly, we need to install wlroots dependencies.

@concatime
concatime / index.html
Last active April 30, 2024 06:05
SVG to image to canvas to PNG/JPEG/... (URI/URL and Blob)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<svg height=500 width=500>
<circle cx=250 cy=250 r=200 stroke="black" stroke-width=3 fill="red" />
Sorry, your browser does not support inline SVG.
#include <stdio.h> /* fputs, printf, puts, stderr */
#include <stdlib.h> /* EXIT_FAILURE, EXIT_SUCCESS, exit */
#include <sys/resource.h> /* RLIM_INFINITY, RLIMIT_RTPRIO, getrlimit, setrlimit, struct rlimit */
#include <unistd.h> /* pause */
int main(void) {
struct rlimit rtprio;
if (getrlimit(RLIMIT_RTPRIO, &rtprio)) {
fputs("failed to get cur/soft rtprio\n", stderr);
@concatime
concatime / README.md
Last active April 27, 2025 00:53
Gaming inside a container!

First, we need to get the GPG key used by external repositories and some DEB files.

mkdir ./trust
dlkey() { wget -q -O - --https-only --secure-protocol=TLSv1_2 -- "$1" | gpg --dearmor | base64; }
dlkey 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xEB8B81E14DA65431D7504EA8F63F0F2B90935439' >./trust/ppa_kisak.txt
dlkey 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2388FF3BE10A76F638F80723FCAE110B1118213C' >./trust/ppa_graphics_drivers.txt
dlkey 'https://dl.winehq.org/wine-builds/winehq.key' >./trust/winehq.txt
dlkey 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x82D96E430A1F1C0F0502747E37B90EDD4E3EFAE4' >./trust/ppa_lutris.txt
dlkey 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x824A27DD09DEDA33BF7835962EA8F35793D8809A' >./trust/ppa_flexiondotorg.txt
(cd ./trust &amp;&amp; wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_i386.deb)