Skip to content

Instantly share code, notes, and snippets.

View Peneheals's full-sized avatar

Péter Tabajdi Peneheals

View GitHub Profile
@hariby
hariby / braket-cost.sh
Created January 21, 2021 03:11
You can check cost of your recent Amazon Braket tasks (based on the pricing table as of 2021-01-21). Compatible with AWS CloudShell.
aws braket search-quantum-tasks --region us-west-2 --filters 'name=deviceArn,operator=EQUAL,values=arn:aws:braket:::device/qpu/d-wave/DW_2000Q_6' | jq '.[] | map({quantumTaskArn: .quantumTaskArn, price: (.shots * 0.00019 + 0.30000)})'
aws braket search-quantum-tasks --region us-west-2 --filters 'name=deviceArn,operator=EQUAL,values=arn:aws:braket:::device/qpu/d-wave/Advantage_system1' | jq '.[] | map({quantumTaskArn: .quantumTaskArn, price: (.shots * 0.00019 + 0.30000)})'
aws braket search-quantum-tasks --region us-east-1 --filters 'name=deviceArn,operator=EQUAL,values=arn:aws:braket:::device/qpu/ionq/ionQdevice' | jq '.[] | map({quantumTaskArn: .quantumTaskArn, price: (.shots * 0.01000 + 0.30000)})'
aws braket search-quantum-tasks --region us-west-1 --filters 'name=deviceArn,operator=EQUAL,values=arn:aws:braket:::device/qpu/rigetti/Aspen-8' | jq '.[] | map({quantumTaskArn: .quantumTaskArn, price: (.shots * 0.00035 + 0.30000)})'
@croxton
croxton / SSL-certs-OSX.md
Last active March 3, 2024 18:58 — forked from leevigraham/Generate ssl certificates with Subject Alt Names on OSX.md
Generate ssl certificates with Subject Alt Names

Generate ssl certificates with Subject Alt Names on OSX

Open ssl.conf in a text editor.

Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.

DNS.1   = my-project.dev

Additional FQDNs can be added if required:

@plentz
plentz / nginx.conf
Last active April 24, 2024 11:15
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@sgergely
sgergely / gist:3793166
Created September 27, 2012 09:43
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name