cd delalight_site/
./server_down.sh
sudo rm -r data/postgres/
FROM node:20-alpine AS base | |
### Dependencies ### | |
FROM base AS deps | |
RUN apk add --no-cache libc6-compat git | |
# Setup pnpm environment | |
ENV PNPM_HOME="/pnpm" | |
ENV PATH="$PNPM_HOME:$PATH" | |
RUN corepack enable |
<?php | |
session_start(); | |
class Auth { | |
public static function login($username, $password) { | |
if (User::verifyPassword($username, $password)) { | |
$user = User::find($username); | |
print_r($user); | |
$_SESSION['username'] = $username; | |
$_SESSION['user_id'] = $user->getId(); |
# Setup linux packages | |
option_settings: | |
- option_name: BUNDLE_DISABLE_SHARED_GEMS | |
value: "1" | |
- option_name: BUNDLE_PATH | |
value: "vendor/bundle" | |
packages: | |
yum: | |
curl: [] |
from sqlite3 import connect | |
from flask import Flask, jsonify, request | |
from flask_restful import Api, Resource | |
from pymongo import MongoClient | |
import bcrypt | |
import numpy | |
import tensorflow as tf | |
import requests | |
import subprocess | |
import json |
FROM ubuntu as intermidiate | |
RUN apt-get update | |
RUN apt-get install git -y | |
RUN mkdir /root/.ssh/ && \ | |
chmod 700 /root/.ssh | |
COPY id_ed25519 /root/.ssh/id_rsa && \ | |
chmod 600 /root/.ssh/id_rsa |
#!/usr/bin/env bash | |
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
git fetch --all | |
git pull --all |
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!-- This is an automatically generated file. | |
It will be read and overwritten. | |
DO NOT EDIT! --> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<TITLE>Bookmarks</TITLE> | |
<H1>Bookmarks</H1> | |
<DL><p> | |
<DT><H3 ADD_DATE="1626629115" LAST_MODIFIED="1626629462" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks bar</H3> | |
<DL><p> |
using System; | |
using System.Collections.Generic; | |
namespace DCP_8_Get_the_Numbers | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int T=int.Parse(Console.ReadLine()); |
def addition_function | |
puts "Which numbers would you like to add?" | |
@n1 = gets.chomp | |
@n2 = gets.chomp | |
@answer = @n1 + @n2 | |
# @n1 + @n2 == @answer | |
puts "The sum is... #{@answer}" | |
end | |
def subtraction_function |