Skip to content

Instantly share code, notes, and snippets.

@zyxar
zyxar / exercise.tour.go
Last active April 15, 2024 07:08
tour.golang exercise solutions
/* Exercise: Loops and Functions #43 */
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) float64 {
z := float64(2.)
@kimus
kimus / ufw.md
Created March 2, 2014 22:46
NAT and FORWARD with Ubuntu’s ufw firewall

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.

@unbracketed
unbracketed / branch-fu.md
Created April 7, 2015 17:49
Moving commits between branches

Example: Moving up to a few commits to another branch

Branch A has commits (X,Y) that also need to be in Branch B. The cherry-pick operations should be done in the same chronological order that the commits appear in Branch A.

cherry-pick does support a range of commits, but if you have merge commits in that range, it gets really complicated

git checkout branch-B
git cherry-pick X
git cherry-pick Y
@Ezka77
Ezka77 / Radio.m3u
Last active February 24, 2024 00:23
RadioFrance m3u playlist
#EXTM3U
#EXTINF:0,France Culture - direct
http://direct.franceculture.fr/live/franceculture-midfi.mp3
#EXTINF:0,France Inter
http://icecast.radiofrance.fr/franceinter-hifi.aac?id=radiofrance
#EXTINF:0,France Musique
http://direct.francemusique.fr/live/francemusique-midfi.mp3
#EXTINF:0,France Info
https://stream.radiofrance.fr/franceinfo/franceinfo_hifi.m3u8
#EXTINF:0,France Culture - alternative link
@AlbertoMonteiro
AlbertoMonteiro / 01.md
Last active January 23, 2024 10:11
Migration from Moq to NSubstitute