Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
I may be slow to respond.

Shiv Singh shivsingh7150

:octocat:
I may be slow to respond.
View GitHub Profile
@shivsingh7150
shivsingh7150 / us_all_zip_lon_ati.csv
Created Jan 19, 2022
All US zip codes with their corresponding latitude and longitude coordinates. Comma delimited for your database goodness. Source: http://www.census.gov/geo/maps-data/data/gazetteer.html
View us_all_zip_lon_ati.csv
We can't make this file beautiful and searchable because it's too large.
ID, ZIP, LAT, LON
1,35004,33.557327,-86.534508
2,35005,33.604744,-87.042442
3,35006,33.429344,-87.202103
4,35007,33.228821,-86.791901
5,35010,32.944641,-85.910011
6,35011,32.939999,-85.949997
7,35013,33.913639,-86.509087
8,35014,33.405113,-86.276802
@shivsingh7150
shivsingh7150 / jekyll_liquid_collection_sort.html
Last active Jul 9, 2021
jekyll liquid collection sort by published date
View jekyll_liquid_collection_sort.html
<ul>
{% assign sorted = site.collection_name | sort: 'date' | reverse %}
{% for item in sorted %}
<li>{{ item.title }}</li>
{% endfor %}
</ul>
@shivsingh7150
shivsingh7150 / snaps-rocket.sh
Created Jan 19, 2021
Enable snaps on CentOS and install Rocket.Chat Server
View snaps-rocket.sh
sudo yum install epel-release
sudo yum install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install rocketchat-server