Skip to content

Instantly share code, notes, and snippets.

View mre's full-sized avatar
🪴
I like plants

Matthias Endler mre

🪴
I like plants
View GitHub Profile
FROM ubuntu:16.04
RUN PACKAGES="\
php-cli \
php-mysql \
php-intl \
php-xml \
php-curl \
php-dom \
" && \
@steve-jansen
steve-jansen / docker-inspect.sh
Created August 19, 2016 01:55
List labels for a docker container
docker inspect -f '{{ range $k, $v := .ContainerConfig.Labels -}}
{{ $k }}={{ $v }}
{{ end -}}' $cid
@laradevitt
laradevitt / index.html
Last active May 20, 2019 22:57
An adaptation of "Light YouTube Embeds by @labnol". Also embeds Vimeo; didn't need to build thumbnail url. Vanilla JS.
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<link rel="stylesheet" href="styles.css">
<script src="scripts.js"></script>
anonymous
anonymous / playground.rs
Created August 3, 2017 16:20
Rust code shared from the playground
extern crate libc;
use libc::c_char;
use std::ffi::CString;
fn gimme_cstring_pointer() -> *const c_char {
CString::new("hi").unwrap().as_ptr()
}
fn gimme_cstring() -> CString {
CString::new("hi").unwrap()
@ceejbot
ceejbot / deploy.yml
Last active August 11, 2021 16:03
Using Honeycomb's buildevents tool inside a github action
name: deploy service tar
on:
push:
branches:
- 'deploy/*'
jobs:
docker:
name: Build and archive service
runs-on: ubuntu-latest
let rects = [];
function visualize(analyser) {
analyser.fftSize = 2048;
var bufferLength = analyser.fftSize;
var dataArray = new Uint8Array(bufferLength);
function run() {
analyser.fftSize = 2048;
var bufferLengthAlt = analyser.frequencyBinCount;