Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
| # coding: utf-8 | |
| from django.contrib import admin | |
| from django.db import models | |
| from tinymce.widgets import TinyMCE | |
| from models import Message, FormSettings | |
| class FormSettingsAdmin(admin.ModelAdmin): | |
| formfield_overrides = { |
| { | |
| "presets": ["@babel/preset-env"] | |
| } |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
| <style> | |
| .videoWrapper { | |
| position: relative; | |
| padding-bottom: 56.25%; /* 16:9 */ | |
| padding-top: 25px; | |
| height: 0; | |
| } | |
This environment is dependent off a common network for docker/git plugin and gitea-server, so for this work fine in closed networks we have to create a custom network before run this composefile.
First create your network:
docker network create gitea-network| from django.contrib import admin | |
| from django.contrib.auth import admin as auth_admin | |
| from .models import * | |
| from forms import UserChangeForm, UserCreationForm | |
| class UserAdmin(auth_admin.UserAdmin): | |
| fieldsets = ( | |
| (None, {'fields': ('email', 'password')}), | |
| ('Personal info', {'fields': ('first_name', 'last_name', 'twitter', 'photo', 'event')}), |
| # install homebrew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # install postgresql | |
| brew install postgresql | |
| # start homebrew postgresql service | |
| brew service start postgresql | |
| # create a database with your username |
| /** WARNING - USE AT OWN RISK */ | |
| /** IT IS AGAINST APPLE'S POLICY TO USE SF PRO FOR ANYTHING OTHER THAN iOS/tvOS/macOS/watchOS DESIGN & DEVELOPMENT */ | |
| /** https://sf.abarba.me/font.css */ | |
| /** https://sf.abarba.me/LICENSE.pdf */ | |
| /** 1. Copy/import this file into your main css/scss file */ | |
| /** 2. Change css font-family: to "SF Text", "SF Display" or "SF Mono" */ | |
| /** 3. Apply font-weight or italic to html elements */ | |
| /** THANK YOU */ |
| #!/bin/bash | |
| # | |
| # Backup a Postgresql database into a daily file. | |
| # | |
| BACKUP_DIR=/pg_backup | |
| DAYS_TO_KEEP=14 | |
| FILE_SUFFIX=_pg_backup.sql | |
| DATABASE= | |
| USER=postgres |