Skip to content

Instantly share code, notes, and snippets.

View winny-'s full-sized avatar
๐Ÿ‘‹
***status goes here***

Winston (Winny) Weinert winny-

๐Ÿ‘‹
***status goes here***
View GitHub Profile
@CMCDragonkai
CMCDragonkai / nix_string_and_path_concatenation.md
Last active February 21, 2025 06:54
Nix: String and Path Concatenation #nix #nixos

Nix String and Path Concatenation

From Bas van Dijk:

To understand these things I would recommend using nix-repl:

$ nix-repl
Welcome to Nix version 1.11.2. Type :? for help.
@alces
alces / ansible_local_playbooks.md
Last active May 22, 2025 21:59
How to run an Ansible playbook locally
  • using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
  • using inventory:
127.0.0.1 ansible_connection=local
@dpalomar
dpalomar / .gitattributes
Created April 8, 2016 12:43
Fixing CRLF with gitattributes
From this [issue](https://github.com/puphpet/puphpet/issues/1025#issuecomment-157059174):
I know that this issue is closed, but as I spent a lot of time to understand what was going on, I made some researches and I can explain why this happen, and you can fix it.
Using git config core.autocrlf true can help, but not on a multi-developpers project.
This command has to be the same on each developper machine, and that's not always the case.
You have to use the .gitattributes provided in the puphpet archive and edit it as follow (carefull, this file need to be in your project root)
You also need to use an IDE that allow you to save/edit files as LF (like phpstorm). You can check the type of the file in the bottom right corner, in the status bar (you'll see LF or CRLF while a file is opened)
@0x9090
0x9090 / torrc.examples.txt
Created February 8, 2016 06:47
torrc examples
This file is part of Whonix
Copyright (C) 2012 - 2014 Patrick Schleizer <[email protected]>
See the file COPYING for copying conditions.
**** Do NOT edit this file! ****
This file will show you examples you can copy and paste to /etc/tor/torrc
Additionally, you can read the official Tor Manual at:
https://www.torproject.org/docs/tor-manual.html.en
@greghendershott
greghendershott / pkgs.md
Created November 11, 2015 20:05
Some interesting Racket packages

Sound and Vision

identikon

rsound

Testing and Coverage

rackunit-chk

@cabrinha
cabrinha / perl-build.sh
Created July 31, 2015 17:01
Let's build perl-5.22.0 from source!
wget -qO - https://raw.github.com/tokuhirom/Perl-Build/master/perl-build | perl - 5.22.0 ~/perl-5.22.0
echo export PATH="~/perl-5.22.0/bin:$PATH" >> ~/.bashrc; source ~/.bashrc
wget -qO - https://cpanmin.us | perl - App::cpanminus
@sebz
sebz / grunt-hugo-lunrjs.md
Last active June 28, 2024 18:41
hugo + gruntjs + lunrjs = <3 search
@Mic92
Mic92 / gitolite-anongit
Last active January 29, 2025 04:41
Anonymous ssh access for gitolite
#/bin/sh
# save as /usr/local/bin/gitolite-anongit
# and chmod +x /usr/local/bin/gitolite-anongit
# ForceCommand may depend on the gitolite distribution
/usr/share/gitolite/gl-auth-command anongit "$@"
@max-mapper
max-mapper / 0.md
Last active May 12, 2025 13:51
JS hoisting by example

JavaScript function hoisting by example

Below are many examples of function hoisting behavior in JavaScript. Ones marked as works successfuly print 'hi!' without errors.

To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js

Notes on hoisting

(I may be using incorrect terms below, please forgive me)

@kirelagin
kirelagin / tmux-magic
Last active November 2, 2023 11:05
tmux magic for OpenRC
###
#
# tmux magic for OpenRC
#
# These functions do some tmux magic to let you run non-daemon programs
# (e.g. ones with ncurses interface) as daemons in tmux sessions.
# You just run `/etc/init.d/<service> start/stop` or add the service
# to a runlevel and later you can do `/etc/init.d/<service> attach` to
# see its console. Type `Ctrl+b d` to detach (in the default tmux configuration).
# We execute tmux with `-L`, so those sessions are not visible in the