Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Wright paintedbicycle

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am paintedbicycle on github.
  • I am paintedbicycle (https://keybase.io/paintedbicycle) on keybase.
  • I have a public key whose fingerprint is 398C 4B20 2EAC 065E 39CF A783 22E9 C574 C0EE 8BB9

To claim this, I am signing this object:

@paintedbicycle
paintedbicycle / SSL Cypher Suite Config
Last active Aug 29, 2015
Hardening SSL with better cypher suite order
View SSL Cypher Suite Config
First, make sure mod_ssl is enabled: sudo a2enmod ssl
and mod_headers in enabled for HSTS: sudo a2enmod headers
Now we need to adjust the default SSL settings in order to make them more secure.
A good resource is this: https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/
Open /etc/apache2/mods-enabled/ssl.conf OR /etc/apache2/apache2.conf and put this at the bottom of the file:
SSLProtocol ALL -SSLv2 -SSLv3
SSLHonorCipherOrder On
@paintedbicycle
paintedbicycle / Heavy Use Websites
Last active Aug 29, 2015
Sites or apps that are used for long periods of time
View Heavy Use Websites
## CRMs
PipeDrive CRM - https://www.pipedrive.com
## Social & Marketing
Hootsuite - https://hootsuite.com
Hubspot - https://www.hubspot.com
MailChimp - http://mailchimp.com
Facebook - https://facebook.com
Twitter - https://twitter.com
@paintedbicycle
paintedbicycle / ssh keys
Created Apr 6, 2014
Working with SSH keys
View ssh keys
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
@paintedbicycle
paintedbicycle / Generate SSL Keys
Last active Aug 29, 2015
Use openssl to get new keys
View Generate SSL Keys
SSL Certificate Terminal Commands
To create a private key with a passphrase:
openssl req -sha256 -newkey rsa:4096 -keyout key.pem -out csr.pem
To create a private key without a passphrase:
openssl req -nodes -sha256 -newkey rsa:4096 -keyout key.pem -out csr.pem
ONLY if you are self signing (rare), now this to create your certificate:
openssl req -new -x509 -key key.pem -out cert.pem -days 1095
@paintedbicycle
paintedbicycle / gist:9056705
Created Feb 17, 2014
grunt-browsersync-jade
View gist:9056705
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
main: {
files: [
// copy files to dist
{ expand: true, flatten: true, cwd: '', src: ['src/app.js'], dest: 'dist/' },
View package.json
{
"name": "ExampleSite",
"version": "0.1.0",
"dependencies": {
},
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-uglify": "~0.3.2",
"grunt-contrib-cssmin": "~0.7.0",
"grunt-contrib-watch": "~0.5.3",
View gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
includes: {
files: {
src: ['*.html'],
dest: 'temp/',
flatten: false,
cwd: 'src/'
},