Skip to content

Instantly share code, notes, and snippets.

@jo-chemla
jo-chemla / kapture-cropper.py
Last active April 27, 2024 13:41
Quick utility to crop a kapture images and adapt intrinsics
# py kapture-cropper.py -i dataset-kapture\ --border_px 0 --scale_factor 1 -v
import kapture
import kapture.io.csv as csv
from PIL import Image
from kapture.io.csv import kapture_to_dir
import os, logging, argparse
import kapture.utils.logging
logger = logging.getLogger("kapture-cropper")
@denguir
denguir / cuda_install.md
Last active April 27, 2024 13:40
Installation procedure for CUDA & cuDNN

How to install CUDA & cuDNN on Ubuntu 22.04

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 27, 2024 13:39
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@metadaddy
metadaddy / b2_multipart.php
Last active April 27, 2024 13:35
PHP sample code for a multipart file upload to Backblaze B2. Usage: php php_multipart.php [-v] <bucket_name> <local_file>
<?php
// PHP sample code to show multipart file upload using the B2 Native API
// User supplies optional -v for verbose output from curl, then bucket name
// and path to local file
$rest_index = null;
$opts = getopt("v::", [], $rest_index);
$args = array_slice($argv, $rest_index);
@mumrah
mumrah / run.py
Created November 9, 2017 18:11
Python script to decode AX.25 from KISS frames over a serial TNC
import hexdump
import kiss
import struct
def decode_addr(data, cursor):
(a1, a2, a3, a4, a5, a6, a7) = struct.unpack("<BBBBBBB", data[cursor:cursor+7])
hrr = a7 >> 5
ssid = (a7 >> 1) & 0xf
ext = a7 & 0x1
@NickMcSweeney
NickMcSweeney / postgresql_plus_arch-linux.md
Last active April 27, 2024 13:34
Getting postgresql running on Arch Linux

Setup Postgresql

run postgresql with systemctl

Install postgres

latest

sudo pacman -S postgresql

specific version

find version & build from source

@xxlukas42
xxlukas42 / blue_led_matrix.ino
Created May 15, 2019 18:42
Blue LED matrix display 8x16 for your Arduino
/**
* \par Copyright (C), 2012-2016, MakeBlock
* @file Me_LEDMatrixTest.ino
* @author MakeBlock (modified by Petr Lukas)
* @version V1.0.0
* @date 2019/05/12
* @brief Description: this file is sample code for Me LED Matrix device.
*
* Function List:
* clearScreen() Remove content of display
@ktuukkan
ktuukkan / maven-settings.xml
Last active September 20, 2018 13:11
Maven config for snapshot dependencies / Sonatype Nexus
<settings>
...
<activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
...
<profiles>
<profile>
<id>nexus</id>
<repositories>