Skip to content

Instantly share code, notes, and snippets.

View sickmz's full-sized avatar
🎯
Focusing

Matteo sickmz

🎯
Focusing
  • Parma
View GitHub Profile
### Add Docker's official GPG key:
$ sudo apt-get update
$ sudo apt-get install ca-certificates curl gnupg
$ sudo install -m 0755 -d /etc/apt/keyrings
$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
$ sudo chmod a+r /etc/apt/keyrings/docker.gpg
### Add the repository to Apt sources:
$ echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
@sickmz
sickmz / powershell-video-encoder-with-ffmpeg.ps1
Created May 23, 2024 20:48
convert iPhone MOV to MP4 with nvidia hardware acceleration (h264_nvenc)
# path input
$inputPath = "C:\Users\matteo\Desktop\transcode"
# path output
$outputPath = "C:\Users\matteo\Desktop\transcode\output"
if (-not (Test-Path -Path $outputPath -PathType Container)) {
New-Item -ItemType Directory -Path $outputPath | Out-Null
}
@sickmz
sickmz / yahoofinance.gs
Last active September 3, 2023 12:48
Fetch the price (EU format) of an asset from Yahoo Finance and saved to Google Sheet
/**
* Fetches the price of a financial instrument from Yahoo Finance.
*
* @param {string} ticker The symbol/ticker of the financial instrument (e.g. "BTC-EUR" or "VWCE.MI").
* @return {string} The price of the financial instrument.
* @customfunction
*/
function YAHOOFINANCE(ticker) {
const url = `https://finance.yahoo.com/quote/${ticker}?p=${ticker}`;
const res = UrlFetchApp.fetch(url, { muteHttpExceptions: true });
"Darwin Kernel Version 16.5.0: Thu Feb 23 23:22:54 PST 2017; root:xnu-3789.52.2~7/RELEASE_ARM64_T7000";
OFFSET_ZONE_MAP = 0xfffffff007558478;
OFFSET_KERNEL_MAP = 0xfffffff0075b4050;
OFFSET_KERNEL_TASK = 0xfffffff0075b4048;
OFFSET_REALHOST = 0xfffffff00753aba0;
OFFSET_BZERO = 0xfffffff00708df80;
OFFSET_BCOPY = 0xfffffff00708ddc0;
OFFSET_COPYIN = 0xfffffff00718d3a8;
OFFSET_COPYOUT = 0xfffffff00718d59c;