I hereby claim:
- I am stask on github.
- I am stask (https://keybase.io/stask) on keybase.
- I have a public key whose fingerprint is 40C9 5209 0FB2 536A 7168 D310 1EF8 9F4D D66B 9C88
To claim this, I am signing this object:
| #!/usr/bin/env bb | |
| (ns stask.todoist | |
| (:require | |
| [clojure.tools.cli :as tools.cli] | |
| [org.httpkit.client :as client] | |
| [cheshire.core :as json] | |
| [clojure.string :as string])) | |
| (def cl-options |
| ;; attempt to add mailplane support | |
| (defcustom org-mailplane-url-protocol "mailplane" | |
| "Protocol identifier for Mailplane links." | |
| :group 'org-mailplane | |
| :type 'string) | |
| (defun org-mailplane-follow (email-id) | |
| "Open mailplane with given EMAIL-ID." | |
| (browse-url (concat "mailplane:" email-id))) |
| #!/usr/bin/env bash | |
| aws_profile=$1 | |
| aws --profile=$aws_profile ec2 describe-images --owners self amazon --filters "Name=name,Values=amzn2*gp2" | jq '.Images[] | {created: .CreatedDate, description: .Description, ami: .ImageId}' |
| (ns example.api.google | |
| (:require [cemerick.url :as url] | |
| [cheshire.core :as json] | |
| [clj-jwt.core :as jwt] | |
| [clj-jwt.key :as key] | |
| [clj-time.core :as time] | |
| [clj-http.client :as http] | |
| [clojure.string :as str]) | |
| (:import java.io.StringReader)) |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| $api_key = ""; // here goes your api_key | |
| $api_secret_key = ""; // here goes your api_secret_key | |
| $timestamp = time(); | |
| $signature = md5($api_key . $api_secret_key . $timestamp); | |
| $auth_header = "custom api_key=" . $api_key . ", signature=" . $signature . ", ts=" . $timestamp; | |
| $ch = curl_init(); |
| # You will need to install MultipartPostHandler2 via pip | |
| # $> sudo pip install MultipartPostHandler2 | |
| import MultipartPostHandler, urllib2, md5, time | |
| URL = "https://prod.practitest.com/api/automated_tests/upload_test_result.json" | |
| # | |
| # Specify your API_KEY and API_SECRET_KEY below | |
| API_KEY = "" | |
| API_SECRET_KEY = "" |
| (ns agent-smith.s3 | |
| (:require [clojure.data.codec.base64 :as b64] | |
| [clojure.string :as s] | |
| [clojure.java.io :refer [copy file]] | |
| [clj-http.client :as client] | |
| [clj-time.core :as t] | |
| [clj-time.format :as tf])) | |
| (defn- sign [data key] | |
| (let [mac (javax.crypto.Mac/getInstance "HmacSHA1") |
Creating content-dashboard-db-master new MySQL replica 2013-05-16
Created 6 512GB 1000 IOPS volumes in us-east-1d zone (reused 4 volumes from previous replica and added 2 new). All volumes are labeled content-dashboard-mysql-fast{0,1,2,3,4,5}.
Connected the volumes to content-dashboard-db-master machine on /dev/sd{f,g,h,i,j,k} (0 -> f, 1 -> g, 2 -> h, 3 -> i, 4 -> j, 5 -> k).
Created /dev/md1 RAID0 volume from 6 drives:
mdadm --create -l0 -n6 /dev/md1 /dev/sdf /dev/sdg /dev/sdh /dev/sdi /dev/sdj /dev/sdk
Create XFS filesystem on /dev/md1:
mkfs.xfs /dev/md1 -f
| #!/usr/bin/env bash | |
| if [ -z "$EC2_PRIVATE_KEY" ]; then | |
| echo "EC2_PRIVATE_KEY is not defined" | |
| exit 1 | |
| fi | |
| if [ -z "$EC2_CERT" ]; then | |
| echo "EC2_CERT is not defined" | |
| exit 1 |