wget https://wordpress.org/latest.zip
unzip latest.zip
mv wordpress www
chown www-data:www-data -R www
cd www
# Change directory permissions rwxr-xr-x
find . -type d -exec chmod 755 {} \;
# Change file permissions rw-r--r--
This file contains hidden or 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
########## | |
# Tweaked Win10 Initial Setup Script | |
# Primary Author: Disassembler <[email protected]> | |
# Modified by: alirobe <[email protected]> based on my personal preferences. | |
# Version: 2.20.2, 2018-09-14 | |
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/ | |
# Tweak difference: | |
# | |
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ... |
This file contains hidden or 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
require 'io/console' | |
require 'open-uri' | |
require 'digest' | |
puts "The 5-character prefix of the password's SHA-1 hash will be sent." | |
puts "For details, see https://www.troyhunt.com/ive-just-launched-pwned-passwords-version-2/" | |
print 'Password (hidden): ' | |
password = $stdin.noecho(&:gets).strip | |
puts |
This file contains hidden or 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
su - postgres | |
createdb {databasename} | |
psql {databasename} | |
databasename=# CREATE USER tester WITH PASSWORD 'test_password'; | |
databasename=# GRANT ALL PRIVILEGES ON DATABASE "databasename" to tester; | |
databasename=# \q |
This file contains hidden or 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
<!DOCTYPE> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<title>start.duckduckgo.com</title> | |
<link rel="search" | |
type="application/opensearchdescription+xml" | |
title="Start DDG" | |
href="start.duckduckgo.com.xml"> |
Sequel.migration do
change do
alter_table(:table_name) do
add_column :name, String, :null => true
do
This file contains hidden or 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 ruby | |
# encoding: utf-8 | |
begin | |
require 'rainbow' | |
rescue LoadError | |
puts "Rainbow is not installed" | |
puts " gem install rainbow" | |
exit | |
end |
This file contains hidden or 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
# Allow Generic Lets-Encrypt store | |
location ^~ /.well-known/acme-challenge/ { | |
root /srv/apps/www/acme-challenge/; | |
try_files $uri =404; | |
} |
NewerOlder