Skip to content

Instantly share code, notes, and snippets.

@eduard-sukharev
eduard-sukharev / cue_to_flac.py
Last active May 1, 2024 21:11 — forked from Theldus/cue_to_flac.py
CUE splitter using ffmpeg (to flac)
import os
import subprocess
import sys
from itertools import chain
import argparse
parser = argparse.ArgumentParser(description="Split audio file by .cue metadata.")
parser.add_argument(
"cue-files",
help="CUE file to be parsed. Multiple files can be passed. If no files provided, reads from stdin",
@dineshsprabu
dineshsprabu / chrome_extension_helper.md
Last active May 1, 2024 21:11
[Chrome Extension] Chrome Extension Helper

Get current tab URL

Add below to permissions on manifest

"permissions": [
    "tabs",
 "http://*/*", 
(ns workshop.main
(:require ["package:flutter/material.dart" :as m]
["package:google_fonts/google_fonts.dart" :as fonts]
#_["example.dart" :as ex]
[cljd.flutter.alpha2 :as f]))
(def normal-text-style
(fonts/GoogleFonts.sourceCodePro
.fontSize 26
.fontWeight m/FontWeight.w700
@nicolasdao
nicolasdao / chrome_extension_guide.md
Created July 8, 2020 07:16
Chrome extension. Keywords: chrome extension
@sde1000
sde1000 / flacsplit.py
Created October 17, 2013 10:01
Script to split flac files with embedded cue sheet and tags into mp3s
#!/usr/bin/env python
"""Split a flac file with cuesheet and embedded tags into multiple
files, optionally re-encoded as mp3.
"""
version="0.1"
import os,subprocess,re,os.path,sys
@Madis0
Madis0 / chromeflagstweaks.md
Last active May 1, 2024 21:10
Useful Chrome chrome://flags tweaks
@troyhunt
troyhunt / rick-roll-content-scraper.js
Created August 19, 2020 07:41
A Cloudflare worker to redirect image requests from dickhead content scraper's site to a Rick Roll
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
async function fetchAndApply(request) {
let response = await fetch(request)
let referer = request.headers.get('Referer')
let contentType = response.headers.get('Content-Type') || ''
if (referer && contentType.startsWith('image/')) {
@ipatalas
ipatalas / commit-message.js
Last active May 1, 2024 21:09
Azure DevOps bookmarklets
var header = $('.grid-header');
var itemName = "";
var itemId = undefined;
var type = undefined;
if ($('.work-item-form-id').length == 1) {
itemId = $('.work-item-form-id').text();
itemName = $('.work-item-form-title input').val();
type = $('.work-item-type-icon-host').find('i').attr('aria-label');
} else {
@NickCraver
NickCraver / DmpAnalysis.linq
Last active May 1, 2024 21:09
DMP Analysis in LinqPad
<Query Kind="Program">
<NuGetReference Prerelease="true">Microsoft.Diagnostics.Runtime</NuGetReference>
<Namespace>Microsoft.Diagnostics.Runtime</Namespace>
<Namespace>System</Namespace>
<Namespace>System.IO</Namespace>
<Namespace>System.Linq</Namespace>
<Namespace>System.Text</Namespace>
<Namespace>Microsoft.Diagnostics.Runtime.Utilities</Namespace>
</Query>
@ipatalas
ipatalas / DmpAnalysis.linq
Created May 11, 2020 10:34 — forked from NickCraver/DmpAnalysis.linq
DMP Analysis in LinqPad
<Query Kind="Program">
<NuGetReference Prerelease="true">Microsoft.Diagnostics.Runtime</NuGetReference>
<Namespace>Microsoft.Diagnostics.Runtime</Namespace>
<Namespace>System</Namespace>
<Namespace>System.IO</Namespace>
<Namespace>System.Linq</Namespace>
<Namespace>System.Text</Namespace>
<Namespace>Microsoft.Diagnostics.Runtime.Utilities</Namespace>
</Query>