Skip to content

Instantly share code, notes, and snippets.

View dcalixto's full-sized avatar
🎯
Focusing

Daniel dcalixto

🎯
Focusing
View GitHub Profile
@dcalixto
dcalixto / CS_SSL-certs.md
Created November 13, 2016 05:39 — forked from drAlberT/CS_SSL-certs.md
SSL certificates cheatsheets

SSL certificates CheatSheet

Quick reference for SSL certificate workflow handling for commonly used commercial SSL products

General purpose commands

Generate

  • Generate a new private key
@dcalixto
dcalixto / basics.md
Created November 13, 2016 05:34 — forked from rosswd/basics.md
Git Cheatsheets

Git Basics

  1. Make a directory: mkdir ~/Sites/my_site
  2. Change into directory: cd ~/Sites/my_site
  3. Create repo from directory: git init
  4. Tell git to track file: git add comments.rb
  5. Add file to the staging area: git commit -m 'first commit'
  6. Open file and add something: vim comments.rb
  7. Check status: git status
  8. Discard Changes: git checkout

bash cheatsheet

some stuff I still need to memorize

c-a move to beginning of line
@dcalixto
dcalixto / README.md
Created November 13, 2016 05:25 — forked from rstacruz/README.md
Standard JavaScript guide
@dcalixto
dcalixto / index.md
Created November 13, 2016 05:23 — forked from rstacruz/index.md
Rails models cheatsheet

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one

@dcalixto
dcalixto / 01-Nginx-Naxsi-Core.md
Created April 10, 2016 22:20 — forked from purwandi/01-Nginx-Naxsi-Core.md
Install nginx, naxsi core and naxsi ui

Install Some Dependencies

apt-get install build-essential bzip2 libpcre3-dev libssl-dev mysql-server daemon libgeoip-dev

Installing Nginx with Naxsi Core

Download Nginx, Naxsi Core dan Naxsi UI. Saya berasumsi tempat download berada di /home/compile

@dcalixto
dcalixto / private_pub-on-nginx.md
Created April 10, 2016 15:47 — forked from twetzel/private_pub-on-nginx.md
private_pub/faye on nginx
@dcalixto
dcalixto / nginx.conf
Created March 18, 2016 00:36 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@dcalixto
dcalixto / secure-it.md
Created March 9, 2016 16:05 — forked from mahmoudimus/secure-it.md
secure a server

New Server Setup (Reasonably Secure Ubuntu Box)

Basic setup for a new box:

blocks password logins - need to use public key blocks bruteforcing w/ fail2ban ufw/iptables to allow only SSH/HTTP/HTTPS from public weekly auto security updates vi unattended-upgrades basic setup