Project 27
To add credits to the machine you should transfer EXPOSURE from your digital wallet to an account.
Each EXPOSURE gives 1 credit in the machine.
cat <<EOF | |
if [ $(id -u) -ne 0 ]; then | |
printf "Script must be run as root\n" | |
exit 1 | |
fi | |
EOF | |
### Packages: |
from random import randint | |
print("Number ", end="") | |
i = randint(0, 9) | |
print(i, "is ", end="") | |
try: | |
j = 1/(i % 2) + 'a' | |
except TypeError: | |
print("odd") | |
except ZeroDivisionError: |
package main | |
import ( | |
"crypto/cipher" | |
"crypto/des" | |
"fmt" | |
"bytes" | |
"encoding/base64" | |
"crypto/md5" | |
"errors" |
package testencrypt; | |
import java.security.Key; | |
import java.security.SecureRandom; | |
import java.util.Arrays; | |
import javax.crypto.*; | |
import javax.crypto.spec.*; | |
import java.util.Base64; | |
/** |
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "Please run as root or sudo" | |
exit 1 | |
fi | |
set -e | |
if [ -f /etc/os-release ]; then |
# nvm environment variables | |
ENV NVM_DIR=/usr/local/nvm | |
ENV NVM_VERSION=0.33.11 | |
ENV NODE_VERSION=8.10.0 | |
# install nvm | |
# https://github.com/creationix/nvm#install-script | |
RUN [ -d $NVM_DIR ] || mkdir -p $NVM_DIR | |
RUN curl --silent -o- https://raw.githubusercontent.com/creationix/nvm/v${NVM_VERSION}/install.sh | bash |
#!/bin/bash | |
python_code_in_bash() { | |
python3 <(cat <<EOF | |
import sys | |
lines = sys.stdin.readlines() | |
print("Read {} lines from STDIN.".format(len(lines))) |
#!/bin/sh | |
######################################################## | |
# | |
# Check certificates inside a java keystore | |
# | |
######################################################## | |
KEYTOOL="keytool" | |
THRESHOLD_IN_DAYS="30" | |
KEYSTORE="" |
'use strict' | |
const puppeteer = require('puppeteer'); | |
const fs = require('fs'); | |
var args = process.argv.slice(2); | |
if (!(Array.isArray(args) && args.length)) { | |
console.log('puppeteer-json.js url [fileprefix]'); | |
process.exit(1); | |
} |