Skip to content

Instantly share code, notes, and snippets.

View safarcik's full-sized avatar
:octocat:

Petr Safarcik safarcik

:octocat:
View GitHub Profile

Keybase proof

I hereby claim:

  • I am psafarcik on github.
  • I am psafarcik (https://keybase.io/psafarcik) on keybase.
  • I have a public key ASBl6Lk7-Hd3NkiXvcxYwSEln-wjd17QMTyBN554A-8PZAo

To claim this, I am signing this object:

@safarcik
safarcik / pci_dss.md
Created February 3, 2019 22:42 — forked from darccio/pci_dss.md
PCI DSS. Useful resources
@safarcik
safarcik / .vimrc
Created December 2, 2018 00:43
My Configuration (Thanks to Jeffrey Way - Laracasts)
set nocompatible
source ~/.vim/plugins.vim
syntax enable
set number
set expandtab
set tabstop=2
set shiftwidth=2
set softtabstop=2
set backspace=indent,eol,start
@safarcik
safarcik / driver.sh
Created August 2, 2018 06:25 — forked from TFaga/driver.sh
Wildfly postgresql datasource configuration
./jboss-cli.sh
embed-server --std-out=echo --server-config=standalone.xml
module add --name=org.postgres --resources=/tmp/postgresql-42.1.1.jar --dependencies=javax.api,javax.transaction.api
exit
@safarcik
safarcik / .bash_profile
Created June 6, 2018 15:45 — forked from hernamesbarbara/.bash_profile
bash_profile with terminal colors and useful aliases
#!/bin/bash
export TERM=xterm-color
export CLICOLOR=1
export GREP_OPTIONS='--color=auto'
# export LSCOLORS=Exfxcxdxbxegedabagacad
export LSCOLORS=gxfxcxdxbxegedabagacad # Dark lscolor scheme
# Don't put duplicate lines in your bash history
export HISTCONTROL=ignoredups
# increase history limit (100KB or 5K entries)
export HISTFILESIZE=100000
@safarcik
safarcik / ssl-testing.md
Created June 4, 2018 09:21 — forked from monodot/ssl-testing.md
Using openssl to test an SSL connection with a CA file, pulled out from a Java keystore

Java, do you trust me? 🤔

Using openssl to test an SSL connection to google.com, using a CA file that's been pulled out from a Java keystore. For those days when you want to verify that you've got the right certificate in the store:

  1. Download the Equifax root certificate (which is the root CA for Google)
  2. Import the certificate into a new Java keystore
  3. Export the certificate back out again
  4. Convert the certificate to PEM
  5. Use openssl to test an SSL connection to Google with that cert
@safarcik
safarcik / Linux-commands-cheatsheet.md
Last active June 8, 2022 09:13
Linux commands - cheatsheet

terminal tips && tricks

ctrl + L            - clean terminal  
ctrl + R            - search in bash history  
alt + .             - list of command arguments

basic commands

pwd - acutal workspace path 
@safarcik
safarcik / postgres-cheatsheet.md
Created December 27, 2016 12:51 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*