apt install -y nginx rsync
- Add the
github
user:
adduser --disabled-password --gecos "" --home /home/github github
# function that reverses a string by characters | |
reverse_chars <- function(string) | |
{ | |
# split string by characters | |
string_split = strsplit(string, split = "") | |
# reverse order | |
rev_order = nchar(string):1 | |
# reversed characters | |
reversed_chars = string_split[[1]][rev_order] | |
# collapse reversed characters |
#!/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 \ |
/* 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; |
#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> |