Skip to content

Instantly share code, notes, and snippets.

@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 (
@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
.Person {
background-color: white;
color: #ccc;
}
.dir-rtl .Person {
font-family: someBetterRTLFont;
}
.dark-mode .Person {
background-color: black;
version: '3'
services:
app:
build:
context: .
dockerfile: .docker/Dockerfile
image: laravel-docker
ports:
- 8080:80
volumes:
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
<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
php /var/www/acurian/reward4good/releases/1/site/app/console cache:warmup --no-interaction --env=prod --no-debug
// Clearing the cache for the dev environment with debug true
[Symfony\Component\Config\Exception\FileLoaderLoadException]
Upload path not valid in /var/www/acurian/myapp/releases/1/site/app/config/.
(which is being imported from "/var/www/acurian/myapp/releases/1/site/app/config/routing.yml").
[28-Mar-2018 14:49:44 America/New_York] Error: Call to a member function getRequestTime() on null in /app/site/core/lib/Drupal/Core/Entity/ContentEntityForm.php on line 401 #0 /app/site/core/lib/Drupal/Core/Entity/ContentEntityForm.php(148): Drupal\Core\Entity\ContentEntityForm->updateChangedTime(Object(Drupal\app_messaging\Entity\AppMessage))
#1 [internal function]: Drupal\Core\Entity\ContentEntityForm->submitForm(Array, Object(Drupal\Core\Form\FormState))
#2 /app/site/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array)
#3 /app/site/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState))
#4 /app/site/core/lib/Drupal/Core/Form/FormBuilder.php(585): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState))
#5 /app/site/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('app_message_add...', Array, Object(Drupal\Core\For
"require-dev": {
"fzaninotto/faker": "~1.4",
"krlove/eloquent-model-generator": "^1.2",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.7",
"xethron/migrations-generator": "^2.0",
"orangehill/iseed": "dev-master"
},
/sda1 (ntfs Windows),
/sda2 (fat32 Windows boot/esp drive),
/sda3 (that other special partition Windows creates labeled msftres).
/sda4 (linux /boot),
/sda6 (linux /home),
/sda7 (linux /)
/sda5 (linux swap space),