Skip to content

Instantly share code, notes, and snippets.

Conor Lawless CnrLwlss

View GitHub Profile
View mathjax-script-for-hugo.js
<script type="text/javascript" async
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
displayMath: [['$$','$$']],
processEscapes: true,
processEnvironments: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
TeX: { equationNumbers: { autoNumber: "AMS" },
TimSC /
Last active Apr 5, 2020
Python code to parse a JPEG structure and to convert Motion JPEG/MJPG binary data to standard JPEG. This code may be used under CC0.
import struct
huffmanSegment = '\xFF\xC4\x01\xA2\x00\x00\x01\x05\x01\x01\x01\x01'\
jbgo /
Last active Apr 27, 2020
Free up space on /boot disk (ubuntu)

Free disk space when /boot is full (Ubuntu)


dpkg -l linux-image*
uname -r
sudo apt-get remove linux-image-2.6.32-{21,37,38,39,40,41,42,43,44}-server
sudo apt-get autoremove
catawbasam / julia_npp.xml
Created Oct 9, 2012
Julia language syntax highlighting for Notepad++. Goes in /users/{username}/AppData/Roaming/Notepad++.
View julia_npp.xml
<UserLang name="Julia" ext="jl">
<Global caseIgnored="no" />
<TreatAsSymbol comment="no" commentLine="yes" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
<Keywords name="Delimiters">&quot;00&quot;00</Keywords>
<Keywords name="Folder+">begin function type for while if</Keywords>
You can’t perform that action at this time.