Skip to content

Instantly share code, notes, and snippets.

input {
amqp {
type => "all"
host => "127.0.0.1"
exchange => "log4net.gelf.appender"
name => "consumer.log4net.gelf.appender"
durable=> true
debug=>true
key=> "#"
}
@hancengiz
hancengiz / gist:fa5e0e97ca33d8513a80def8d88ff7d8
Created February 15, 2017 08:39
One liner to stop / remove all of Docker containers:
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)

Keybase proof

I hereby claim:

  • I am hancengiz on github.
  • I am hancengiz (https://keybase.io/hancengiz) on keybase.
  • I have a public key ASAbI_twebH8mF56HHdX61N1M5hav0uuSeNRetDLTnFCeQo

To claim this, I am signing this object:

@hancengiz
hancengiz / cloneall.sh
Created June 19, 2019 11:51
clone all repos under a bitbucket project
echo Hello, enter username
read username
curl --user $username https://bitbucketservername/rest/api/1.0/projects/PRJ1/repos | jq -r '.values[].links.clone[] | select(.name == "ssh").href' > repo_urls
for repo_url in `cat repo_urls `
do
echo git clone $repo_url
git clone $repo_url
done
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
# Enabling tap-to-click is a perilous choice that begets needing to set up palm detection/ignoring. Since I am fine clicking my touchpad, I sidestep the issue by disabling tapping.
Option "TapButton1" "0"
Option "TapButton2" "0"
Option "TapButton3" "0"
# Using negative values for ScrollDelta implements natural scroll, a la Macbook default.
Option "VertScrollDelta" "-80"
#!/bin/bash
# hottest files in a git repo
ROW_LIMIT=20
git log --name-status $* | \
grep -E '^[A-Z]\s+' | \
cut -c3-500 | \
sort | \
uniq -c | \