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
# Get rid of color codes | |
mutate { | |
gsub => ["message", "\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]", ""] | |
} |
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
-- http://www.postgresql.org/message-id/[email protected] | |
CREATE OR REPLACE FUNCTION | |
random_text(INTEGER) | |
RETURNS TEXT | |
LANGUAGE SQL | |
AS $$ | |
SELECT array_to_string(array( | |
SELECT SUBSTRING('23456789abcdefghjkmnpqrstuvwxyz' | |
FROM floor(random()*31)::int+1 FOR 1) |
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
if [[ -o login ]]; then | |
TMUX_PREFIX="" | |
if [[ ! -z "$TMUX" ]] ; then | |
# Via | |
# <http://blog.yjl.im/2014/12/passing-escape-codes-for-changing-font.html>: | |
TMUX_PREFIX='\ePtmux;\e' | |
TMUX_POSTFIX='\e\\' | |
fi | |
# Indicates start of command output. Runs just before command executes. |
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
# default os is linux | |
matrix: | |
include: | |
- language: php | |
php: 7.2 | |
before_script: | |
- composer install | |
after_script: | |
- sh .travis.coverage.sh |
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
# Taken from https://www.reddit.com/r/MacOS/comments/i4czgu/big_sur_airpods_script/gck3gz3/ | |
# by https://github.com/smithumble | |
use framework "IOBluetooth" | |
use scripting additions | |
set AirPodsName to "AirPods" | |
on getFirstMatchingDevice(deviceName) | |
repeat with device in (current application's IOBluetoothDevice's pairedDevices() as list) |