Skip to content

Instantly share code, notes, and snippets.

View erikfrerejean's full-sized avatar
:octocat:

Erik Frèrejean erikfrerejean

:octocat:
View GitHub Profile
@floudet
floudet / ssh-chroot-jail.sh
Created June 19, 2016 11:57
Chroot Jail for SSH Access
# Chroot Jail for SSH Access
# Tested on Ubuntu 14.04.2 LTS and Debian GNU/Linux 8 (jessie)
# Reference : http://allanfeid.com/content/creating-chroot-jail-ssh-access
#
# Had to add/change several things to make it work, including:
# - create lib64 folder
# - copy whoami dependencies that ldd doesn't show to fix 'I have no name!'
# in the customized prompt + create passwd file
#
@erikfrerejean
erikfrerejean / gist:11217941
Last active August 29, 2015 14:00
quick select
jQuery('input[type="checkbox"]').each(function(index, elem) { jQuery(elem).prop('checked', 'checked'); });