This file contains 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
package main | |
import ( | |
"fmt" | |
"time" | |
"log" | |
"context" | |
"go.mongodb.org/mongo-driver/mongo" | |
"go.mongodb.org/mongo-driver/mongo/options" | |
"go.mongodb.org/mongo-driver/bson" |
This file contains 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
<html> | |
<body> | |
<style> | |
* { | |
font-family: helvetica; | |
} | |
.fadein { | |
transition: opacity 1s; |
This file contains 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
const fs = require('fs'); | |
const { project } = require('./work.json'); | |
project.forEach((proj) => { | |
const { author, images, links, notes, partner, project, roles, slug, tags, year } = proj; | |
const path = `./projects/${slug}.md`; | |
const content = ` | |
#${project} |
This file contains 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
language: node_js | |
sudo: false | |
addons: | |
apt: | |
packages: | |
- lftp | |
os: linux | |
node_js: | |
- "9.11.2" | |
branches: |
This file contains 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: php:7.1.1 | |
pipelines: | |
branches: | |
master: | |
- step: | |
name: Deploy to FTP | |
script: | |
- apt-get update | |
- apt-get -qq install git-ftp |
This file contains 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
const jwt = require('./jwt'); | |
const SECRET = "yoursupersecret"; | |
export const AuthJwt = { | |
name: 'AuthJwt', | |
version: '1.0.0', | |
register: async function (server, options) { | |
server.auth.scheme('jwt', (server, options) => { | |
return { |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<video autoplay controls></video> | |
<button onClick="javascript:start()">Connect</button> |
This file contains 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 | |
# Change the directory | |
cd /home/username/backup | |
# First do our MySQL dump | |
mysqldump -u root -p "PASSWORD" --all-databases > alldb.sql | |
# Copy all sorted of stuff here to the backup folder | |
cp -r /home/username/files /home/username/backup/files |
This file contains 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
# Exports to JSON | |
mongoimport --db DB_NAME --collection COLLECTION --file COLLECTION.json | |
mongoexport --db DB_NAME --collection COLLECTION -o COLLECTION.json | |
# Exports to CSV, using specific fields | |
mongoexport --db DB_NAME --collection COLLECTION --type=csv --fields OBJECT, FIELDS --out COLLECTION.csv | |
mongoexport --db DB_NAME --collection COLLECTION --type=csv --fields OBJECT, FIELDS --out COLLECTION.csv | |
# Gzippy goodness | |
mongodump -d "DB_NAME" --gzip -o "DB_NAME.dump" |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>items</key> | |
<array> | |
<dict> | |
<key>assets</key> | |
<array> | |
<dict> |