Skip to content

Instantly share code, notes, and snippets.

View christian-blades-cb's full-sized avatar

Christian Blades christian-blades-cb

View GitHub Profile
@christian-blades-cb
christian-blades-cb / hevc_gpu_convert.sh
Created July 24, 2023 19:58
HEVC with ffmpeg and GPU
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p ffmpeg
for v in "$@"; do
ffmpeg -i "$v" -map 0:v -map 0:a -c:v hevc_nvenc -preset slow -crf 25 -tag:v hvc1 -q:a 100 "${v%.*}--x265.mp4"
exitcode=$?
if [ -z "$NO_DELETE" ] && [ $exitcode -eq 0 ]; then
rm "$v"
fi
done
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p ffmpeg
for v in "$@"; do
ffmpeg -i "$v" -c:v hevc -preset slow -crf 25 -tag:v hvc1 -q:a 100 "${v%.*}--x265.mp4"
exitcode=$?
if [ -z "$NO_DELETE" ] && [ $exitcode -eq 0 ]; then
rm "$v"
fi
done
{ "blue": { "up": 12, "down": 0} }
[leaf_paths as $path | {"key": $path | join("_"), "value": getpath($path)}] | from_entries
Video: Video: We Are The Champions http://bit.ly/1dVMYJ WHO WOULDNT FAVOR A CHAMPIONS WEBPAGE http://on.fb.me/1dVMYI WE ARE THE CHAMPIONS WEBPAGE http://bit.ly/1dkVN4 WE DO IT AGAIN AND AGAIN http://bit.ly/29zFTGs CHAMPIONS WEBPAGE http://bit.ly/29zFTGs http://bit.ly/29zFTGs We will prevail CHAMPIONS WEBPAGE http://bit.ly/29zFTGs http://bit.ly/29zFTGs We will prevail http://transfer.yahoo.com/j/id/10001 William Shatner as Captain James T. Kirk
we just had to put up with this fucking idiot customer service rep for an electronics store . ive had it with his bullshit. ive had enough. ive had enough of this shit. ive written him a letter , and he will return my things if i do not get my account suspended. http://i.imgur.com/V1XSx.jpg
http://i.imgur.com/YXpg.jpg my.heads.up.this.is.a.fair.and.temperament.with.a.giant.ass.on.it.gaining.power.on.my.iphone.uta.phone.uta.ti.me.to.the.unity.game.android.com/uploads/levels/speedrun/4th.march.2013.1080p.BLURED.md5sum.bin
http://bit.ly/1dVMYJ FEATURE - THE HYPNOTIZER "
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
;; make sure use-package is installed
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
@christian-blades-cb
christian-blades-cb / init.el
Created September 25, 2019 13:32
emacs lsp python
;; pip install 'python-language-server[all]'
(when (executable-find "pyls")
(add-hook 'python-mode-hook #'company-mode)
(add-hook 'python-mode-hook #'lsp))
(use-package lsp-mode
:ensure t
:hook ((rust-mode . lsp)
(go-mode . lsp)
(python-mode . lsp))
(define-key global-map "\C-cc" 'org-capture)
(setq org-capture-templates
'(("t" "Todo" entry (file+headline "~/org/agenda.org" "Tasks")
"* TODO %?\n %i\n %a")
("j" "Journal" entry (file+datetree "~/org/journal.org")
"* %?\nEntered on %U\n %i\n %a")
("m" "TODO from mail" entry (file+headline "~/org/agenda.org" "Email")
"* TODO %?\nref: %a")
))

Emacs

import wave
import numpy as np
# band-pass filter https://plot.ly/python/fft-filters/
def bandpass(lowfreq, highfreq, framerate, frames):
# fL = 3900 / framerate
# fH = 4200 / framerate
fL = lowfreq / framerate
fH = highfreq / framerate
@christian-blades-cb
christian-blades-cb / rust_class.org
Last active March 2, 2018 03:24
Rust Class Resources

Rust Class

Getting Started

  • Install Rust: https://www.rustup.rs/
    • NOTE the other-installation-methods link, I recommend not piping the internet into your shell
  • Install rustfmt rustup component add rustfmt-preview
  • For code completion, install racer https://github.com/racer-rust/racer
  • For linting, install clippy cargo +nightly install clippy
    • NOTE: change your editor’s clippy command to cargo +nightly clippy to ensure that clippy also works in stable

References