Skip to content

Instantly share code, notes, and snippets.

View fly304625's full-sized avatar

Serge Tkachuk fly304625

View GitHub Profile
@fly304625
fly304625 / canada_states_titlecase.json
Created December 15, 2021 10:58 — forked from pbojinov/canada_states_titlecase.json
US states & Canadian Provinces in JSON form
[
{
"name": "Alberta",
"abbreviation": "AB"
},
{
"name": "British Columbia",
"abbreviation": "BC"
},
{
@fly304625
fly304625 / states_hash.json
Created December 13, 2021 09:50 — forked from mshafrir/states_hash.json
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
@fly304625
fly304625 / delete_older_than.php
Created July 14, 2021 06:41 — forked from tdebatty/delete_older_than.php
A simple PHP function to delete files older than a given age. Very handy to rotate backup or log files, for example...
<?php
/**
* A simple function that uses mtime to delete files older than a given age (in seconds)
* Very handy to rotate backup or log files, for example...
*
* $dir String whhere the files are
* $max_age Int in seconds
* return String[] the list of deleted files
*/
@fly304625
fly304625 / multiple_ssh_setting.md
Created May 11, 2020 20:24 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"