Skip to content

Instantly share code, notes, and snippets.

View denmojo's full-sized avatar
😎

Dennis M denmojo

😎
View GitHub Profile
@denmojo
denmojo / .vimrc
Created June 9, 2015 19:01
.vimrc vim configuration for highlighting
syntax enable
set background=dark
colorscheme default
filetype on
set nomodeline
@denmojo
denmojo / lolol_converter.html
Last active August 29, 2015 14:05
LOLOL encoder/decoder, a.k.a. binary converter in JavaScript
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>LOLOL Encoder/Decoder</title>
<script type="text/javascript">
//<![CDATA[
function lolol2txt(lolol)
{
@denmojo
denmojo / build_SSL_from_source.txt
Created August 19, 2014 04:36
Building SSL from source on Debian
# Go to https://www.openssl.org/source/ to see latest version. This was performed for version 1.0.1i
wget --no-check-certificate https://www.openssl.org/source/openssl-1.0.1i.tar.gz
wget --no-check-certificate https://www.openssl.org/source/openssl-1.0.1i.tar.gz.sha1
sha1sum openssl-1.0.1i.tar.gz
cat openssl-1.0.1i.tar.gz.sha1
tar -zxf openssl-1.0.1i.tar.gz
cd openssl-1.0.1i
sudo ./config && sudo make && sudo make install
@denmojo
denmojo / tips.md
Created June 22, 2014 21:43 — forked from jch/tips.md

Collection of Everyday Tips

Also see The Lazy Programmer

Mac

  • cmd-shift-t open last tab (sometimes preserves input) via @atmos
  • option-shift-volume|brightness increase/decrease brightness or volume by quarter increments
  • cmd-shift-3 whole screenshot
  • cmd-shift-4 select screenshot. Click space and it'll let you choose a window.
  • cmd-shift-g in finder, go to folder. tab completion available
@denmojo
denmojo / wget-to-archive-site.txt
Last active January 27, 2016 20:01
wget to archive a site
# archives from root of domain
wget -m -k -K -E -p http://sitename.com
# only archives subdirectory
wget --mirror --page-requisites --adjust-extension --backup-converted --no-parent --convert-links http://sitename.com/subdirectory/
# short form of subdirectory archive
wget -m -p -E -K -np -k http://sitename.com/subdirectory/
@denmojo
denmojo / openssl_pfs_test_client.sh
Created June 16, 2014 05:10
OpenSSL PFS test client
#!/bin/sh
usage(){
echo "Usage: $0 server:port"
exit 1
}
# define is_file_exits function
# $f -> store argument passed to the script
is_file_exits(){
@denmojo
denmojo / openssl_test_pfs_server.sh
Created June 16, 2014 05:08
OpenSSL PFS test server
#!/bin/sh
# pem file in this case is the single concatenated file
# containing both your signed cert and pem format private key
usage(){
echo "Usage: $0 pem_filename"
exit 1
}
# define is_file_exits function