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
| repos="" | |
| sizes="" | |
| name_lens="" | |
| image_counts="" | |
| # Check if user is logged in | |
| if ! aws sts get-caller-identity &> /dev/null; then | |
| echo "ERROR: Seems like your SSO session is invalid. Please run" | |
| printf "\n $ aws sso login\n\n" | |
| echo "before you run the script." |
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
| Image title:<br/> | |
| <input type="text" id="title"/><br/> | |
| Sender name:<br/> | |
| <input type="text" id="from"/><br/> | |
| Image:<br/> | |
| <input type="file" id="blob"/><br/> | |
| <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> | |
| <script> | |
| function handleFileSelect(evt) { | |
| var reader = new FileReader(); |
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
| #! /usr/bin/python3 | |
| import calendar | |
| import re | |
| import sys | |
| import os | |
| from dateutil.parser import parse | |
| import datetime | |
| def write_csv(downtimes, output, show_month=None): | |
| with open(output, 'w+') as f: |
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 | |
| if [ $# -lt 3 ]; then | |
| echo "Usage: ./$0 repository destination exclusions" | |
| exit 1 | |
| fi | |
| git clone $1 $2 | |
| find $2 -type f -exec ./replace_in_file.sh {} "$3" \; | |
| cd $2 && git status |
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
| .\ImageJ.exe -eval "macfile=File.openAsString('batch_rg_channels_merge.macro'); eval(macfile);" |
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
| #! /usr/bin/python3 | |
| import sqlite3 | |
| import urllib.request | |
| from bs4 import BeautifulSoup | |
| import sys | |
| def get_verbs(page, verbslist): | |
| baseurl = "http://pasttenses.com/irregular-verbs-list" + page | |
| data = urllib.request.urlopen(baseurl) |
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
| #! /usr/bin/python3 | |
| import urllib.request | |
| import urllib.parse | |
| from bs4 import BeautifulSoup | |
| def get_colissimo_info(colissimo_id): | |
| data = urllib.parse.urlencode({'colispart': colissimo_id}) | |
| colissimo_baseurl = "http://www.colissimo.fr/portail_colissimo/suivre.do" | |
| colissimo_data = urllib.request.urlopen(colissimo_baseurl, data.encode('utf-8')) |