This file contains hidden or 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
server { | |
server_name site.jyntran.ca | |
root /var/www/html | |
location / { | |
try_files $uri $uri/ =404; | |
} | |
location /assets/ { |
This file contains hidden or 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
sudo apt update | |
sudo apt install python3-pip python3-dev build-essential libssl-dev libffi-dev python3-setuptools | |
sudo apt install python3-venv | |
cd ~/myproject | |
python3.6 -m venv myprojectenv | |
source myprojectenv/bin/activate | |
pip install wheel | |
pip install uwsgi flask | |
pip install requests | |
sudo ufw allow 5000 |
This file contains hidden or 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 | |
for ARGUMENT in "$@" | |
do | |
KEY=$(echo $ARGUMENT | cut -f1 -d=) | |
VALUE=$(echo $ARGUMENT | cut -f2 -d=) | |
case "$KEY" in | |
--domain) domain="${VALUE}" ;; | |
--wildcard) wildcard="true" ;; | |
--help) help="true" ;; |
This file contains hidden or 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
<style> | |
html, body { | |
font-family: helvetica,arial,sans serif; | |
} | |
hr, #userneohome, #usershop, #ncmall, #right_of_trohpies { | |
display: none; | |
} | |
#content { | |
margin: auto; | |
max-width: 800px; |
This file contains hidden or 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
/* Background pattern from Toptal Subtle Patterns */ | |
<style> | |
body { | |
background: url('https://i.imgur.com/XSfUPDf.png') repeat; | |
color: #999; | |
font-family: arial, sans serif; | |
} | |
.main { | |
text-align: center; |
This file contains hidden or 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
sudo chown -R www-data:www-data wp-content/uploads |
This file contains hidden or 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
rm ~/.pebble-sdk/settings.json |
This file contains hidden or 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
git filter-branch --force --index-filter \ | |
'git rm -r --cached --ignore-unmatch PATH-TO-SENSITIVE-FILE' \ | |
--prune-empty --tag-name-filter cat -- --all | |
# the third portion may not be neccessary | |
echo PATH-TO-SENSITIVE-FILE >> .gitignore | |
git add .gitignore && git commit -m "update gitignore" | |
git push -f origin BRANCH |
This file contains hidden or 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 { | |
overflow: hidden; | |
height: 100% !important; | |
} | |
body { | |
/* | |
background-image: url('https://i.imgur.com/SVNU3zf.jpg'); | |
background-size: cover; |
This file contains hidden or 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
import React, { Component } from 'react'; | |
import { Meteor } from 'meteor/meteor'; | |
function Status(props) { | |
const success = props.success; | |
const error = props.error; | |
console.log(props); | |
if (error) { | |
return ( | |
<div className="message error contact-message" data-component="message">{error.message}<span className="close small"></span></div> |
NewerOlder