Skip to content

Instantly share code, notes, and snippets.

@nico-lab
nico-lab / av1_nvenc.txt
Last active May 17, 2024 11:51
ffmpeg -h encoder=av1_nvenc
Encoder av1_nvenc [NVIDIA NVENC av1 encoder]:
General capabilities: dr1 delay hardware
Threading capabilities: none
Supported hardware devices: cuda cuda d3d11va d3d11va
Supported pixel formats: yuv420p nv12 p010le yuv444p p016le yuv444p16le bgr0 bgra rgb0 rgba x2rgb10le x2bgr10le gbrp gbrp16le cuda d3d11
av1_nvenc AVOptions:
-preset <int> E..V....... Set the encoding preset (from 0 to 18) (default p4)
default 0 E..V.......
slow 1 E..V....... hq 2 passes
medium 2 E..V....... hq 1 pass

👪 Co to "Gawryle"

🎤 Czy zespół pieśni i tańca "Gawryle" gra koncerty?

  • Nie bawimy się w muzykę pełnowymiarowo, to hobby obok normalnej pracy i studiów, stąd nie mamy dużych zasobów czasu, zmusza to nas do wybrania pomiędzy koncertowaniem a tworzeniem nowych utworów, wybieramy to drugie
  • Koncerty wymagałyby od nas dużego przygotowania by miały one jakąś wartość dla widza, aktualnie śpiewanie na żywo wychodzi nam tragicznie XD ale pracujemy nad tym

🎵 Czemu tak rzadko i późno nowe nutki?

  • Jak wyżej wyjaśnione, mamy też normalne prace i studia
  • Nie pomaga tu też fakt, że każdy utwór jest dopieszczany na każdej płaszczyźnie, od tekstu przez kompozycję melodii po późniejsze obróbki
  • A letniaki wychodzą jesienią, bo bawimy się w to w wakacje XD
@gd3kr
gd3kr / script.js
Created February 15, 2024 06:30
Download a JSON List of twitter bookmarks
/*
the twitter api is stupid. it is stupid and bad and expensive. hence, this.
Literally just paste this in the JS console on the bookmarks tab and the script will automatically scroll to the bottom of your bookmarks and keep a track of them as it goes.
When finished, it downloads a JSON file containing the raw text content of every bookmark.
for now it stores just the text inside the tweet itself, but if you're reading this why don't you go ahead and try to also store other information (author, tweetLink, pictures, everything). come on. do it. please?
*/

Problem

2023-09-27T10:52:26.802Z In(05) host-3241276 Using kernel build system.
2023-09-27T10:52:26.802Z In(05) host-3241276 /tmp/modconfig-MRgyG5/vmnet-only/bridge.c: In function ‘VNetBridgeSendLargePacket’:
2023-09-27T10:52:26.802Z In(05) host-3241276 /tmp/modconfig-MRgyG5/vmnet-only/bridge.c:1413:11: error: implicit declaration of function ‘skb_gso_segment’; did you mean ‘tcp_gso_segment’? [-Werror=implicit-function-declaration]
2023-09-27T10:52:26.802Z In(05) host-3241276  1413 |    segs = skb_gso_segment(skb, 0);
2023-09-27T10:52:26.802Z In(05) host-3241276       |           ^~~~~~~~~~~~~~~
2023-09-27T10:52:26.802Z In(05) host-3241276       |           tcp_gso_segment
2023-09-27T10:52:26.802Z In(05) host-3241276 /tmp/modconfig-MRgyG5/vmnet-only/bridge.c:1413:9: warning: assignment to ‘struct sk_buff *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2023-09-27T10:52:26.802Z In(05) host-3241276  1413 |    segs = skb_gso_segment(skb, 0);
@olegcherr
olegcherr / XCheckPermission.java
Created May 12, 2017 12:01
Android: Checking MIUI permissions
/*
* Copyright (c) 2017.
* qsboy.com 版权所有
* https://github.com/JasonQS/Anti-recall/blob/ec45306/Java/XCheckPermission.java
*/
package com.qiansheng.messagecapture;
import android.app.AppOpsManager;
import android.content.Context;
@dahlsailrunner
dahlsailrunner / SSL-nginx-Docker.md
Last active May 17, 2024 11:43
SSL with Docker images using nginx as reverse proxy

Docker with SSL and an nginx reverse proxy

Running your ASP.NET Core (or other) application in Docker using SSL should not be an overwhelming task. These steps should do the trick.

Run the following steps from a Linux terminal (I used WSL or WSL2 on Windows from the Windows Terminal).

1. Create a conf file with information about the cert you'll be creating

It should look something like the content below; call it my-site.conf or something like that.

@joeymeere
joeymeere / IntegrateSquadsX.md
Created April 17, 2024 17:55 — forked from valentinmadrid/IntegrateSquadsX.md
The SquadsX integration guide

The SquadsX integration guide

There are obstacles for some Solana dApps when wanting to add support for the SquadsX multisig extension wallet. We made a list of all of them to make it easier for you to work on the integration.

Getting access to SquadsX

We give every project that needs to integrate SquadsX into their dApp access to the SquadsX extension during integration. If you need access, please message @joeymeere on Telegram.

Overview

@santisbon
santisbon / Search my gists.md
Last active May 17, 2024 11:39
How to search gists.

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@YuMS
YuMS / update-git.sh
Created June 29, 2016 09:28
Update git to latest version on Ubuntu
#!/bin/bash
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git -y