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
$response = $client->post('http://example.com/api', [ | |
'multipart' => [ | |
[ | |
'name' => 'document', | |
'filename' => <filename> | |
'contents' => "@$path_to_file" | |
], | |
[ | |
'name' => 'metadata', | |
'headers' => ['Content-Type' => 'application/json'] |
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
# Activate Pyenv in shell | |
eval "$(pyenv init -)" | |
# Add Poetry to shell | |
export PATH=$HOME/.poetry/bin:$PATH | |
# Adding alias for pyenv to avoid warnings with brew doctor | |
alias brew='env PATH=${PATH//$(pyenv root)\/shims:/} brew' | |
# Visual Studio Code via zsh |
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 max7219 | |
from machine import Pin, SPI | |
spi = SPI(1, baudrate=10000000, polarity=1, phase=0, sck=Pin(14), mosi=Pin(13)) | |
ss = Pin(15, Pin.OUT) | |
display = max7219.Matrix8x8(spi,ss,4) | |
display.text('1234',0,0,1) | |
display.show() |
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
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 | |
# Set a blazingly fast keyboard repeat rate | |
defaults write NSGlobalDomain KeyRepeat -int 1 | |
defaults write NSGlobalDomain InitialKeyRepeat -int 15 | |
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40 | |
# Daily Updates | |
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1 | |
defaults write com.apple.dashboard devmode -bool true | |
defaults write com.apple.ActivityMonitor ShowCategory -int 0 |