View reflection-linter.sh
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
#!/bin/bash | |
set -euf -o pipefail | |
get_warnings() { | |
lein check 2>&1 | grep "Reflection" || { echo "Error in reflection-linter.sh"; exit 1; } | |
} | |
parse_line() { | |
echo $1 | awk -F 'Reflection warning, |:| - ' '{print $2, $3, $4, $5}' |
View clean.sh
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
sed -e 's/ *#.*$//' -e 's/[ ,]*$//' -e 's/ *, */,/g' | sort | uniq |
View gist:fb2aafc352d07033d915c8915418b078
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
echo 'your_encrypted_data' | ruby -ractive_support -ractive_support/message_encryptor -e "puts ActiveSupport::MessageEncryptor.new([ENV['DECRYPTION_KEY']].pack('H*'), cipher: 'aes-256-gcm').decrypt_and_verify(STDIN.read)" |
View discord.yml
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
openapi: "3.0.0" | |
info: | |
title: "Discord API" | |
version: "1.0.0" | |
servers: | |
- url: "https://discord.com/api" | |
paths: | |
/oauth2/token: | |
post: | |
summary: "Refresh the access token" |
View ack.clj
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
(ns xxx-test | |
(:require [clojure.test :refer [deftest use-fixtures]] | |
[clj-http.client :as http] | |
[cheshire.core :as json]) | |
(:import (com.github.tomakehurst.wiremock.core WireMockConfiguration) | |
(com.github.tomakehurst.wiremock WireMockServer) | |
(com.github.tomakehurst.wiremock.client WireMock))) | |
(def ^:dynamic *server* nil) |
View .sh
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
ruby -rjson -e 'puts JSON.pretty_generate(JSON.parse(ARGF.read).map { |obj| obj["bids"].select! { |bid| bid["bidder"] == "pubmatic" }; obj })' |
View .clj
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
(ns xxxxxx.jsonb-test | |
(:require | |
[clojure.test :refer [deftest is use-fixtures join-fixtures]] | |
[cheshire.core :as json] | |
[clojure.java.jdbc :as jdbc] | |
[xxxxxxx.test-db :refer [*db*] :as test-db]) | |
(:import | |
(org.postgresql.util PGobject) | |
(clojure.lang IPersistentMap))) |
View invoke.clj
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
(ns yyyyyyyyyyaaaaaaaaaaa | |
(:import | |
(com.google.auth.oauth2 GoogleCredentials IdTokenCredentials)) | |
(:require | |
[clj-http.client :as client])) | |
(def root "https://bang.a.run.app") | |
(defn get-access-token | |
[] |
View playback.js
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
$('video').playbackRate = 4; |
View jsonb_test.clj
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
(ns xxx.jsonb-test | |
(:require | |
[clojure.test :refer [deftest is use-fixtures]] | |
[clojure.java.jdbc :as jdbc] | |
[cheshire.core :as json] | |
[xxx.db :as test-db :refer [*db*]]) | |
(:import | |
[org.postgresql.util PGobject] | |
[java.sql PreparedStatement])) |
NewerOlder