Skip to content

Instantly share code, notes, and snippets.

View andrzej-zuralovic's full-sized avatar

Andzej Zuralovic andrzej-zuralovic

View GitHub Profile
@andrzej-zuralovic
andrzej-zuralovic / generate-ssh-key.sh
Created June 27, 2019 12:11 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@andrzej-zuralovic
andrzej-zuralovic / tableRenderingExample.js
Created May 28, 2018 21:13 — forked from markerikson/tableRenderingExample.js
React expandable table rows example
class ParentComponent extends Component {
constructor() {
super();
this.state = {
data : [
{id : 1, date : "2014-04-18", total : 121.0, status : "Shipped", name : "A", points: 5, percent : 50},
{id : 2, date : "2014-04-21", total : 121.0, status : "Not Shipped", name : "B", points: 10, percent: 60},
{id : 3, date : "2014-08-09", total : 121.0, status : "Not Shipped", name : "C", points: 15, percent: 70},
{id : 4, date : "2014-04-24", total : 121.0, status : "Shipped", name : "D", points: 20, percent : 80},
@andrzej-zuralovic
andrzej-zuralovic / ssh_hardening.yml
Created May 23, 2018 20:00
ssh_hardening_ansible
---
# After first run, root access is disabled. Use
# ansible-playbook -i hosts -b -u deploy ssh_hardening.yml
- hosts: all
vars:
COMMON_ROOT_PASSWORD: ""
COMMON_DEPLOY_PASSWORD: ""
# COMMON_LOGWATCH_EMAIL: "{{ lookup('env', 'COMMON_EMAIL') }}"