Skip to content

Instantly share code, notes, and snippets.

R code for copying this cool toot: https://en.osm.town/@koriander/113459280926992782

src <- "/vsizip//vsicurl/https://github.com/wmgeolab/geoBoundaries/raw/main/releaseData/CGAZ/geoBoundariesCGAZ_ADM0.zip"
sql <- "SELECT shapeGroup FROM geoBoundariesCGAZ_ADM0 WHERE shapeGroup IN ('ATA')"
library(terra)
laea <- project(vect(src), "+proj=laea +lat_0=90")

ant &lt;- project(vect(src, query = sql), "+proj=laea +lat_0=-90")
@cdseoo
cdseoo / pve-trick-sriov-vf-configuration
Created February 26, 2023 14:24 — forked from piyoki/pve-trick-sriov-vf-configuration
Enable SR-IOV VF on Proxmox 7+
# The following is a step-by-step example for enabling SR-IOV VF on Promxox 7+ with BCM57810 10G NIC
---
References
https://forum.proxmox.com/threads/enabling-sr-iov-for-intel-nic-x550-t2-on-proxmox-6.56677/
https://zhuanlan.zhihu.com/p/91197211
https://zhuanlan.zhihu.com/p/356437308
https://zhiliao.h3c.com/Theme/details/24770
https://blog.csdn.net/Jackykxy/article/details/120585563
Cheef's Grand APDU List Smartcard Selected Information APDU list
Reference: http://web.archive.org/web/20090630004017/http://cheef.ru/docs/HowTo/APDU.info
#------------+------------------------+------------------------+----------------------+--------------------------------+
|ClaIns P1 P2|Lc Send Data |Le Recv Data | Specification | Description |
+------------+------------------------+------------------------+----------------------+--------------------------------+
| 04 | ISO 7816-9 6.3 | DEACTIVATE FILE |
| A0 04 00 00 00 | 3GPP TS 11.11 | INVALIDATE |
| A0 04 00 00 00 | SAGEM SCT U34 6.15 | INVALIDATE |
+------------+------------------------+------------------------+----------------------+--------------------------------+
@bkaradzic
bkaradzic / orthodoxc++.md
Last active January 14, 2025 16:44
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

@nickhough
nickhough / uk-counties.json
Last active January 14, 2025 16:44
JSON United Kingdom Counties with Abbreviation and Country
[
{
"name":"Avon",
"abbreviation":"AVN",
"country":"England"
},
{
"name":"Bedfordshire",
"abbreviation":"BDF",
"country":"England"
@rofl0r
rofl0r / init.c
Created August 6, 2013 21:15
minimal init daemon by rich felker, author of musl libc
#define _XOPEN_SOURCE 700
#include <signal.h>
#include <unistd.h>
int main()
{
sigset_t set;
int status;
if (getpid() != 1) return 1;
@ruslan-kurchenko
ruslan-kurchenko / bin.sh
Last active January 14, 2025 16:41
Salesforce | Enable Service Presence Status Access for a permission set
# A terminal should be connected to the org using SFDX CLI!
# dev - the name of the org
# Omni_Channel_Presence_Statuses - the name of the permission set
# "Available for Cases,Away,Missed Cases" - the list of statuses to enable
node index.js dev Omni_Channel_Presence_Statuses "Available for Cases,Away,Missed Cases"
@agorushkin
agorushkin / types.xml
Created April 12, 2023 03:25
DayZ Item IDs in their designated categories
{
"ammo": [
"#Boxed Ammo",
"AmmoBox_00buck_10rnd",
"AmmoBox_12gaRubberSlug_10Rnd",
"AmmoBox_12gaSlug_10Rnd",
"AmmoBox_22_50Rnd",
"AmmoBox_357_20Rnd",