- i3blocks
- httpie
- jq
- ttf-font-icons (aur)
๐
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
INFO [epollEventLoopGroup-2-6] 2018-08-26 11:33:10,003 Message.java:623 - Unexpected exception during request; channel = [id: 0xf72d6e2f, L:/10.233.66.7:9042 - R:/10.233.65.7:48742] | |
io.netty.channel.unix.Errors$NativeIoException: readAddress() failed: Connection timed out | |
at io.netty.channel.unix.Errors.newIOException(Errors.java:117) ~[netty-all-4.0.44.Final.jar:4.0.44.Final] | |
at io.netty.channel.unix.Errors.ioResult(Errors.java:138) ~[netty-all-4.0.44.Final.jar:4.0.44.Final] | |
at io.netty.channel.unix.FileDescriptor.readAddress(FileDescriptor.java:175) ~[netty-all-4.0.44.Final.jar:4.0.44.Final] | |
at io.netty.channel.epoll.AbstractEpollChannel.doReadBytes(AbstractEpollChannel.java:238) ~[netty-all-4.0.44.Final.jar:4.0.44.Final] | |
at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:926) ~[netty-all-4.0.44.Final.jar:4.0.44.Final] | |
at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:397 |
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
diff --git a/Cargo.lock b/Cargo.lock | |
index a2e127d..d593db6 100644 | |
--- a/Cargo.lock | |
+++ b/Cargo.lock | |
@@ -2,119 +2,191 @@ | |
name = "cargo-release" | |
version = "0.6.1-pre" | |
dependencies = [ | |
- "clap 2.2.5 (registry+git://crates.mirrors.ustc.edu.cn/index)", | |
- "quick-error 0.1.4 (registry+git://crates.mirrors.ustc.edu.cn/index)", |
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 com.squareup.tape.FileObjectQueue; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.Serializable; | |
import java.util.UUID; | |
import java.util.concurrent.BlockingQueue; | |
import java.util.concurrent.LinkedBlockingQueue; | |
import java.util.concurrent.TimeUnit; | |
import java.util.concurrent.locks.ReentrantLock; |
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/bash | |
TEMP_KEY=/tmp/tmpkey | |
openssl pkcs12 -in $1 -nodes -out $TEMP_KEY | |
openssl s_client -connect gateway.push.apple.com:2195 -cert $TEMP_KEY -key $TEMP_KEY |
I hereby claim:
- I am sunng87 on github.
- I am sunng (https://keybase.io/sunng) on keybase.
- I have a public key whose fingerprint is ED91 D234 CAE9 7367 9AD4 6EA6 2E27 E20F C4DE EA3E
To claim this, I am signing this object:
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
(defn invoke-private-method [obj fn-name-string & args] | |
(let [m (first (filter (fn [x] (.. x getName (equals fn-name-string))) | |
(.. obj getClass getDeclaredMethods)))] | |
(. m (setAccessible true)) | |
(. m (invoke obj args)))) | |
(defn private-field [obj fn-name-string] | |
(let [m (.. obj getClass (getDeclaredField fn-name-string))] | |
(. m (setAccessible true)) | |
(. m (get obj)))) |
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
(defn assoc-some [m & kvs] | |
(if-not (even? (count kvs)) | |
(throw (IllegalArgumentException. "even number of key-values required.")) | |
(if-let [kvs (not-empty (filter #(some? (second %)) (partition 2 kvs)))] | |
(apply assoc m (flatten kvs)) | |
m))) |
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/python | |
import SocketServer | |
class FlashPolicyHandler(SocketServer.StreamRequestHandler): | |
timeout = 5 | |
""" | |
The RequestHandler class for our server. | |
It is instantiated once per connection to the server, and must | |
override the handle() method to implement communication to the |
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
(defmacro defprotocol+ [name & funcs] | |
(let [vararg-sym (symbol "&") | |
normalized-func-specs (map #(let [[n a] %] | |
(if (.contains a vararg-sym) | |
[(symbol (str n "*")) | |
(vec (remove (fn [_a] | |
(= _a vararg-sym)) a)) | |
[n a]] | |
[n a])) | |
funcs) |