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 lockable_script_boilerplate.sh
#!/bin/bash
## Copyright (C) 2009 Przemyslaw Pawelczyk <przemoc@gmail.com>
##
## This script is licensed under the terms of the MIT license.
## https://opensource.org/licenses/MIT
#
# Lockable script boilerplate
### HEADER ###
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 reassemble_arguments.sh
#!/bin/sh
## Reassemble arguments (support-most-cases implementation)
## Author: Przemyslaw Pawelczyk
ARGC=$#
argcon=
argkey=
argval=
while [ $ARGC -gt 0 ]; do
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"
View tmux-vm.sh
#!/bin/sh
LDIR="$HOME/qemu"
KDIR="$LDIR/$1"
if [ -z "$1" -o ! -d "$KDIR" ]; then
echo "Please specify existing kernel directory under $LDIR"
exit 1
fi
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 download_PAssist_Std.exe.sh
#!/bin/sh
# Simple script for downloading program stored on CNET:
# - AOMEI Partition Assistant Standard
# Tested on 2013-11-17.
set -e
get_page() { curl -LsS "$1"; }
get_href() { sed '/'"$1"'/!d;s,.*<a href=",,;s,".*,,;q'; }
View calcswsa.sh
#!/bin/sh
_calcswsa()
{
echo -n "$1"'258EAFA5-E914-47DA-95CA-C5AB0DC85B11' | sha1sum | awk '{print$1}' | xxd -r -p | base64
}
if [ -t 0 -a -z "$1" ]; then
echo "usage: $0 [-] [SEC_WEBSOCKET_KEY]..."
echo