This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# pdf2htmlEX install shell script for Ubuntu 16.04, using latest sources | |
# Created by James A. Prempeh ( github.com/prmph ) | |
HOME_PATH=$(cd ~/ && pwd) | |
LINUX_ARCH="$(lscpu | grep 'Architecture' | awk -F\: '{ print $2 }' | tr -d ' ')" | |
POPPLER_SOURCE="https://poppler.freedesktop.org/poppler-0.43.0.tar.xz" | |
FONTFORGE_SOURCE="https://github.com/fontforge/fontforge.git" | |
PDF2HTMLEX_SOURCE="https://github.com/coolwanglu/pdf2htmlEX.git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[1;33m' | |
NOCOLOR='\033[0m' | |
# Install useful base packages | |
echo -e "\n${YELLOW}Installing base packages ...${NOCOLOR}" | |
sudo apt update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Install useful packages | |
echo( & echo Installing chocolatey ... | |
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
refreshenv | |
echo( & echo Installing wget ... | |
choco install wget -y | |
refreshenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt install samba cifs-utils | |
echo "" | sudo tee -a /etc/samba/smb.conf | |
echo "[Code]" | sudo tee -a /etc/samba/smb.conf | |
echo " comment = CODE FOLDER" | sudo tee -a /etc/samba/smb.conf | |
echo " path = ~/code" | sudo tee -a /etc/samba/smb.conf | |
echo " read only = no" | sudo tee -a /etc/samba/smb.conf | |
# echo " guest ok = yes" | sudo tee -a /etc/samba/smb.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install ufw -y | |
sudo ufw enable | |
# sudo ufw default deny | |
sudo ufw default deny incoming | |
sudo ufw default allow outgoing | |
# Allow common apps | |
sudo ufw allow ssh | |
sudo ufw allow Samba |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -i | |
apt install gcc make | |
mkdir -p /media/cdrom | |
mount /dev/cdrom /media/cdrom | |
/media/cdrom/VBoxLinuxAdditions.run | |
reboot | |
# After reboot: | |
sudo usermod --append --groups vboxsf $(whoami) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
######################## | |
### SCRIPT VARIABLES ### | |
######################## | |
# Name of the user to create and grant sudo privileges | |
USERNAME=sammy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "Name of code check" | |
}, | |
"description": { | |
"type": "string", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"$id": "http://danfortsystems.com/schemas/appgen.json", | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "Name of app" | |
}, | |
"owner": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NOCOLOR='\033[0m' | |
# Install useful base packages | |
echo -e "\n${GREEN}Installing base packages ...${NOCOLOR}" | |
sudo apt update | |
sudo apt install -y build-essential |
OlderNewer