Skip to content

Instantly share code, notes, and snippets.

View TianyiChen's full-sized avatar

Tianyi Chen TianyiChen

View GitHub Profile
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML'></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<body>
<ol>
<li>
#!/bin/bash
#from https://superuser.com/a/1030779
# standard sshd config path
SSHD_CONFIG=/etc/ssh/sshd_config
# helper functions
function tablize {
awk '{printf("| %-7s | %-7s | %-47s |\n", $1, $2, $3)}'
}
LINE="+---------+---------+-------------------------------------------------+"
$('#sidebar').hide();
$('#header').hide();
$('#footer').hide();
$('.menu-box').hide();
$('#pageContent').removeClass("content-with-sidebar");
print();