A little walkthrough to setup a new apache virtual host with an HTTPS certificate on Ubuntu.
sudo apt-get update
// Extract JSON payload from SHC QR code (without any kind of private/public key verification) | |
// Credits + inspiration | |
// https://github.com/dvci/health-cards-walkthrough/blob/main/SMART%20Health%20Cards.ipynb | |
// Usage | |
// $ node shc.js "shc:/01234569β¦" | |
const zlib = require("zlib"); |
{# | |
Resets the username, password, and email address | |
of the first found Admin account in case of | |
lost admin access or for support cases. | |
#} | |
{% set values = { | |
username: 'me', | |
password: craft.app.security.hashPassword('mypassword'), | |
email: '[email protected]', | |
passwordResetRequired: 0 |
Tested on a standard $5/mo DigitalOcean VPS running Ubuntu 16.04.
const buffer = require('buffer'); | |
const crypto = require('crypto'); | |
// Demo implementation of using `aes-256-gcm` with node.js's `crypto` lib. | |
const aes256gcm = (key) => { | |
const ALGO = 'aes-256-gcm'; | |
// encrypt returns base64-encoded ciphertext | |
const encrypt = (str) => { | |
// The `iv` for a given key must be globally unique to prevent |
version: '2' | |
services: | |
db: | |
container_name: database | |
image: mariadb # Pull mysql image from Docker Hub | |
ports: # Set up ports exposed for other containers to connect to | |
- "3306:3306" | |
volumes: | |
- ./dep/mysql:/docker-entrypoint-initdb.d |
$ git remote rm origin | |
$ git remote add origin [email protected]:aplikacjainfo/proj1.git | |
$ git config master.remote origin | |
$ git config master.merge refs/heads/master |
import static java.lang.Math.acos; | |
import static java.lang.Math.cos; | |
import static java.lang.Math.sin; | |
/** | |
* Calculate distance between coordinates. | |
*/ | |
public class DistanceCalculator { | |
static double PI_RAD = Math.PI / 180.0; |
These rules are adopted from the AngularJS commit conventions.
People
![]() :bowtie: |
π :smile: |
π :laughing: |
---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |