Skip to content

Instantly share code, notes, and snippets.

View NightMachinery's full-sized avatar

Feraidoon Mehri NightMachinery

  • LMU Munich
View GitHub Profile
@felko
felko / config.el
Last active August 23, 2020 16:08
doom-emacs configuration for neuron-mode
;;; tools/neuron/config.el -*- lexical-binding: t; -*-
(defface neuron-stub-face
'((((class color) (min-colors 88) (background dark)) :foreground "#C16069" :underline "#C16069")
(((class color) (min-colors 88) (background light)) :foreground "#C16069" :underline "#C16069")
(((class color) :foreground "Red" :underline "Red"))
(t :inherit neuron-title-overlay-face))
"Face for stub links."
:group 'neuron-faces)
@premek
premek / mv.sh
Last active August 12, 2026 04:28
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
#
# Also see:
# - imv from renameutils
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste)
@Snarp
Snarp / google-docs-copy.js
Last active September 21, 2026 08:10
Script to allow copying from a protected Google Doc
/*
<https://stackoverflow.com/questions/40296831/is-it-possible-to-force-a-copy-of-a-protected-google-doc>
NOTE - 2021-05-24
-----------------
The script below isn't the fastest way to copy-and-paste from a protected
Google Doc. Before trying it, I'd suggest following MikoFrosty's advice from
the comments:
@makora9143
makora9143 / flax-vae.py
Last active June 9, 2023 14:41
Variational Autoencoder with Flax
from absl import app
from absl import flags
import jax.numpy as jnp
import numpy as np
import jax
from jax import nn as jnn
from jax import random
@lunarplasma
lunarplasma / Dixit_2player_variant.md
Last active February 14, 2026 03:14
[Board Games] Dixit 2-player cooperative variant

2 Player Rules Variant for Dixit

Original sauce: Brian M https://boardgamegeek.com/thread/676496/2-player-co-op-dixit-variant

Having just picked up Dixit, Lisa and I wanted to play it right away. But there are only two of us. We would be very silly to try to play it with only two players.

We are, of course, very silly.

I can't think of a way to play competitively and still give clues, so we went for a cooperative game instead.

@rjeczalik
rjeczalik / how-to-find-forks-of-deleted-repo.md
Created August 26, 2019 16:39
How to find forks of a deleted repository?
@petrochenkov-ak
petrochenkov-ak / mac-frontmost-app.sh
Last active August 3, 2024 18:53
macOS frontmost app #app
osascript <<EOF
tell application "System Events"
name of (first process whose frontmost is true)
end tell
EOF
lsappinfo info -only name `lsappinfo front` | awk -F'"' '{print $4}'
lsappinfo info -only pid `lsappinfo front` | awk -F'"=' '{print $2}'
lsappinfo info -only bundlepath `lsappinfo front` | awk -F'"' '{print $4}'
lsappinfo info -only bundleID `lsappinfo front` | awk -F'"' '{print $4}'
@Wheest
Wheest / org-movie.el
Created May 8, 2019 17:04
Early version of Emacs org-mode based movie watch list manager
;;; org-movie.el --- An org-mode movie watch list utility
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@ynakao
ynakao / init.el
Last active January 14, 2023 07:36
Circe to znc example
(use-package circe
:config
(setq circe-network-options
(quote
(("freenode-znc"
:host "znc.example.com"
:use-tls t
:port 6697
:user "zncusername/zncfreenode" ;; `zncfreenode` is freenode network name at your znc server
:pass "zncpassword")