- edit
/etc/default/grub
and change
This file contains 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
find . -name *.cpp -exec bash -c 'cmp <(clang-format --style=LLVM $0) $0' {} \; |
This file contains 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 | |
/opt/cisco/anyconnect/bin/vpn -s << EOF | |
connect hosthere:porthere | |
usernamehere | |
passwordhere | |
exit | |
EOF |
This file contains 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
function svg2tex { | |
_addr=$(readlink -f $1) | |
inkscape -D -z --file=$_addr --export-pdf=${_addr/.svg/.pdf} --export-latex | |
} |
This file contains 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 | |
# Run in go using - | |
# <exec command="bash"> | |
# <arg>-c</arg> | |
# <arg>curl -s https://gist.githubusercontent.com/hadisfr/57750e9ae05a57989f17742536f82ee3/raw/ansi-color-test.sh | bash</arg> | |
# </exec> | |
bash <( curl -s https://raw.githubusercontent.com/fidian/ansi/master/ansi) --color-table |
This file contains 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
#!/usr/bin/env python3 | |
import sys | |
import urllib.request | |
from urllib.error import HTTPError | |
BASE_URL = 'http://dx.doi.org/' | |
try: | |
doi = sys.argv[1] |
This file contains 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
#!/usr/bin/env python3 | |
import json | |
import csv | |
def process(bookmark): | |
global res | |
if 'children' in bookmark.keys(): | |
for child in bookmark['children']: |
This file contains 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
cd $FOAM_RUN | |
cp -ar $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity . | |
cd cavity | |
blockMesh | |
icoFoam | |
touch cavity.foam | |
cd $FOAM_RUN | |
cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily . | |
cd pitzDaily |