Skip to content

Instantly share code, notes, and snippets.

View wrestrtdr's full-sized avatar

12345 wrestrtdr

  • on the earth...
View GitHub Profile
@wrestrtdr
wrestrtdr / Stackedit.md
Created May 31, 2017 10:32 — forked from nztim/Stackedit.md
Install StackEdit on Ubuntu 14.04

###Install Node and Bower

  • Set up the NodeSource repo and install Node
  • curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
  • sudo apt-get install nodejs
  • Install bower: sudo npm install -g bower

Install StackEdit

  • Clone the repo: git clone https://github.com/benweet/stackedit
  • To use a domain other than 'localhost', edit /public/res/constants.js:
  • constants.BASE_URL = "http://stackedit.dev:3000/";
@wrestrtdr
wrestrtdr / page.html
Last active July 16, 2017 17:07 — forked from tomviner/page.html
DDoS protection by CloudFlare
$ GET http://xyz.com/14015/forxxx
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title>Just a moment...</title>
<link rel="stylesheet" media="screen" href="/cdn-cgi/styles/js-challenge/error.css" type="text/css">
</head>
<body>
@wrestrtdr
wrestrtdr / wkhtmltopdf-install.md
Created July 29, 2017 21:42 — forked from calebbrewer/wkhtmltopdf-install.md
How to Setup wkhtmltopdf on CentOS 7

How to Setup wkhtmltopdf on CentOS 7

Install Dependencies

yum install fontconfig libXrender libXext xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi freetype libpng zlib libjpeg-turbo

Install wkhtmltopdf

@wrestrtdr
wrestrtdr / readme.md
Created September 16, 2017 14:58 — forked from joubertredrat/readme.md
Install Gogs from binary on VestaCP panel

Install Gogs from binary on VestaCP

This tutorial was written based on Ubuntu 14.04 with VestaCP.

For this example, I created user cooler, domain repo.my.cooler and database cooler_repo on VestaCP panel.

To install Gogs, you will need to use user with admin rights, on my tutorial I'm using default admin user from VestaCP.

1 - install supervisor.

@wrestrtdr
wrestrtdr / Synology-Diskstation-Git.md
Created September 16, 2017 15:02 — forked from walkerjeffd/Synology-Diskstation-Git.md
Instructions for setting up git server on Synology Diskstation

Configure Synology NAS as Git Server

Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS414 with DSM 5.0.

Set Up User and Folder

  • Create user gituser via Diskstation interface (with File Station and WebDAV privilages)
  • Add new shared folder called git (located at /volume1/git) with read/write access for gituser and admin. This folder will hold all the repos.
  • Install Git Server package via Diskstation
@wrestrtdr
wrestrtdr / backup-hook.pl
Created April 6, 2018 16:49 — forked from bitcloud/backup-hook.pl
Proxmox backup-hook for Hetzner Server
#!/usr/bin/perl -w
# hook script for vzdump (--script option)
=begin comment
backuphook for Proxmox
renames files so that they include the hostname of the machine
Instructions for Hetzner Backup Server auth via SSH
@wrestrtdr
wrestrtdr / haproxy.conf
Created April 6, 2018 16:49 — forked from gburd/haproxy.conf
Recommended haproxy settings to balance Riak protobuf and http interfaces (note: WORK IN PROGRESS)
# Documentation for HAProxy
# http://code.google.com/p/haproxy-docs/w/list
# http://haproxy.1wt.eu/download/1.2/doc/architecture.txt
# NOTES:
# open files limits need to be > 256000, use ulimit -n to set (on most POSIX systems)
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
@wrestrtdr
wrestrtdr / gist:e8cd62a674f534abceee807dec2909b7
Created April 24, 2018 10:07 — forked from mabutler/gist:1ffce5eca2b6b1260db3
Gogs Server Setup - Digital Ocean - Centos 7 - Start to Finish
useradd -c"Matt Butler" -Gwheel -m matt
# install ssl key for authentication
visudo # change wheel to allow nopassword
vim /etc/ssh/sshd_config # add "PermitRootLogin no"
yum install vim-enhanced
yum install git
yum install epel-release
@wrestrtdr
wrestrtdr / internetbs-topdns-dyndns.md
Created May 20, 2018 14:32 — forked from coreequip/internetbs-topdns-dyndns.md
InternetBS / TopDNS DynDNS API Description

InternetBS / TopDNS DynDNS API Description

If you are using Linux, it is possible to use wget to update the IP. Here is a sample URL:

https://dyndns.topdns.com/update?hostname=www.example.com&username=myusername&password=mypassword

The above one will detect your IP automatically and perform the update. If you want to update with a custom IP address you can use:

https://dyndns.topdns.com/update?hostname=www.example.com&username=myusername&password=mypassword&myip=192.168.0.1
@wrestrtdr
wrestrtdr / README.md
Created June 5, 2018 00:11 — forked from Timi7007/README.md
Collection on all things HTTPS. Includes settings for TLS on nginx.

Why HTTPS?

Collection on all things HTTPS. Includes settings for TLS on nginx.


My current settings for TLS on nginx/1.10.3 on Ubuntu Server 16.04 LTS

See https://www.nginx.com/resources/wiki/start/topics/tutorials/install/#official-debian-ubuntu-packages on how to install the lastest version of nginx.

Most settings are sourced from https://bettercrypto.org/static/applied-crypto-hardening.pdf#subsection.2.1.3, https://danpalmer.me/blog/ssl-labs-grade-a, https://gist.github.com/plentz/6737338 and https://scotthelme.co.uk/

Background