Edit: This list is now maintained in the rust-anthology repo.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
counter=1 | |
for f in * ; do | |
file_name=$(basename $f); | |
split_file_name=(${file_name//./ }); | |
file_name_without_extension=${split_file_name[0]} | |
gsed -i "1i # ${counter}. ${file_name_without_extension^^} \ | |
" $file_name | |
((counter=counter+1)) | |
done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('[Amazon CloudWatch Notification]'); | |
//Taken from https://raw.githubusercontent.com/ashiina/aws-lambda-cloudwatch-slack/master/handler.js | |
var ALARM_CONFIG = [ | |
{ | |
channel: "#cloudwatch-alerts", | |
mention: "<@here> ", | |
color: "#F35A00", | |
severity: "CRITICAL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# global settings | |
yabai -m config mouse_follows_focus off | |
yabai -m config focus_follows_mouse off | |
yabai -m config window_placement second_child | |
yabai -m config window_topmost on | |
yabai -m config window_shadow off | |
yabai -m config window_opacity on | |
yabai -m config active_window_opacity 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs').promises; | |
const jsonData = require('./generated.json'); | |
const JSONToCSV = require('json2csv').parse; | |
const fields = ['balance', 'age', 'name', 'gender', 'company', 'email', 'phone']; | |
const opts = { fields: fields }; | |
async function convert() { | |
const csv = JSONToCSV(jsonData, opts); | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i myinput.aif -f mp3 -acodec libmp3lame -ab 320000 -ar 44100 myoutput.mp3 | |
ffmpeg -i myinput.m4a -f mp3 -acodec libmp3lame -ab 320000 -ar 44100 myoutput.mp3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clusters (K) | Bag of Words | VLAD | |
---|---|---|---|
20 | 0.6455 | 0.9576 | |
40 | 0.7513 | 0.9735 | |
60 | 0.7724 | 0.9682 | |
80 | 0.7671 | 0.9576 | |
100 | 0.7989 | 0.9682 | |
120 | 0.8465 | 0.9682 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -rl ".exe" . | sed 's/./\\&/g' | xargs rm -- | |
# https://unix.stackexchange.com/a/55990/319910 |
- In pavucontrol go to the output device tab.
- Choose the advanced option below the bluetooth device.
- There you can set the latency offset to 600ms. Problem solved.
NewerOlder