{"id":18969062,"url":"https://github.com/ranman/gitshots-server","last_synced_at":"2025-04-19T14:53:50.101Z","repository":{"id":7880761,"uuid":"9255746","full_name":"ranman/gitshots-server","owner":"ranman","description":"Making open source funnier one commit at a time","archived":false,"fork":false,"pushed_at":"2015-09-08T05:47:52.000Z","size":6222,"stargazers_count":39,"open_issues_count":4,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T09:02:33.530Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"gitshots.com","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ranman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-06T05:21:31.000Z","updated_at":"2022-11-23T19:48:47.000Z","dependencies_parsed_at":"2022-09-03T09:50:23.340Z","dependency_job_id":null,"html_url":"https://github.com/ranman/gitshots-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranman%2Fgitshots-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranman%2Fgitshots-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranman%2Fgitshots-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranman%2Fgitshots-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranman","download_url":"https://codeload.github.com/ranman/gitshots-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249213759,"owners_count":21231096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T14:51:39.852Z","updated_at":"2025-04-19T14:53:50.076Z","avatar_url":"https://github.com/ranman.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gitshots — remember every commit\n\n## Testing Gitshots server with docker-compose\n\n    git clone https://github.com/ranman/gitshots\n    docker-compose build\n    docker-compose up -d\n    docker-compose logs\n\n\n## Setting up your own Gitshots server\n\nSetting up your own Gitshots server is as easy as deploying to Heroku (just copy and paste these commands).\n\n    git clone https://github.com/ranman/gitshots\n    heroku create\n    heroku addons:add mongohq:sandbox\n    git push heroku master\n\nIf you don't want to set up your own Gitshots server, feel free to use [ranman's](http://gitshots.ranman.org) (it's the default).\n\nIf you'd rather not post to Gitshots in general, just record to disk, set the GITSHOTS_SERVER_URL to `False`\n\n## Taking a gitshot on every commit\n\nWith your Gitshots server setup, you need to configure your computer to take gitshots.\n\nFirst, add the following line to your `.bash_profile` or `.bashrc`. If you don't add this line with your server URL, your gitshots will be posted to [ranman's gitshot server](http://gitshots.ranman.org).\n\n    export GITSHOTS_SERVER_URL=\u003cyour gitshots server url\u003e\n\nNext, you'll need to make sure you have `python2.7` and the `requests` library:\n\n    pip install requests\n\nNext, you'll need to make sure you have `imagesnap`, on OSX you can easily install it with [homebrew](http://mxcl.github.io/homebrew/):\n\n    brew install imagesnap\n\nNext, in any repository that you want gitshots, you need to add the following line to your `.git/hooks/post-commit` file (if you don't have one, create one):\n\n    /usr/bin/env python2.7 PATH_TO_GITSHOTS_REPO/post-commit.py\n\nNext, you should install CoreLocationCLI a command line program to print location information from CoreLocation \n\n    cd /tmp\n    git clone git@github.com:fulldecent/corelocationcli.git\n    cd corelocationcli\n    xcodebuild\n    mv build/Release/CoreLocationCLI /usr/bin\n\n    USAGE: CoreLocationCLI [options]\n       Displays current location using CoreLocation services.\n       By default, this will continue printing locations until you kill it with Ctrl-C. \n       More info: https://github.com/fulldecent/corelocationcli\n\nAn easy way to ensure your gitshots take for every new repository you create in the future is to add the following file at `/usr/share/git-core/templates/hooks/post-commit` or `/usr/local/share/git-core/templates/hooks/post-commit` depending on your installation of git.\n\n    #!/bin/sh\n\n    # takes a gitshot on every commit\n    /usr/bin/env python2.7 PATH_TO_GITSHOTS_REPO/post-commit.py\n\nBe sure to mark both of these files as executable: `chmod +x post-commit`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franman%2Fgitshots-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franman%2Fgitshots-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franman%2Fgitshots-server/lists"}