Skip to content

Instantly share code, notes, and snippets.

2017-02-07 23:08:53,591 ERROR [2027133545@qtp-1691858720-1] mortbay.log: /master-status
java.nio.channels.CancelledKeyException
at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:73)
at sun.nio.ch.SelectionKeyImpl.interestOps(SelectionKeyImpl.java:77)
at org.mortbay.io.nio.SelectChannelEndPoint.updateKey(SelectChannelEndPoint.java:325)
at org.mortbay.io.nio.SelectChannelEndPoint.blockWritable(SelectChannelEndPoint.java:278)
at org.mortbay.jetty.AbstractGenerator$Output.blockForOutput(AbstractGenerator.java:545)
package main
import (
"fmt"
)
var (
Alphabet = []byte(".0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz")
Tebahpla = make([]byte, 256)
)
@StevenLeRoux
StevenLeRoux / keywrap.go
Last active September 26, 2016 16:21
valid impl
package main
import (
"bytes"
"crypto/aes"
"crypto/rand"
"encoding/base64"
"encoding/binary"
"encoding/hex"
"errors"
---
# This has been tested with ansible 1.3 with these commands:
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=false"
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=true"
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts"
# NB: The type of the variable is crucial!
- name: Ansible Conditionals Examples
hosts: $hosts
vars_files:
Thread 2 (Thread 0x7effc6fb6700 (LWP 24744)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
No locals.
#1 0x00007effd0d5989c in eina_condition_wait (cond=0x7effd10007a0 <evas_thread_queue_condition>) at ../src/lib/eina/eina_inline_lock_posix.x:353
No locals.
#2 evas_thread_worker_func (data=<optimized out>, thread=<optimized out>) at lib/evas/common/evas_thread_render.c:75
cmd = <optimized out>
len = <optimized out>
max = <optimized out>
@StevenLeRoux
StevenLeRoux / gist:3274569
Created August 6, 2012 13:49 — forked from perusio/gist:1326701
Mobile device detection in Nginx with just 7 lines of configuration
### Testing if the client is a mobile or a desktop.
### The selection is based on the usual UA strings for desktop browsers.
## Testing a user agent using a method that reverts the logic of the
## UA detection. Inspired by notnotmobile.appspot.com.
map $http_user_agent $is_desktop {
default 0;
~*linux.*android|windows\s+(?:ce|phone) 0; # exceptions to the rule
~*spider|crawl|slurp|bot 1; # bots
~*windows|linux|os\s+x\s*[\d\._]+|solaris|bsd 1; # OSes