- npm i jose
node jwe.js
| [Unit] | |
| Description=Auto SSH Service | |
| Wants=network-online.target | |
| After=network-online.target | |
| [Service] | |
| Type=simple | |
| User=pi | |
| WorkingDirectory=/home/pi/autossh | |
| ExecStart=/home/pi/autossh/script.sh |
| for pdfile in *.pdf ; do | |
| convert -verbose -density 500 "${pdfile}" -quality 100 "${pdfile%.*}".png | |
| # rm "${pdfile}" | |
| done |
| # https://www.hackerrank.com/contests/capture-the-flag/challenges/secret-key/copy-from/1301466914 | |
| from urllib import urlopen | |
| import json | |
| import ast | |
| url = urlopen('https://cdn.hackerrank.com/hackerrank/static/contests/capture-the-flag/secret/key.json').read().decode('utf8') | |
| result = json.dumps(json.loads(url)) | |
| result = ast.literal_eval(result) | |
| i = 0 | |
| data = list() |
| # http://pandas.pydata.org/pandas-docs/stable/merging.html | |
| # Search on 'Brief primer on merge methods (relational algebra)' | |
| import pandas as pd | |
| csv_input = pd.read_csv('./file_A.csv') | |
| df = pd.DataFrame(csv_input) | |
| csv_input2 = pd.read_csv('./file_B.csv') | |
| df2 = pd.DataFrame(csv_input2) | |
| combined = pd.merge(csv_input, csv_input2, on='Primary Key') | |
| combined.to_csv('output.csv', index=False) |
| import java.lang.reflect.UndeclaredThrowableException; | |
| import java.security.GeneralSecurityException; | |
| import java.text.DateFormat; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| import javax.crypto.Mac; | |
| import javax.crypto.spec.SecretKeySpec; | |
| import java.math.BigInteger; | |
| import java.util.TimeZone; |