xcode-select --install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| X509 *cert; | |
| char *zCert; | |
| BIO *mem; | |
| zCert = // get your certificate text buffer here (C string with certificate in PEM format) | |
| mem = BIO_new(BIO_s_mem()); | |
| BIO_puts(mem, zCert); | |
| cert = PEM_read_bio_X509(mem, NULL, 0, NULL); | |
| free(zCert); | |
| BIO_free(mem); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Quick fork by @mcjim to add stash status and tweak to suit his style. | |
| # http://henrik.nyh.se/2008/12/git-dirty-prompt | |
| # http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
| # host dir master $ # clean working directory | |
| # host dir master* $ # dirty working directory | |
| # host dir master*^ $ # dirty working directory with stash | |
| # host dir master^ $ # clean working directory with stash | |
| function parse_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "*" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| if [ ! $@ ]; then | |
| echo "Need OpenELEC archive file. Exiting!" | |
| exit 0 | |
| fi | |
| if [ ! `which mksquashfs` ]; then | |
| echo "Your system doesn't seem to have squashfs-tools installed" | |
| echo "You can install this package with:" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Based on work by Klaus M Pfeiffer at http://blog.kmp.or.at/2012/05/build-your-own-raspberry-pi-image/ | |
| # you need to do: "sudo apt-get install binfmt-support qemu qemu-user-static debootstrap kpartx lvm2 dosfstools" | |
| # run with "sudo bootstrap.sh /dev/sd[x]" | |
| echo "Use like: sudo bootstrap.sh /dev/sd[x]" | |
| #deb_mirror="http://ftp.debian.org/debian" | |
| #deb_local_mirror="http://ftp.debian.org/debian" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Quick fork by @mcjim to add stash status and tweak to suit his style. | |
| # http://henrik.nyh.se/2008/12/git-dirty-prompt | |
| # http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
| # host dir master $ # clean working directory | |
| # host dir master* $ # dirty working directory | |
| # host dir master*^ $ # dirty working directory with stash | |
| # host dir master^ $ # clean working directory with stash | |
| function parse_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" |
trying to follow this tutorial, i was not able to get fail2ban to work in my setup, so here is a gist in case I forget.
sudo apt install fail2ban