View abuild.sh
#!/bin/sh
## abuild.sh
## Simplistic abuild wrapper for building packages out-of-the-tree.
## Author: Przemyslaw Pawelczyk
##
## Put it in its own directory, and everything will be generated there.
## Why? Because I strongly dislike the idea of polluting local aports clone.
## I keep the script in ~/abuild/. You can also put symlink to it in ~/bin/.
View tc-delaydnsreqs.sh
#!/bin/sh
## Traffic control - Make DNS requests delayed and low priority on Linux.
## Author: Przemyslaw Pawelczyk
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo "Usage: $0 IFACE [DELAY [JITTER [CORRELATION]]]"
echo
echo "Example: $0 eth1 500ms 100ms"
exit 0
View 02-protip-instagram.md

Przemoc's protip (2017-08): Improve the way you upload photos to Instagram

Tired of sending photos to your phone just to share them on Instagram?

I would be too! Just use Google Chrome and visit instagram.com on your desktop PC/Mac. Yes, no need for 3rd party Instagram clients!

Go to Developer Tools (F12 or Ctrl+Shift+I), toggle device toolbar (Ctrl+Shift+M) and choose the screen to emulate or Responsive.

View 01-protip-youtube.md

Przemoc's protip (2017-08): Improve YouTube experience

Aren't you tired of overlays showing at the end of vids that hide content?

Me too! I figured out two easy solutions:

  1. Go to Developer Tools (F12 or Ctrl+Shift+I) and run following code in Console:

     $$(".ytp-ce-element").forEach(function(el){el.style.display="none"})
    
View ssh-root-without-password-on-freebsd.md

ssh root without password on FreeBSD

If you have some toy boards in your internal network, then you can happily live without password and key. As I learned today, setting following stuff in /etc/ssh/sshd_config is not enough:

PermitRootLogin yes
PermitEmptyPasswords yes
View reassemble_arguments.sh
#!/bin/sh
## Reassemble arguments (support-most-cases implementation)
## Author: Przemyslaw Pawelczyk
ARGC=$#
argcon=
argkey=
argval=
while [ $ARGC -gt 0 ]; do
View keybase.md

Keybase proof

I hereby claim:

  • I am przemoc on github.
  • I am przemoc (https://keybase.io/przemoc) on keybase.
  • I have a public key ASAqkyJiZIDm1BPnP-S3TSYm4W206lESRnwkf1Yp1B8jwwo

To claim this, I am signing this object:

View pigz.c-msys2-mingw-w64.patch
Make pigz.c (2.3.3) compilable on MSYS2+MinGW-w64.
Based on AiZ's reverse patch posted on:
http://encode.ru/threads/1689-Google-Compress-Data-More-Densely-with-Zopfli?p=32684#post32684
--- pigz.c.bak 2016-02-03 23:33:58.896985400 +0100
+++ pigz.c 2016-02-04 00:21:44.597383100 +0100
@@ -331,6 +331,7 @@
#include <sys/stat.h> /* chmod(), stat(), fstat(), lstat(), struct stat, */
/* S_IFDIR, S_IFLNK, S_IFMT, S_IFREG */
View preferences
Package: *
Pin: release n=jessie-backports
Pin-Priority: 800
Package: *
Pin: release n=jessie-updates
Pin-Priority: 700
Package: *
Pin: release n=jessie
View 10-trackpoint.rules
### default values: sensitivity=128, speed=97
ACTION=="add", SUBSYSTEM=="input", ATTR{name}=="TPPS/2 IBM TrackPoint", ATTR{device/sensitivity}="196", ATTR{device/speed}="255"