# Github Gists

- Page: https://shared.btbytes.com/p/gist
- Date: 2020-01-24
- Tags: github, web

[Gist -- <http://gist.github.com/>](http://gist.github.com) is a small
code hosting service provided by [github](https://github.com). It is a
convenient place to store:

-   one-off scripts
-   snippets of code that is reusable.
-   Short HOW-TO notes that can save you time the next time around
-   Funny, memorable, poignant texts that you got as a forward etc.,

See my [Gist Index](https://gist.github.com/btbytes) and this is a [better index](https://gist.aviperl.me/btbytes) (gist.aviperl.me), to see rendered files.

By others -- [vsouza/awesome-gists: A collection of amazing gists](https://github.com/vsouza/awesome-gists)

[gist host](https://simonwillison.net/2026/Jan/1/gisthost/)by simon willison is a tool that lets you see a browser-rendered version of an HTML page that you have saved to a Gist.

## Sublime text

I use  [sublime](https://shared.btbytes.com/p/sublime)text's [gist package](https://packagecontrol.io/packages/Gist) to paste, edit and manage the gists directly from inside the sublime text editor. This is a very nifty thing I found out in Dec 2018.

## Databases

- [Exporting to CSV from MySQL](http://gist.github.com/325722).
- Given a CSV file with a header row, and at-least one row of data, output a `SQL CREATE TABLE` [statement](http://gist.github.com/106532)
    by guessing the data type of the columns.

## Shell

-   [Get date to set date](http://gist.github.com/510346). useful when
    you want to "copy" time from one system to another.
-   [Simple module for getting amount of memory used by a specified
    user's processes on a UNIX system](http://gist.github.com/468934).
-   [Correct way to rsync a local dir to remote
    server](http://gist.github.com/445014).
-   [Kickstart a new Jekyll post from the command
    line](http://gist.github.com/440894).

## Python

- [Programming in Python using Unicode Kannada](http://gist.github.com/313215). A simple hello world.
- [Search using PyTyrant](http://gist.github.com/115659) (tokyo tyrant).
- [Extract title and metadata from a reStructuredText document](https://gist.github.com/btbytes/72b24b5c194baaf2e22e64ee9d9af54c)I fixed up the [original program](http://homework.nwsnet.de/releases/af95/) to make it work with Python3.6


## C

- [GMT Time](https://gist.github.com/272087)

## Web

- [Minimal HTML5 template](http://gist.github.com/282903).
- [Using favicons in HTML header](https://gist.github.com/btbytes/4dc1707c5e2f7117d50718f580856190) (a fork).

## Gist related projects

- [GLSL.io -- Open Collection of GLSL Transitions](http://glsl.io/gallery)
- [Gistbox](http://www.gistboxapp.com/)
- [Opengist](https://github.com/thomiceli/opengist) "Self-hosted pastebin powered by Git, open-source alternative to Github Gist."

## Others gists

- [John Daily's gists](https://gist.github.com/macintux) have a good collection of links to papers related to distributed computing, [erlang](https://shared.btbytes.com/p/erlang) etc.. [Erlang resources](https://gist.github.com/macintux/6349828)
- [Principles of Adult Behavior](https://gist.github.com/btbytes/888dad75eb4459b27d427c9134539f8e) by [John Perry Barlow, ca 2013](https://www.eff.org/deeplinks/2018/02/john-perry-barlow-internet-pioneer-1947-2018)
- [Twitter mute words](https://gist.github.com/IanColdwater/88b3341a7c4c0cf71c73ac56f9bd36ec)
