Skip to content

Instantly share code, notes, and snippets.

@freeonterminate
freeonterminate / FMX.Log.pas
Last active August 29, 2015 13:55
FMX.Types.Log が色々ダメ(Log.d の実態が Log.i だったり、Windows だと出力されなかったり、TAG が全く意味が無かったり)なので作った。
{
最新版は github に引っ越しました
FMX.Log newest version moved to github.
https://github.com/freeonterminate/delphi/tree/master/FMXLog
}
@tonnylitao
tonnylitao / SmartSpeed.swift
Last active July 5, 2022 05:15
Smart Speed like Overcast. Smart Speed means shorten the silence of audio for saving time.
do {
try audioPlayer = AVAudioPlayer(contentsOf: url)
audioPlayer.isMeteringEnabled = true
audioPlayer.enableRate = true
audioPlayer.prepareToPlay()
} catch let error as NSError {
print("audioPlayer error \(error.localizedDescription)")
}
audioPlayer.play()
@janeczku
janeczku / 00-cloud-config.yml
Last active May 24, 2024 04:06
Annotated RancherOS Cloud-init configuration snippets
#cloud-config
# Set the hostname for this machine (takes precedence over hostname assigned by DHCP lease).
hostname: myhost
# Authorize SSH keys for the `rancher` sudoer user
ssh_authorized_keys:
- ssh-rsa AAA...ZZZ example1@rancher
@jayvdb
jayvdb / RefreshEnv.sh
Last active February 4, 2022 07:01
chocolatey RefreshEnv for bash
function refreshenv
{
powershell -NonInteractive - <<\EOF
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
Update-SessionEnvironment
# Round brackets in variable names cause problems with bash
Get-ChildItem env:* | %{
if (!($_.Name.Contains('('))) {
@diyfr
diyfr / teleport.md
Last active July 5, 2022 17:00
Configurer Teleport derrière Traefik

TELEPORT Un PAM open Source pour se connecter à des serveurs via le navigateur

https://goteleport.com/docs/

Serveur Teleport

Il faut ouvrir les ports de 3023 à 3027 sur la console azure

Ajouter dans un compose

version: '3.7'