data-uri-b64encoder.py is a python script to generate a base64 data-uri. The idea behind this script was inpired by the Jose Jesus Perez Aguinaga's 'One line browser notepad' tip.
data-uri-b64encoder.py text/html
## | |
docker pull jseguillon/openbox || docker pull jseguillon/openbox:alpine | |
git clone https://gist.github.com/2c2b2220a4b9e294733e6ff09966f591.git dops-ren && cd dops-ren | |
## | |
ssh-keygen -f ./openstack -b 4096 | |
#ovh 4096 key | |
docker run -d -it --name dops-ren --mount type=bind,source="$(pwd)",target=/usr/share/source jseguillon/openbox:alpine | |
#Or non alpine |
""" | |
The MIT License (MIT) | |
Copyright (c) 2016 Sebastien Quioc | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, |
""" | |
The MIT License (MIT) | |
Copyright (c) 2013 Sebastien Quioc | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, |
data-uri-b64encoder.py is a python script to generate a base64 data-uri. The idea behind this script was inpired by the Jose Jesus Perez Aguinaga's 'One line browser notepad' tip.
data-uri-b64encoder.py text/html
Copyright © Sébastien Quioc | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or othe |
#!/bin/bash | |
# -*- coding: UTF8 -*- | |
function usage() { | |
echo "$(basename ${0}) <first_arg> <second_arg>"; | |
echo ""; | |
echo "<first_arg> the first argument"; | |
echo "<second_arg> the second argument"; | |
} |
action "say" | |
desc "say hello" #action description | |
#bash script here | |
echo "Hello world" | |
echo "Blank line doesn't stop block" | |
#Comment are unheeded |
from datetime import datetime | |
import calendar | |
def epoch_to_iso8601(timestamp): | |
""" | |
epoch_to_iso8601 - convert the unix epoch time into a iso8601 formatted date | |
>>> epoch_to_iso8601(1341866722) | |
'2012-07-09T22:45:22' | |
""" |