apt install -y nginx rsync
- Add the
github
user:
adduser --disabled-password --gecos "" --home /home/github github
#!/usr/bin/env bash | |
# | |
# _______| |_ ____ | |
# |_ / _ \ __|_ / | |
# / / __/ |_ / / | |
# /___\___|\__/___| | |
# | |
# A note taking app for the terminal. | |
# |
nodemon --watch src --exec 'node --require ts-node/register --inspect' src/app.ts |
#ifdef __APPLE__ | |
#ifndef st_mtime | |
#define st_mtime st_mtimespec.tv_sec | |
#endif | |
#endif | |
#include <time.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> |
/* install ncurses and compile in the following manner: */ | |
/* gcc -std=c99 -Wpedantic -Wall -lncurses main.c */ | |
#include <ncurses.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int main() | |
{ | |
int height, width, ch; |
import fs from 'fs'; | |
import glob from 'glob'; | |
import chalk from 'chalk'; | |
import EventEmitter from 'events'; | |
type Configuration = { | |
first: string; | |
last: string; | |
}; |
''' | |
This script checks for the existence of a directory called "chats" | |
in the current working directory and looks for XML files to read. | |
Once the parsing is done, it creates an SQLite DB file, and a table | |
for storing the date, from, to, text and style attributes of the messages. | |
''' | |
import os | |
import sys |
#!/bin/sh | |
# Here is the original URL used to test this on: | |
# http://www.ghibli.jp/info/013251/ | |
curl -s $1 | hxwls | grep -E "(jpg|png)" | grep -v thumb | xargs -I{} curl -s -O {} |
#!/bin/bash | |
apt update | |
apt upgrade | |
apt install gnupg | |
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list | |
wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add - | |
apt update | |
apt install -y \ |