Skip to content

Instantly share code, notes, and snippets.

@unixfox
unixfox / README.md
Last active November 3, 2024 13:06
Install alpine linux on Scaleway stardust
@notsure2
notsure2 / build-qbittorrent-ubuntu-16.04-static.sh
Last active July 3, 2021 12:23
How to compile latest qBittorrent-nox with static qt, boost and openssl for Ubuntu 16.04 xenial (using Ubuntu 16.04 xenial)
#!/bin/bash
set -e
apt update -y
apt install -y build-essential git perl python2.7 python2.7-dev zlib1g-dev autoconf libicu-dev pkg-config perl ccache
OPENSSL_TAG=OpenSSL_1_1_1-stable
QBITTORRENT_TAG=v4_2_x
LIBTORRENT_TAG=RC_1_2
QT5_TAG=5.14
BOOST_VER=1.72.0
@nhymxu
nhymxu / README-python-framework-benchmark.md
Last active July 3, 2024 12:28
Flask vs Falcon vs FastAPI benchmark
gunicorn run:app --workers=9
gunicorn run:app --workers=9 --worker-class=meinheld.gmeinheld.MeinheldWorker

Macbook Pro 2015 Python 3.7

Framework Server Req/s Max latency +/- Stdev
@mooyoul
mooyoul / index.js
Created May 20, 2019 09:04
Fingerprint2 with Puppeteer
'use strict';
const debug = require('debug');
const puppeteer = require('puppeteer');
const log = debug('script');
log.enabled = true;
const ALLOWED_COMPONENT_KEYS = ['canvas', 'webgl', 'audio'].reduce((hash, v) => {
hash[v] = true;
@ashevchuk
ashevchuk / rac_ipmi_jviewer.sh
Last active May 7, 2024 00:17
Aster MegaRAC IPMI q&d fix for broken iKVM jviewer.jnlp
#!/bin/sh
if [ "$#" -ne 3 ]; then
echo "Usage: $0 [ip address] [user name] [password]"
exit 1
fi
IP=$1
IPMI_USER=$2
IPMI_PASS=$3
@davidfraser
davidfraser / Google Drive Sync Wine Scripting.md
Last active July 9, 2023 01:00
Google Drive Sync Wine Scripting

Google Drive Sync Wine Scripting

This is a set of scripts that help running Google Drive Backup and Sync under Wine, with multiple Google accounts.

Each account is given its own Wine prefix (a separate wine configuration).

To install, run install-gdrive-sync google_account

List the accounts set up in ~/.config/gdrive-accounts

@grudko
grudko / gist:4c1dcd2a2eb29bc3d98cd19bfd916cbd
Created December 2, 2016 13:16
Asyncio aiohttp example with PonyORM
#!/usr/bin/env python3
import asyncio
from asyncio_extras import threadpool
from aiohttp import web
from pony.orm import *
db = Database()
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@yetithefoot
yetithefoot / stuns
Last active October 17, 2024 21:42 — forked from zziuni/stuns
STUN+TURN servers list
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
@zouppen
zouppen / README.md
Last active January 7, 2024 20:24
Tool for extracting compression ratio and amount of compressed memory from zram swap partitions.

zraminfo

This is a simple tool for displaying memory information including compression ratio and percentage of compressed memory in Linux kernel using zram. This tool works without zram, but in that case it displays only basic memory statistics.

With LC_NUMERIC=en_GB.utf8 the output of ./zraminfo looks like this: