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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/string_score/0.1.10/string_score.min.js"></script> | |
</head> | |
<body> | |
<h1>TESTER</h1> |
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
<!--Remote Google Script--> | |
<script src="https://www.google.com/recaptcha/api.js?onload=onCaptchaLoad&render=explicit" async defer></script> | |
<!--Local site script--> | |
<script> | |
var onCaptchaLoad = function() { | |
var captchaElements = document.querySelectorAll('div[data-captcha="true"]'); | |
for (var i = captchaElements.length - 1; i >= 0; i--) { | |
grecaptcha.render(captchaElements[i], { | |
'sitekey': 'SITE_KEY', | |
'theme': 'light' |
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/sh | |
project=/var/www/iwanttolearn.io | |
GIT_WORK_TREE=$project git checkout -f | |
cd $project | |
composer install --no-dev --optimize-autoloader | |
php artisan migrate --force | |
php artisan cache:clear | |
php artisan route:cache | |
gulp --production |
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
/** | |
* Smoothly scrolls to elements it's called upon | |
* Returns Jquery object for chaining | |
*/ | |
$.fn.smoothScrollTo = function(speed, offset) { | |
if (typeof speed === 'undefined') speed = 800; | |
if (typeof offset === 'undefined') offset = 100; | |
$('html, body').animate({ | |
scrollTop: this.offset().top - offset // Adjust to change final scroll position top margin | |
}, speed); // Adjust to change animations speed (ms) |
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
docker run --name mariadb -p 127.0.0.4:6060:3306 -e MYSQL_ROOT_PASSWORD=bookstack -e MYSQL_DATABASE=bookstack -e MYSQL_USER=bookstack -e MYSQL_PASSWORD=bookstack -d mariadb:latest |
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
@font-face { | |
font-family: 'Roboto'; | |
font-style: normal; | |
font-weight: 400; | |
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v15/CWB0XYA8bzo0kSThX0UTuA.woff2) format('woff2'); | |
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; | |
} | |
body { | |
background-size:cover !important; |
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
# This sets the name 'bookstack' to point locally on port 3002 | |
# and is used on line 19 below. | |
upstream bookstack { server 127.0.0.1:3002; } | |
# This is the main server setup that users access | |
# If you have existing sites and you are adding bookstack on a | |
# 'subdirectory' you may have to combine this with your existing configuration. | |
server { | |
listen 80; | |
# If copying this whole section you will have to change this to your domain or IP. |
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
curl -L https://github.com/ssddanbrown/haste/releases/download/v0.2.2/haste-osx-amd64 > haste && chmod a+x haste && sudo mv haste /usr/bin/haste |
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
#!/usr/bin/env node | |
// Imports | |
const fs = require('fs'); | |
const path = require('path'); | |
const exec = require('child_process').exec; | |
// Config | |
const storeFolder = path.join(process.env.HOME, '.config/sublime-projects'); | |
const sublimePath = '/opt/sublime_text/sublime_text' |
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
version: '3' | |
services: | |
web: | |
image: "ssddanbrown/docker-ubuntu-php7" | |
ports: | |
- "8080:8080" | |
depends_on: | |
- "database" | |
volumes: | |
- ./:/app |
OlderNewer