Skip to content

Instantly share code, notes, and snippets.

View DaniruKun's full-sized avatar
:octocat:
Processing...

danirukun DaniruKun

:octocat:
Processing...
View GitHub Profile

Ecto Vis

Mix.install([
  {:kino, "~> 0.6.2"},
  {:kino_vega_lite, "~> 0.1.1"},
  {:ecto, "~> 3.8"},
  {:libgraph, "~> 0.16.0"}
])
@borcean
borcean / t480-fedora-fingerprint.md
Last active October 29, 2024 11:48
ThinkPad T480 fingerprint reader on Fedora Linux

ThinkPad T480 fingerprint reader on Fedora Linux

Background

The Synaptics fingerprint sensor (06cb:009a) present on my T480 is not supported by libfprint and fprintd as it requires a non-free binary blob. uunicorn created open-fprintd, a replacement for fprintd, that allows for loading of binary blobs. In conjunction with their python-validity driver we are able to make use of the inbuilt fingerprint reader. The following instructions were tested against Fedora Linux 35.

Installing open-fprintd and python-validity

sudo dnf copr enable tigro/python-validity
sudo dnf install open-fprintd fprintd-clients fprintd-clients-pam python3-validity
@Ryu1845
Ryu1845 / clip.sh
Created November 21, 2021 20:14
Download only part of a youtube video
#!/bin/bash
clip() {
YOUTUBE_URL="${1}"
START_TIME="${2}"
END_TIME="${3}"
END_FILENAME="${4}"
AUDIO_URL="$(yt-dlp "${YOUTUBE_URL}" -g -f bestaudio)"
VIDEO_URL="$(yt-dlp "${YOUTUBE_URL}" -g -f bestvideo)"
ffmpeg \
@PJUllrich
PJUllrich / big-o.md
Last active October 14, 2024 21:37
Big-O Time Complexities for Elixir Data Structures

Big-O Time Complexities for Elixir data structures

Map [1]

Operation Time Complexity
Access O(log n)
Search O(log n)
Insertion O(n) for <= 32 elements, O(log n) for > 32 elements [2]
Deletion O(n) for <= 32 elements, O(log n) for > 32 elements
@daryloid
daryloid / dark-wxmac.md
Last active May 14, 2021 06:08
Fixes wxmac dark mode

macOS 11.3.1

Edit homebrew formula

vim /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/wxmac.rb

diff --git a/Formula/wxmac.rb b/Formula/wxmac.rb
index 60dd92c233..81703bfb3c 100644
--- a/Formula/wxmac.rb
@upbit
upbit / README.md
Last active August 30, 2024 13:38 — forked from ZipFile/README.md
Pixiv OAuth Flow (with Selenium)

Retrieving Auth Token (with Selenium)

  1. Setup, install Selenium/ChromeDriver
pip install selenium
# download chromedriver from https://chromedriver.storage.googleapis.com/index.html?path=91.0.4472.101/
# eg: wget https://chromedriver.storage.googleapis.com/91.0.4472.101/chromedriver_mac64.zip && unzip chromedriver_mac64.zip
@thomaspoignant
thomaspoignant / Makefile
Last active October 28, 2024 03:43
My ultimate Makefile for Golang Projects
GOCMD=go
GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet
BINARY_NAME=example
VERSION?=0.0.0
SERVICE_PORT?=3000
DOCKER_REGISTRY?= #if set it should finished by /
EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true
GREEN := $(shell tput -Txterm setaf 2)
@emilianavt
emilianavt / BestVTuberSoftware.md
Last active November 3, 2024 10:59
Best VTuber Software

Best VTuber software

This is a list of the most commonly used and relevant vtubing software. The "best" will always be subjective and depend on your specific requirements. Overall, the information in this list is as accurate as I could figure it out, but there might be errors or some details might become out of date. If you find anything that needs to be corrected, please let me know. You can also note it in a comment.

Additional explanations:

  • iPhone means that an iPhone is basically required
  • iFacialMocap support means that tracking data can be received from the iFacialMocap iPhone app
  • VMC protocol means that the application can send and/or receive tracking data from other VMC protocol capable applications, allowing the combination of multiple tracking methods (e.g. VSeeFace receiving VR tracking from Virtual Motion Capture and iPhone/ARKit face tracking from Waidayo)
  • Tobii means that the Tobii eye tracker is supported
@m-radzikowski
m-radzikowski / script-template.sh
Last active October 26, 2024 11:24
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]