First install Termux
Then there are two options:
Open the Termux terminal on your Android device and copy-and-paste the commands listed below and hit ENTER:
# View my Jekyll blog http://paulstamatiou.com and my jekyll migration post http://paulstamatiou.com/how-to-wordpress-to-jekyll/ | |
# | |
# | |
# based on the import script by icebreaker, which is based on mojombo's | |
# https://github.com/mojombo/jekyll/blob/master/lib/jekyll/migrators/wordpress.rb | |
# https://gist.github.com/303570 | |
# edited to rewrite image URLs to use my CloudFront URL | |
require 'rubygems' | |
require 'sequel' |
#!/bin/bash | |
# About: Bash script to create new Jekyll posts | |
# Author: @AamnahAkram | |
# URL: https://gist.github.com/aamnah/f89fca7906f66f6f6a12 | |
# Description: This is a more advanced version of the script which can | |
# - take options | |
# - has color coded status messages | |
# - improved code | |
# - lowercase permalinks | |
# - usage message |
#!/usr/bin/env ruby | |
unless ARGV[0] | |
puts 'Usage: newpost "the post title"' | |
exit(-1) | |
end | |
date_prefix = Time.now.strftime("%Y-%m-%d") | |
postname = ARGV[0].strip.downcase.gsub(/ /, '-') | |
post = "/Users/al3x/src/al3x.github.com/_posts/#{date_prefix}-#{postname}.textile" |
#!/bin/bash | |
# Katie Harron - @pibby | |
# This bash script will setup a new Jekyll blog post in Markdown and open it for editing in Sublime Text 2 | |
echo "Post Title: " | |
read title | |
echo "Post Description: " | |
read desc | |
echo "Post Tags: " | |
read tags |
#! /bin/bash | |
# ============================= | |
# | |
# Hugo fast commit script | |
# | |
# Created 19.09.23(paran_son@outlook.com) | |
# | |
# ============================= |
#!/usr/bin/env ruby | |
require 'optparse' | |
require 'ostruct' | |
require 'pp' | |
class Article | |
attr_accessor :options, :file |
First install Termux
Then there are two options:
Open the Termux terminal on your Android device and copy-and-paste the commands listed below and hit ENTER:
alias lsfull='ls --color=always -rthla' | |
alias ls='ls --color=always -a' | |
alias rm='rm -i' | |
alias rmdir='rm -ri' | |
alias copytoclipboard="xclip -sel c < " | |
alias userlogout="gnome-session-quit" | |
alias tetris="tetris-thefenriswolf.tetris" | |
alias compress_png="optipng " | |
alias compress_jpg="jpegoptim " | |
alias compress_gif="gifsicle --batch --optimize " |
Let's install a containerized web server stack on Linux! That will also deploy an intrusion prevention system with fail2ban, obtain trusted https certificates and a database server to install a WordPress blog.
We will use the free and open-source software Nginx, Docker, and WordPress.
Nginx: Project Homepage: Documentation:
Docker: