Skip to content

Instantly share code, notes, and snippets.

View tsirysndr's full-sized avatar
🦀
I may be slow to respond.

Tsiry Sandratraina tsirysndr

🦀
I may be slow to respond.
View GitHub Profile
@juliangroen
juliangroen / guide.md
Last active March 26, 2024 09:29
Using Lima-vm to replace Docker Desktop on macOS

Replacing Docker Desktop with Lima-vm on macOS

Uninstall Docker Desktop

Navigate to Applications in Finder and drag "Docker" to the trash can

Remove Docker config file

mv ~/.docker/config.json ~/.docker/old-config.json

@niko
niko / README.md
Last active April 25, 2024 23:43 — forked from ePirat/spec.md
Icecast Protocol specification

An collection of documents about icecast/shoutcast streaming.

@abcdw
abcdw / nix vs guix.org
Last active February 17, 2024 14:21
nix vs guix.org

Nix vs Guix

These are notes to the stream: https://youtu.be/S9V-pcTrdL8

Some notes

  • We are not aware of a lot of GNU software available to us.
  • Seems that Guix more hacker-friendly/explorable.

General comparsion

DescriptionNixGuixComment
@Ciantic
Ciantic / Cargo.toml
Last active March 6, 2024 20:05
This example shows how to stream a file or shell execution stdout using Hyper and Futures (Rust)
[package]
name = "yourpackage"
version = "0.1.0"
authors = ["John Doe"]
edition = "2018"
[[bin]]
name = "example"
path = "stream-a-file-using-rust-hyper.rs"
@raineorshine
raineorshine / sendRawTransaction.js
Last active December 3, 2022 18:02
Sends a raw transaction with web3 v1.2.2, ethereumjs-tx v2.1.1, and Infura
const Web3 = require('web3')
const Tx = require('ethereumjs-tx').Transaction
// connect to Infura node
const web3 = new Web3(new Web3.providers.HttpProvider('https://mainnet.infura.io/INFURA_KEY'))
// the address that will send the test transaction
const addressFrom = '0x1889EF49cDBaad420EB4D6f04066CA4093088Bbd'
const privateKey = new Buffer('PRIVATE_KEY', 'hex')
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 25, 2024 04:06
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@Hopfengetraenk
Hopfengetraenk / DeezerDownload.py
Created February 24, 2017 18:58
DeezerDownload
#!python2
#coding:latin
"""
Author: --<>
Purpose:
Download and decrypt songs from deezer.
The song is saved as a mp3.
No ID3 tags are added to the file.
The filename contains album, artist, song title.
@walm
walm / main.go
Last active May 15, 2024 06:01
Simple Golang DNS Server
package main
import (
"fmt"
"log"
"strconv"
"github.com/miekg/dns"
)
@leommoore
leommoore / mongodb_ssl_with_letsencrypt.md
Last active August 16, 2022 17:35
MongoDB 3.2.x SSL with Letsencrypt

MongoDB 3.2.x SSL with Letsencrypt

Letsencrypt is an initative which aims to increase the use of encryption for websites. It basically allows people to apply for free certificates provided that they prove the they control the requested domain. We will look at the what is needed to secure your MongoDB installation. For more details on setting up a MongoDB server see MongoDB 3.2.x.

Set the hostname

We sould to set the hostname to match the name of the certificate we are going to optain.

sudo hostname mongo0.example.com

Then update the hostname file to set the server name permanently.

@xndc
xndc / tunejack.sh
Last active May 18, 2024 04:04
Instant radio streaming script using the TuneIn API
#!/bin/bash
# tunejack.sh uses the TuneIn public API (at opml.radiotime.com) to search for
# a radio station, print out its details and try to play it somehow.
if [ "$#" -eq 0 ]; then
echo "$0: search for a radio station using the TuneIn API"
echo "Usage: $0 PATTERN"
exit 1
fi