Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

snowman snowman

I may be slow to respond.
View GitHub Profile
snowman / uniquify-recentf.el
Created May 14, 2022 — forked from vedang/uniquify-recentf.el
Implements functionality similar to `uniquify' to make `recentf' results bearable.
View uniquify-recentf.el
(require 'recentf)
;; Implement functionality similar to uniquify to make recentf results bearable
;; Requires s.el and dash.el - awesome libraries from Magnar Sveen
;; Hat-tip : Baishampayan Ghose for the clojure implementation at
(require 's)
(require 'dash)
snowman / test-magit-stage-minimal.el
Created Jan 21, 2022 — forked from twlz0ne/test-magit-stage-minimal.el
Minimal configuration for testing magit stage #Emacs
View test-magit-stage-minimal.el
;;; Usage: /path/to/emacs -nw -Q -l /path/to/test-magit-stage-minimal.el --eval '(load-magit "/path/to/magit/lisp")'
;;; Created: 2020-03-04 03.05.24
;;; Updated: 2020-03-04 21.17.19
;;; Version: 2
;; ------------------------------------------------------------------
;; elpa
snowman / trial.key
Created Aug 4, 2021 — forked from huqi/trial.key
Beyond Compare 4 license for Mac
View trial.key
Beyond Compare 4
Licensed to: ASIO Allsoftinone
Quantity: 1 user
Serial number: 1822-9597
License type: Pro Edition for Windows
snowman / builder_example.js
Last active Jul 25, 2021 — forked from necccc/builder_example.js
Gist for Transform your codebase using codemods
View builder_example.js
// create a function call that looks like
// "myfunc(someVar, 'bar')"
const callExpr = j.callExpression(j.identifier("myFunc"), [
snowman / switch_windows_with_same_process_name.ahk
Last active Jul 6, 2021
AutoHotkey - Switch windows with same process name
View switch_windows_with_same_process_name.ahk
#SingleInstance Force
DetectHiddenWindows, Off
;; Description
;; This AutoHotkey script is to switch between different windows of the same process name.
;; The checking algorithm is based on the app's process basename without path.
snowman /
Created Feb 1, 2021 — forked from joyrexus/
Perl one-liners


perl -e 'print "hello world!\n"'

A simple filter:

perl -ne 'print if /REGEX/'

Filter out blank lines (in place):

snowman / background.html
Created Dec 12, 2020 — forked from srsudar/background.html
Pasting from the system clipboard using a Chrome extension.
View background.html
<!DOCTYPE html>
<script src="background.js"></script>
<textarea id="sandbox"></textarea>
snowman /
Created Dec 9, 2020 — forked from tzmartin/
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
snowman / For Mac 4.2.6 unlimited
Created Dec 7, 2020 — forked from rise-worlds/For Mac 4.2.6 unlimited
Beyond Compare 4 license for Windows, Mac, Linux
View For Mac 4.2.6 unlimited

for 4.2.4 or higher,4.2.5,4.2.6 ,it's works , this is the way which makes Always in evaluation mode 。

  1. go to the dir : /Applications/Beyond
  2. change the name BCompare to BCompare.bak
  3. touch a file name BCompare , and chmod a+u BCompare
  4. insert BCompare the content :
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
snowman / chars.cs
Last active Apr 2, 2020
C sharp basic #newbie
View chars.cs
// chars.cs
// A listing to print out a number of characters and their numbers
using System;
class chars
public static void Main()