# services.py
import requests
class CsvContentFetcher:
def fetch(self, csv_uri: str) -> str:
# Depending on the scheme in `csv_uri`, fetch the content from S3 or local file
if csv_uri.startswith("s3://"):
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
2023-11-23 16:06:00 | |
2023-11-23 16:06:00 LocalStack version: 3.0.0 | |
2023-11-23 16:06:00 LocalStack Docker container id: ed4bb0a693d4 | |
2023-11-23 16:06:00 LocalStack build date: 2023-11-16 | |
2023-11-23 16:06:00 LocalStack build git hash: 6dd3f3d | |
2023-11-23 16:06:00 | |
2023-11-23 16:06:00 2023-11-23T21:06:00.514 INFO --- [ MainThread] l.bootstrap.licensingv2 : Successfully activated cached license license_7e180b27-97b2-498e-854e-c79669e857f2:pro from /var/lib/localstack/cache/license.json 🔑✅ | |
2023-11-23 16:06:00 Localstack returning with exit code 55. Reason: | |
2023-11-23 16:06:00 =============================================== | |
2023-11-23 16:06:00 License activation failed! 🔑❌ |
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
tee $HOME/setup_mac_inner.sh <<'EOF' | |
#!/usr/bin/env bash | |
# See: https://github.com/thoughtbot/laptop/blob/master/mac | |
set -euo pipefail | |
fancy_echo() { | |
local fmt="$1"; shift |
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
PROJECT_NAME=project-name | |
cargo install cargo-edit --features vendored-openssl,vendored-libgit2 | |
cargo install cargo-deny | |
mkdir "$PROJECT_NAME" | |
cd "$PROJECT_NAME" | |
git init . | |
cat << EOF > Cargo.toml | |
[workspace] |
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
sig Package {} | |
run example {} |
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
// ==UserScript== | |
// @name Enable Sidebar for Rust docs | |
// @namespace https://asim.ihsan.io | |
// @version 0.1 | |
// @description Always enable sidebar on Rust documentation pages. | |
// @author Asim Ihsan. | |
// @match https://doc.rust-lang.org/* | |
// @grant none | |
// @run-at document-idle | |
// ==/UserScript== |
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
# See: https://github.com/asimihsan/word-frequencies | |
# Raw frequencex.txt.gz file: https://www.dropbox.com/s/ectbjiupvesxruc/enwiki-20191202-frequencies.txt.gz?dl=0 | |
# Uses Debian wamerican + wbritish + wcanadian as a dictionary. You get much better results if you use 3of6game as | |
# a dictionary. | |
the | |
and | |
was | |
for | |
with | |
from |
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
# See: https://github.com/asimihsan/word-frequencies | |
# Raw frequencies.txt.gz file: https://www.dropbox.com/sh/yy9dnue1kvf0kuw/AAC1ZpoEnH_dn4FLLN1RHf2Pa?dl=0 | |
się | |
dostęp | |
ang | |
jest | |
przez | |
oraz | |
jako | |
nie |
- Base instance to launch
- https://console.aws.amazon.com/ec2/home?region=us-west-2#launchAmi=ami-e1b93481
- p2.xlarge
- 32GB EBS mount
- Configure security group to allow access to all for ports 22 and 8888
- References
ssh -i ~/.ssh/udacity-carnd.pem [email protected]
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
<?xml version="1.0"?> | |
<!-- See http://gnaural.sourceforge.net --> | |
<schedule> | |
<gnauralfile_version>1.20101006</gnauralfile_version> | |
<gnaural_version>1.0.20110215</gnaural_version> | |
<date>20160206 14:09:00</date> | |
<title>AcademicPerformanceEnhancement</title> | |
<schedule_description>Alternate between 14 Hz and 22 Hz (http://preview.tinyurl.com/zt4wm2a)</schedule_description> | |
<author>asymptote</author> | |
<totaltime>20.0</totaltime> |
NewerOlder