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 | |
SCRIPTDIR=$( cd "$(dirname "$0")" ; pwd -P ) | |
SCRIPTFILE=`basename "$0"` | |
profile_id=f038cf34b6d040eda5339059f5a4a92f | |
function start(){ | |
sudo pritunl-client start $profile_id | |
} |
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
for f in `find *.png ` | |
do | |
convert $f ${f%.*}.eps | |
#convert -density 300 $f ${f%.*}.pdf | |
#pdftops -eps ${f%.*}.pdf | |
#rm ${f%.*}.pdf | |
done |
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
import pandas as pd | |
from os import listdir | |
from os.path import splitext | |
for filename in listdir(): | |
csv = pd.read_csv(filename, header=None) | |
writer = pd.ExcelWriter('{0}.xlsx'.format(splitext(filename)[0])) | |
csv.to_excel(writer, 'Sheet1', index=False, header=False) | |
writer.save() |
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
# When you're encountering following error. | |
# > IOError: [Errno 2] No such file or directory: 'C:\\Users\\username\\AppData\\Local\\Temp\\_MEI502322\\openpyxl\\.constants.json' | |
# | |
# This solution tested under Python 2.7.10 and Pyinstaller 3.0. | |
# | |
# Put this file to your script folder. | |
# Add this hook to your distribution by | |
# > pyinstaller --onefile --additional-hooks-dir=. yourscript.py | |
# | |
from PyInstaller.utils.hooks import collect_data_files |
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
git clone --recursive https://gitlab.kitware.com/paraview/paraview-superbuild.git | |
cd paraview-superbuild | |
git fetch origin # ensure you have the latest state from the main repo | |
git checkout v5.4.0 # replace `v5.4.1` with tag name of your choice | |
git submodule init | |
git submodule update | |
mkdir ../build #cmake complains build_dir must not located under git repo | |
cd ../build | |
export CC=/PATH/TO/YOUR_GCC/bin/gcc | |
export CXX=/PATH/TO/YOUR_GCC/bin/g++ |
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
#----------------------------------*-sh-*-------------------------------------- | |
# ========= | | |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | |
# \\ / O peration | | |
# \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation | |
# \\/ M anipulation | | |
#------------------------------------------------------------------------------ | |
# License | |
# This file is part of OpenFOAM. | |
# |
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
#%Module1.0 | |
## OpenFOAM 4.1 & ParaView 5.0.1 | |
proc ModulesHelp {} { | |
puts stderr "OpenFOAM 4.1 & ParaView 5.0.1\n" | |
} | |
module-whatis "OpenFOAM 4.1 & ParaView 5.0.1" |
NewerOlder