security find-generic-password -ga wifi-ssid-here | grep “password:”
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
| # ~/.iex.exs | |
| # Idiomatic Amp CLI integration for IEx | |
| defmodule AmpIEx do | |
| @moduledoc """ | |
| Elixir integration for Amp CLI with proper error handling and functional design. | |
| """ | |
| # Module attributes for constants | |
| @amp_executable "amp" |
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
| treepwd_content() { | |
| local current_dir=$(pwd) | |
| local output_file="codebase.txt" | |
| echo "Current directory: $current_dir" > "$output_file" | |
| echo "" >> "$output_file" | |
| echo "Directory Structure:" >> "$output_file" | |
| # Updated exclusion pattern to properly handle target directory and its contents | |
| find . -type d \( -name node_modules -o -name venv -o -name .git -o -name .vscode -o -name .next -o -name .mypy_cache -o -name .venv -o -name .DS_Store -o -path '*/target/*' -o -name build -o -name src-tauri/target \) -prune -o -print | sed -e 's;[^/]*/;| ;g;s;| \([^|]\)/;\1;g' >> "$output_file" | |
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
| import requests | |
| import re | |
| def get_transaction_details(tx_id): | |
| """ | |
| Fetches transaction details from Etherscan and extracts status, from, and to fields. | |
| Args: | |
| tx_id: The transaction ID (hash) to fetch details for. |
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
| # pip install lds_merkle_proof_2019 | |
| from lds_merkle_proof_2019.merkle_proof_2019 import MerkleProof2019 | |
| example_proof_value = "znKD4YGVqA8texv1PrVrhripRpmtid9LqxNj8TRUKHD5dXobGcBnZcHJMY3oguH9T8YcT9MuqnzQxYYRcReoxc9vm5PhucNBqdFYwZuwNEeFTn9GoJLPqAwQSw2J2atnCuEFAqwMXstnLkSNQrEwpBAGshkH1eMhqSYh4Ut3gVHq85eSKuu2YFHeCHAXN6QW7qfAiiiS4VLSE9E9PPUDdbp3MrDSb52gentZHJiHJHpKggxKs8GYYkqFQmr7rJ8HqVzLmwRRMAYA7TsVopawvFGtXTsbWXg6BK9jCFEPYvD3vNBvW5bVpEGvJgH" | |
| mp2019 = MerkleProof2019() | |
| decoded_proof = mp2019.decode(example_proof_value) | |
| print(decoded_proof) |
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
| require "redis" | |
| require "benchmark" | |
| def setup | |
| @redis = Redis.new | |
| @redis.flushdb | |
| end | |
| def teardown | |
| @redis.flushdb |
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
| @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"); | |
| *, | |
| body { | |
| font-family: "Poppins", sans-serif; | |
| margin: 0; | |
| width: auto; | |
| overflow-y: scroll; | |
| overflow: auto; | |
| -webkit-overflow-scrolling: touch; | |
| } |
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
| import requests | |
| from decouple import ( | |
| config, | |
| ) # decouple is a library that allows you to store your secrets in a .env file | |
| SLACK_FILE_UPLOAD_URL = "https://slack.com/api/files.upload" | |
| def upload_file_to_slack(file_path) -> dict: | |
| """Uploads a file to slack using the slack api |
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
| {"lastUpload":"2020-02-17T08:56:20.397Z","extensionVersion":"v3.4.3"} |
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
| #!/usr/bin/env bash | |
| sudo apt-get update | |
| clear | |
| echo "--------------UPDATED--------" | |
| sudo apt-get install default-jdk | |
| clear | |
| java -version | |
| echo "-------------JAVA INSTALLED----" |
NewerOlder