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
import json | |
import os | |
import wget #pip install wget | |
from pathlib import Path | |
JSON_PATH = "<YOUR JSON PATH>" | |
def wget_image(image_url): | |
filename = os.path.basename(image_url) |
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
import requests # pip install requests | |
import jwt # pip install pyjwt | |
from datetime import datetime as date | |
import json | |
import os | |
CONTENT_API = "<YOUR CONTENT API>" | |
ADMIN_API = "<YOUR ADMIN API>" | |
API_URL = "<URL ENDPOINT>" |
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.9" | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: somewordpress |
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
sudo /opt/bitnami/apps/ghost/bnconfig --disable_banner 1 | |
ghost start --no-prompt | |
cd /opt/bitnami/apps/ghost/lib/ | |
echo '{}' | sudo tee package.json | |
sudo npm i ghost-cli@latest | |
sudo npm i ghost-storage-adapter-s3@latest | |
cd /opt/bitnami/apps/ghost/htdocs/ | |
ghost update v3 | |
ghost update | |
cp -rf config.production.json backup.json |
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
{ | |
"url": "https://REPLACETHIS.com", | |
"server": { | |
"port": 2368, | |
"host": "127.0.0.1" | |
}, | |
"database": { | |
"client": "mysql", | |
"connection": { | |
"host": "localhost", |
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
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | |
<link type="image/png" href="/favicon-32x32.png" rel="icon" sizes="32x32" /> | |
<link type="image/png" href="/favicon-16x16.png" rel="icon" sizes="16x16" /> | |
<title>Find the best tech Jobs and IT Jobs in Vietnam | Workolio</title> | |
<meta name="description" content="Kho việc làm CNTT và IT chất lượng nhất tại Việt Nam | Workolio" /> | |
<link rel="canonical" href="https://test.workolio.com" /> | |
<meta name="referrer" content="no-referrer-when-downgrade" /> | |
<meta property="og:site_name" content="Workolio" /> |
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
# startups.html | |
{% load static %} | |
{% block css %} | |
<link rel="preload" href="{% static 'css/startups.css' %}" as="style" onload="this.onload=null;this.rel='stylesheet'"> | |
<noscript> | |
<link rel="stylesheet" href="{% static 'css/startups.css' %}"> | |
</noscript> | |
{% endblock %} |
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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
uncss: { | |
home: { | |
files: [{ | |
nonull: true, | |
src: ['http://localhost:8000/'], | |
dest: 'apps/static/css/portal.css' | |
}] | |
}, |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
uncss: { | |
dist: { | |
files: [{ | |
nonull: true, | |
src: ['http://localhost:8000/'], | |
dest: 'apps/static/css/styles.css' | |
}] | |
}, |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
uncss: { | |
dist: { | |
files: [{ | |
nonull: true, | |
src: ['http://localhost:8000/'], | |
dest: 'apps/static/css/styles.css' | |
}] | |
}, |