Skip to content

Instantly share code, notes, and snippets.

View Jiri-Mihal's full-sized avatar
🚀
Bootstrapping my next SaaS!

Jiri Mihal Jiri-Mihal

🚀
Bootstrapping my next SaaS!
View GitHub Profile
@Jiri-Mihal
Jiri-Mihal / ssl.sh
Last active June 20, 2019 11:31
One-liner SSL for local development (untrusted SSL)
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt
@Jiri-Mihal
Jiri-Mihal / .gitconfig
Last active April 10, 2021 02:46
Set of handy .gitconfig aliases. On Mac you can simply add these aliases to your .gitconfig file using the following terminal command: $ nano ~/.gitconfig. Then Ctrl + X and Y. Taken from Nicola Paolucci - https://github.com/durdn/cfg/blob/master/.gitconfig. THX!
[user]
email = [email protected]
name = Firstname Lastname
[alias]
# basic
st = status -s
cl = clone
ci = commit
co = checkout
@Jiri-Mihal
Jiri-Mihal / php-smtp-example.php
Created April 10, 2017 20:32
Simple PHP example of sending email via SMTP server.
<?php
// Configure SMTP
$host = 'smtp.yoursmtphost.tld';
$port = 25;
$username = '[email protected]';
$password = 'senderPassword';
$from = '[email protected]';
$name = 'Sender Name';