Skip to content

Instantly share code, notes, and snippets.

View fulmicoton's full-sized avatar
🤪

Paul Masurel fulmicoton

🤪
View GitHub Profile
@barkbay
barkbay / ec2-nvme-provisioner.yaml
Last active October 31, 2021 04:53
EC2 NVME Local Storage Provisioner
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-storage
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Delete
mountOptions:
- noatime
- nodiratime
@KodrAus
KodrAus / Profile Rust on Linux.md
Last active November 14, 2023 17:19
Profiling Rust Applications

Profiling performance

Using perf:

$ perf record -g binary
$ perf script | stackcollapse-perf.pl | rust-unmangle | flamegraph.pl > flame.svg

NOTE: See @GabrielMajeri's comments below about the -g option.

@rhulha
rhulha / SpeechClient.java
Created October 2, 2016 22:32
A small example Google Natural Language Analyzer demo client with microphone recording.
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.sound.sampled.*;
import net.raysforge.commons.Codecs;
import net.raysforge.commons.Json;