Skip to content

Instantly share code, notes, and snippets.

View deanpcmad's full-sized avatar
👨‍💻

Dean Perry deanpcmad

👨‍💻
View GitHub Profile
@deanpcmad
deanpcmad / arch-linux-install
Last active January 31, 2018 20:41 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
Section "Monitor"
Identifier "Monitor0"
VendorName "Crossover"
ModelName "27-144FAST"
HorizSync 88.8
VertRefresh 59.5
Option "DPMS"
Modeline "2560x1440" 241.50 2560 2608 2640 2720 1440 1443 1448 1481 +hsync -vsync
DisplaySize 597 336
EndSection

Keybase proof

I hereby claim:

  • I am deanpcmad on github.
  • I am deanpcmad (https://keybase.io/deanpcmad) on keybase.
  • I have a public key whose fingerprint is BE7C E15E EC00 D5C8 3C79 CEB4 5BC1 C12F 8549 02B5

To claim this, I am signing this object:

@deanpcmad
deanpcmad / railscasts.rb
Created February 7, 2016 15:21 — forked from samqiu/railscasts.rb
Download free Railscast video
#!/usr/bin/ruby
require 'rss'
# Usage
# $ ./railscasts.rb http://railscasts.com/subscriptions/YOURRAILSCASTRSS/\/
# episodes.rss
# OR
# $ ./railscasts.rb
p 'Downloading rss index'
@deanpcmad
deanpcmad / nginx.conf
Last active January 30, 2016 21:33 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
mkdir -p /etc/nginx/ssl && openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"  
brew install caskroom/cask/brew-cask  
brew cask install google-chrome
brew cask install firefox
brew cask install 1password
brew cask install dropbox
@deanpcmad
deanpcmad / codebase_gitlab.rb
Created May 20, 2015 09:36
Codebase to Gitlab
class CodebaseGitlab
Gitlab.configure do |config|
config.endpoint = ""
config.private_token = ""
end
CodebaseApi.account_user = "account/user"
CodebaseApi.api_key = "key"
@deanpcmad
deanpcmad / list.bat
Created May 14, 2015 09:02
Creates a full directory listing. Change P: to your drive and C:\Users\Dean\OneDrive\ServerFiles to your location
@echo off
For /f "tokens=1-3 delims=/ " %%a in ('date /t') do (set mydate=%%a-%%b-%%c)
For /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b)
P:
tree /A /F > C:\Users\Dean\OneDrive\ServerFiles\%mydate%_%mytime%.txt
@deanpcmad
deanpcmad / Gemfile
Last active August 29, 2015 14:12 — forked from metaskills/Gemfile
gem 'jekyll', '~> 2.0.0.alpha'
gem 'nokogiri'
gem 'redcarpet'
gem 'rouge'
@deanpcmad
deanpcmad / transfer.rb
Last active October 23, 2015 19:00
Codebase to Bitbucket
#!/usr/bin/env ruby
# Install codebase_api & bitbucket_rest_api gems
# Edit as required
# Run this file
# Sit back and watch it do its thing!
require "rubygems"
require "codebase_api"
require "bitbucket_rest_api"