| title | updated | layout | category | prism_languages | intro | |
|---|---|---|---|---|---|---|
AppleScript |
2023-04-05 |
2017/sheet |
macOS |
|
AppleScript is a scripting language for automating macOS. |
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 node | |
| // Required parameters: | |
| // @raycast.schemaVersion 1 | |
| // @raycast.title Jira fetcher | |
| // @raycast.mode silent | |
| // Optional parameters: | |
| // @raycast.icon 🤖 | |
| // @raycast.argument1 { "type": "text", "placeholder": "Jira URL" } |
- Export data
- Unzip
cd facebook-<username>find . -type f -name '*.json' | xargs -n1 jq -c '. as $input | {} | setpath(input_filename / "/"; $input)'
=> This'll get you to a one-file-per-line stream of JSON objects formatted with the filepath (relative to the export root) as the nested JSON object path. So e.g. a file at ./ads/ad_interests.json containing JSON content:
{
"topics": [
"Facebook Messenger",
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
| # Any lines preceded by > can be typed or pasted directly into Powershell. | |
| # This has been tested on Windows 10 and dbt v 0.12. Last updated Jan 4, 2019 | |
| # Before trying to follow this recipe, you need to set the Execution Policy | |
| # You probably need to do this running Powershell as an admin | |
| > Set-ExecutionPolicy RemoteSigned | |
| # Next install chocolatey: | |
| > iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) |
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 | |
| echo | |
| echo "Welcome to the Bitcoin address generator!" | |
| echo "input private key (32 bytes, hex format)" | |
| read priv | |
| echo "" | |
| echo "#####################################" | |
| # priv=0C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D # Testing only |
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
| # Add this to .bashrc or .zshrc | |
| # Alias for use session with current virtualenv's name or "default". | |
| alias http='http --session=$(basename ${VIRTUAL_ENV:-default})' | |
| # Add header for ajax requests. | |
| httpx() { | |
| http $* X-Requested-With:XMLHttpRequest | |
| } | |
| # Function for login. Get csrf token from header. |
Current version: 1.0.19 1.0.15 (as of 2018-12-10)
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
| files: | |
| "/opt/elasticbeanstalk/nodepath.rb": | |
| mode: "000755" | |
| owner: root | |
| group: root | |
| content: | | |
| #!/usr/bin/env ruby | |
| require 'json' | |
| cc = "/opt/elasticbeanstalk/deploy/configuration/containerconfiguration" | |
| j = JSON.parse(File.read(cc)) |
NewerOlder