Skip to content

Instantly share code, notes, and snippets.

#%PAM-1.0
auth substack system-auth
auth include postlogin
account required pam_nologin.so
account include system-auth
password include system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session required pam_loginuid.so
session optional pam_console.so
@BenjiWiebe
BenjiWiebe / siab_debug.log
Created August 27, 2015 17:58
SiaB debug output
[server] Command line: shellinaboxd --debug -t -u benji -g benji -p 5001 -s /:benji:benji:/tmp:/tmp/sleep.sh
[server] Listening on port 5001...
[http] Accepted connection from benji-pc:49259
[http] Handling "GET" "/"
[http] Compressed response from 5282 to 2285
[http] benji-pc - - [27/Aug/2015:12:57:32 -0500] "GET / HTTP/1.1" 200 2375
[http] Handling "GET" "/styles.css"
[http] Compressed response from 30952 to 4324
[http] benji-pc - - [27/Aug/2015:12:57:32 -0500] "GET /styles.css HTTP/1.1" 200 4453
[http] Accepted connection from benji-pc:49260
#!/usr/bin/ruby
require 'nokogiri'
require 'open-uri'
a=Nokogiri::HTML(open("https://en.wikipedia.org/?title=U.S._state_temperature_extremes"))
root=a.root
trs=root.css("table.wikitable > tr")
records = trs.map {|x| [x.children[1].text, x.children[3].text, x.children[9].text] }
records.shift
hsh = Hash.new
records.each {|x| hsh[x[0].downcase.to_sym] = [x[1],x[2]]}
#include <stdio.h>
#include <stdlib.h>
#include <CL/cl.h>
int main()
{
cl_int err;
cl_platform_id platform_ids[10];
cl_uint number;
err = clGetPlatformIDs(10, (cl_platform_id*) platform_ids, &number);
if(err != CL_SUCCESS)
[webmaster@server ~]$ openssl s_client -connect localhost:6697
CONNECTED(00000003)
depth=0 description = FkzdZbtD98knf503, C = US, CN = local.benjiwiebe.com, emailAddress = itsme@benjiwiebe.com
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 description = FkzdZbtD98knf503, C = US, CN = local.benjiwiebe.com, emailAddress = itsme@benjiwiebe.com
verify error:num=27:certificate not trusted
verify return:1
depth=0 description = FkzdZbtD98knf503, C = US, CN = local.benjiwiebe.com, emailAddress = itsme@benjiwiebe.com
verify error:num=21:unable to verify the first certificate
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
static struct termios oldt, newt;