Skip to content

Instantly share code, notes, and snippets.

View loic-roux-404's full-sized avatar
🌮
Trying things

Loïc Roux loic-roux-404

🌮
Trying things
View GitHub Profile
@toryalsip
toryalsip / install-latest-hugo.sh
Last active March 15, 2023 00:51
Download latest hugo
#!/bin/bash
if [ -z $HUGO_VERSION ] ;then
HUGO_VERSION="latest"
API_ENDPOINT="https://api.github.com/repos/gohugoio/hugo/releases/latest"
else
API_ENDPOINT="https://api.github.com/repos/gohugoio/hugo/releases/tags/v$HUGO_VERSION"
fi
HUGO_INSTALL_FILE="/tmp/hugo.deb"
DOWNLOAD_URL=$(curl -s $API_ENDPOINT \
| grep "browser_download_url.*hugo_extended.*_linux-amd64\.deb" \
@fopina
fopina / mic_client.py
Created July 28, 2016 12:24
microphone streaming with pyAudio
#!/usr/bin/env python
import pyaudio
import socket
import sys
FORMAT = pyaudio.paInt16
CHANNELS = 1
RATE = 44100
CHUNK = 4096