https://github.com/albertomh/py-gmail-scrape https://developers.google.com/gmail/api/v1/reference/users/messages/attachments/get
This file contains hidden or 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
| package errors | |
| import ( | |
| "errors" | |
| ) | |
| var ( | |
| ErrNotFound = errors.New("Error: Document not found") | |
| ErrNoContent = errors.New("Error: Document not found") | |
| ErrInvalidSlug = errors.New("Error: Invalid slug") |
This file contains hidden or 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
| package views | |
| import ( | |
| "encoding/json" | |
| "errors" | |
| "net/http" | |
| log "github.com/sirupsen/logrus" | |
| pkg "github.com/L04DB4L4NC3R/jobs-mhrd/pkg" |
This file contains hidden or 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
| https://muffinman.io/uploading-files-using-fetch-multipart-form-data/ |
This file contains hidden or 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 | |
| while p= read -r line; do | |
| heroku config:set $line | |
| done < ./.env |
This file contains hidden or 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
| # Logs weren't giving me any clues. | |
| # So I scaled down and scaled back up the dynos. | |
| #This solved the problem for me: | |
| heroku ps:scale web=0 | |
| # Waited a few seconds... | |
| sleep(4) | |
| heroku ps:scale web=1 |
This file contains hidden or 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
| GITHUB_PERSONAL_ACCESS_TOKEN= | |
| GITHUB_TEMPLATE_NAME= | |
| GITHUB_TEMPLATE_OWNER= | |
| GITHUB_ORGANIZATION_OWNER= |
This file contains hidden or 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
| <script> | |
| (async () => { | |
| const bytes = await fetch("target/wasm32-unknown-unknown/debug/car_fib.wasm") | |
| const response = await bytes.arrayBuffer() | |
| const result = await WebAssembly.instantiate(response, {}) | |
| console.log(result.instance.exports.add(10, 3)) | |
| })() | |
| </script> |
This file contains hidden or 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
| timestamp=`date | sed 's/\s/_/g'` | |
| filename=technoscape_abstract_form_details_${timestamp} | |
| heroku pg:psql -a hidden-hollows-55794 --command "\copy (select * from main_uploader) to $filename.csv csv delimiter ' ';" |
This file contains hidden or 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
| nmcli dev wifi | |
| nmcli dev wifi connect $ESSID password $WIFI_PASSWORD |