Skip to content

Instantly share code, notes, and snippets.

@mlen
mlen / flac2alac
Last active April 8, 2025 16:40
FLAC to ALAC converter. Requires Mac OS X and `flac` binary installed (ie. via Homebrew: `brew install flac`).
#!/usr/bin/env bash
set -e
convert_to_alac() {
flac="$1"
aiff="${flac%.*}.aiff"
alac="${flac%.*}.m4a"
flac -s -d --force-aiff-format -o "$aiff" "$flac"
afconvert -f m4af -d alac "$aiff" "$alac"
@sukharevd
sukharevd / wildfly-install.sh
Last active April 8, 2025 16:39
Script to install JBoss Wildfly 10.x as service in Linux
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final
@pedrohdz
pedrohdz / flac2alac.sh
Created June 26, 2021 14:36
Replace FLAC with ALAC version while preserving metadata and cover art
#! /usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
while IFS= read -r -d '' source; do
echo
echo ===============================================================================
path=$(dirname "$source")
@K1ethoang
K1ethoang / Active StarUml version 6 for Window | MacOS | Linux.md
Last active April 8, 2025 16:38
Active StarUml version 6 for Window | MacOS | Linux
@palkan
palkan / README.md
Last active April 8, 2025 16:36
remote_capybara.rb

Rails System tests in Docker (Selenium version)

Running Chrome locally

You need ChromeDriver (and Chrome) installed locally and running.

You can install ChromeDriver with Homebrew on MacOS:

brew install chromedriver
@graninas
graninas / haskeller_competency_matrix.md
Last active April 8, 2025 16:34
Haskeller competency matrix
@pelikhan
pelikhan / genaiscript.d.ts
Last active April 8, 2025 16:40
poem #genaiscript
/**
* GenAIScript Ambient Type Definition File
* @version 1.125.2
*/
type OptionsOrString<TOptions extends string> = (string & {}) | TOptions
type ElementOrArray<T> = T | T[]
interface PromptGenerationConsole {
log(...data: any[]): void
@tykurtz
tykurtz / grokking_to_leetcode.md
Last active April 8, 2025 16:33
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

// ==UserScript==
// @name Video Sound Booster (영상 사운드 증폭기)
// @namespace http://tampermonkey.net/
// @version 1.2
// @description Boosts the volume of HTML5 videos and allows hiding the controls. 페이지의 HTML5 영상 사운드를 증폭시키고 컨트롤러를 숨길 수 있습니다.
// @author Gemini
// @match *://*/*
// @grant GM_addStyle
// @grant GM_getValue
// @grant GM_setValue