<script> | |
const restrictedDomains = [ | |
'@example.com', | |
'@foo.bar' | |
]; | |
async function initEmailCheck() { | |
try { | |
const emailInput = await waitForElementPromise('#EMAIL_2'); | |
const submitButton = await waitForElementPromise('#submit-button'); |
#!/usr/bin/env bash | |
MOUNT="/media" | |
EPHEMERAL_DISK=$(sudo nvme list | grep 'Amazon EC2 NVMe Instance Storage' | awk '{ print $1 }') | |
# Check if the mount point exists in /proc/mounts | |
if grep -qs ${MOUNT} /proc/mounts; then | |
echo "It's mounted." | |
else | |
# Check if the block device exists and is not formatted as ext4 | |
if [ -b ${EPHEMERAL_DISK} ] && ! blkid ${EPHEMERAL_DISK} | grep -qs ext4; then |
// Only proceed if we're not on a register page | |
if (!window.location.pathname.includes('/register')) { | |
const params = new URLSearchParams(window.location.search); | |
// Only add language param if it doesn't exist | |
if (!params.has('language')) { | |
params.append('language', 'en'); | |
// Construct new URL with updated params | |
const newUrl = window.location.pathname + '?' + params.toString() + window.location.hash; |
#!/bin/env bash | |
# Get aws sesv2 list-suppressed-destinations | |
# It will have a json output and has format like this: | |
# { | |
# "SuppressedDestinationSummaries": [ | |
# { | |
# "EmailAddress": "string", | |
# "LastUpdateTime": "string", | |
# "Reason": "string" # BOUNCE | COMPLAINT |
<script> | |
/** | |
* To add this to links in the page, add data variable data-inject-qs to the link. | |
* For example: | |
* <a href="https://google.fi" data-inject-qs>Google</a> | |
* | |
* And If current url is /something?hello=world, it will inject ?hello=world to that link | |
* It will became https://google.fi?hello=world | |
* | |
**/ |
function getDifference(toD, fromD = new Date(), zeroPad = false) { | |
let d1 = new Date(fromD); // Current date and time | |
let d2 = new Date(toD); // Target date and time | |
// Calculate difference in milliseconds | |
let diffMs = Math.abs(d2 - d1); | |
// Convert to respective units | |
let diffSeconds = Math.floor(diffMs / 1000); | |
let diffMinutes = Math.floor(diffSeconds / 60); |
Flik Media Group, the creator of Videosync service, is committed to protecting your privacy and personal data. This privacy statement (“Privacy Statement”) explains how Flik Media Group and its authorised partners and affiliates (“Flik”) process personal data in connection with the Videosync service (“Service”).
Personal data is information that is about you as an identifiable individual. Aggregated, statistical or de-identified information is not personal information. Information generated through your use of our websites or watching videos will not be personal information unless we can combine it with other information that would identify you.
The term “personal data”, as used in this Privacy Statement, refers to any information about you which can be used to personally identify you, such as your name, address, telephone number, e-mail address, or any other personal information you might supply.
#!/usr/bin/env bash | |
# This script builds on the excellent work by Lucas Jenß, described in his blog | |
# post "Integrating a submodule into the parent repository", but automates the | |
# entire process and cleans up a few other corner cases. | |
# https://x3ro.de/2013/09/01/Integrating-a-submodule-into-the-parent-repository.html | |
function usage(){ | |
echo "Usage: $0 <submodule-name> [<submodule-branch>]" | |
echo "Merge a single branch of <submodule-name> into a repo, retaining file history." |
#/bin/bash | |
for i in $(find . -iname "*.jade"); do | |
git mv "$i" "$(echo $i | rev | cut -d '.' -f 2- | rev).pug"; | |
done |