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
import iterm2 | |
WORKING_DIRECTORY = "/path/to/your/folder" | |
async def main(connection): | |
app = await iterm2.async_get_app(connection) | |
window = app.current_terminal_window | |
if window is not None: | |
# Get the current session (pane) |
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
function killr(){ | |
ps -ef | grep puma | awk '{print $2}' | xargs kill -9 >> /dev/null 2>&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 defined?(PryByebug) | |
Pry.config.pager = false | |
Pry.commands.alias_command 'c', 'continue' | |
Pry.commands.alias_command 's', 'step' | |
Pry.commands.alias_command 'n', 'next' | |
Pry.commands.alias_command 'e', 'exit' | |
end |
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 bash | |
echo "Installing Language Tool server using brew" && | |
brew install languagetool && | |
echo "Starting Language Tool Service" && | |
brew services start languagetool | |
# install the browser extension from: https://languagetool.org/#firefox_chrome | |
# Go to extension options > advanced > LanguageTool server > Select "Local server (localhost) - requires LanguageTool server running locally" |
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
git config --global alias.logline "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
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 bash | |
## Download audio files of book: | |
## IELTS, 4th Edition | |
## freely available on: https://barronsbooks.com/tp/ielts/audio/index_d83rd2.html | |
# https://barronsbooks.com/tp/ielts/audio/d83rd2/Track%2001.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
openapi: '3.0.0' | |
info: | |
title: API Teams | |
version: '1.0' | |
description: API for managing Teams | |
contact: | |
name: Elio Capelati Junior | |
email: [email protected] | |
servers: | |
- url: 'http://localhost:8080/v1' |
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
import time | |
def recursive_fib_memo(val, memo): | |
if val <= 1: | |
return val | |
elif val not in memo: | |
memo[val] = recursive_fib_memo(val - 2, memo) + recursive_fib_memo(val - 1, memo) | |
return memo[val] |
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
#!/bin/bash | |
sudo launchctl stop com.apple.bluetoothd | |
sudo launchctl start com.apple.bluetoothd |
NewerOlder