Skip to content

Instantly share code, notes, and snippets.

<VirtualHost *:80>
DocumentRoot /var/www/html/my_cms/public
<Directory "/var/www/html/my_cms/public">
AllowOverride all
Options Indexes FollowSymLinks
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
FROM php:7.2.11-apache
MAINTAINER Admin
WORKDIR /var/www/html/my_cms/
COPY ./site/ /var/www/html/my_cms/site/
COPY .docker/vhost.conf /etc/apache2/sites-available/000-default.conf
#not sure if sudo needed in container env
version: '3'
services:
app:
build:
context: .
dockerfile: .docker/Dockerfile
image: laravel-docker
ports:
- 8080:80
volumes:
.Person {
background-color: white;
color: #ccc;
}
.dir-rtl .Person {
font-family: someBetterRTLFont;
}
.dark-mode .Person {
background-color: black;
@armyofda12mnkeys
armyofda12mnkeys / README.txt
Created March 18, 2021 06:20
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.17+commit.d19bba13.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@armyofda12mnkeys
armyofda12mnkeys / auth.ts
Created October 5, 2023 20:14 — forked from michaelkremenetsky/auth.ts
Supabase Auth Hook
import { Alert } from "react-native";
import * as WebBrowser from "expo-web-browser";
import { useSupabaseClient } from "@supabase/auth-helpers-react";
import { initiateAppleSignIn } from "../utils/auth";
export const useAuth = () => {
const Supabase = useSupabaseClient();
const signInWithPassword = async (