Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -e
pipe=test.pipe
lines=2
mount -o size=100M -t tmpfs tmpfs /tmp
cd /tmp
#!/usr/bin/env bash
echo "Stage 1: modified"
git st -s | grep '^ M' | fgrep .kde | awk '{print $NF}' | \
xargs -r -i sh -c 'mv {} /tmp/ && echo {} >> .gitignore'
git ci .kde/share/config .gitignore -m 'ignore: more dynamic configs (modified)'
git show .gitignore | grep ^+.kde | awk -F/ '{print $NF}' | xargs -r -i mv /tmp/{} .kde/share/config/
echo "Stage 2: untracked"
git st -s -uall | grep '^??' | awk '{print $NF}' | xargs -r -i sh -c 'echo {} >> .gitignore'
From 0eaed7aadfc62b55aee51a740050a45aab5b302d Mon Sep 17 00:00:00 2001
From: Qolt <[email protected]>
Date: Sun, 23 Jun 2013 20:16:30 +0400
Subject: [PATCH] Added Boostcache class, to iprovide a Python interface for
boostcache (https://github.com/azat/boostcache)
---
redis/__init__.py | 4 ++--
redis/client.py | 44 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 46 insertions(+), 2 deletions(-)
find refs -type f | fgrep -v :: | xargs -I{} sh -c 's=$(fgrep size {} | awk -F"[<>]" "{print \$3}"); [ -z "$s" ] || echo {}: $s' | sort -k2nr
#!/usr/bin/env bash
set -e
PATH=/usr/bin:/bin:/usr/sbin:/sbin
interface=${1:-"usb0"}
if [ ! -d /sys/class/net/$interface ]; then
cat - >&2 <<EOL
#!/usr/bin/env bash
mkdir -p test/mnt
./fusefs -s -o nonempty $PWD/test/mnt/
cd /sys/kernel/debug/tracing
functions=(
fuse_dev_do_write
fuse_copy_one
thread#5: thread#1:
- lock(bufev->lock) # waiting, blocked by #t1
- bufferevent_setcb(bufev=0x64f350, ...)
- send_http_response() - lock() # waiting, blocked by #t5
- device_chunk_cb() - evbuffer_get_length("device1->pending->bufev")
- device_read_cb(bev=0x6396d0, arg="device1") - device_write_cb(bev=0x64f350, arg="device1")
- bufferevent_trigger_nolock_() - bufferevent_trigger_nolock_()
- lock(bufev->lock (0x6396d0)) - lock(bufev->lock(0x64f350))
- bufferevent_readcb(arg=0x6396d0) - bufferevent_writecb(arg=0x64f350)
- event_persist_closure() - event_persist_closure()
git log --merges --oneline HEAD...origin/master | egrep -v 's390|kvm|powerpc|freedesktop|sound|nbd|mfd|watchdog|regmap|arm|selftest|doc|spi|metag|regulator|virtio|v4l|media/|mmc|blackfin|fbdev|parisc|ppc|MTD|9p|asoc|f2fs|xtensa|xgbe|ebpf|gpio|80211|smack|qcom|rockchip|renesas|mpls|wifi|at91|hda|r8152|wireless|gfs|backlight|kbuild|kconfig|pnp|drm|efi|pcm|cxgb4|mvebu|be2net|arc|nios2|devicetree|acpi|i2c|iommu|cpumask|cpufreq|cpuidle|xen|jfs|mailbox|macb|mlx4|samsung|/sh|pinctrl|vfio|locking|locks|turbostat|remoteproc|clk-|stmmac|/hid|livepatching|ubifs|/uml|-leds|namespace|v9fs|nommu|-mtd|infiniband|ceph|dma|powercap|pm-|selinux|linux-security|c6x|defconfig|bluetooth|dsa-|nf-|-tso|mv88|pktgen|bcmgenet|hwbridge|hw_offload|gianfar|swdev|xgene-|vlan|mlx5|listener|netns|mntns|pidns|tegra|davinci|omap|dsa_|irq|fib|cleanup|bna|bnx2x|yama|sensor|test|mkl'
@azat
azat / set--e.sh
Last active August 29, 2015 14:21
#!/usr/bin/env bash
# http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
set -e
function foo()
{
if [ 1 = 2 ]; then
true
#!/usr/bin/env bash
KEY="!!XXX!!"
self="$(readlink -f $(dirname $0))"
cd "$self"
function package_name()
{
dpkg -I "$@" | grep '^ Package: ' | cut -d' ' -f3-
}