Skip to content

Instantly share code, notes, and snippets.

View bcye's full-sized avatar

Bruce bcye

View GitHub Profile
josephmaxim /
Created April 15, 2019 22:12
A list of communities to share your blog post and products as an indie maker.

A list of communities to share your blog post and products as an indie maker.

Most of this groups have between 10k-14million members. Important: In order to avoid being banned or being labeled as spam, Engage with members first by leaving a like/upvote and comment on their posts. Wait at least a week before posting.

caiolopes /
Last active October 4, 2022 14:50
Function to resize an image of an ImageField from a Django model. It saves space on S3!
import io
from import default_storage as storage
def save(self, *args, **kwargs):
super().save(*args, **kwargs)
img_read =, 'r')
img =
gmolveau /
Last active July 11, 2020 18:06
How to push Fathom analytics - to Heroku

Deploy Fathom on Heroku


  • heroku cli (logged in)
  • git
  • curl
  • wget
  • tar are required
  • ~ openssl is required to generate the secret_key, but you're free to use what you want
nickbclifford /
Last active May 15, 2023 09:02
How to automatically deploy code to a server using Travis CI

Auto-Deploying via Travis CI

Because Travis CI can automatically execute scripts after successfully (or unsuccessfully!) executing tests, it is an obvious choice for a deployment tool. In order to deploy to a Git repository on a remote server, the process generally is as follows:

  • Set up SSH keys
  • Add the server's copy of the repository as a Git remote
  • Push to the remote
  • SSH into the server and execute any installation/compilation/miscellaneous commands

Before even touching .travis.yml...


suraphanL / ioslocaleidentifiers.csv
Created October 5, 2016 15:29 — forked from JaseHadd/ioslocaleidentifiers.csv
iOS Locale Identifiers
View ioslocaleidentifiers.csv
localeIdentifier Description
eu Basque
hr_BA Croatian (Bosnia & Herzegovina)
en_CM English (Cameroon)
rw_RW Kinyarwanda (Rwanda)
en_SZ English (Swaziland)
tk_Latn Turkmen (Latin)
he_IL Hebrew (Israel)
ar Arabic
uz_Arab Uzbek (Arabic)
View Apple Sample Code License
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc.
("Apple") in consideration of your agreement to the following terms, and your
use, installation, modification or redistribution of this Apple software
constitutes acceptance of these terms. If you do not agree with these terms,
please do not use, install, modify or redistribute this Apple software.
In consideration of your agreement to abide by the following terms, and subject
to these terms, Apple grants you a personal, non-exclusive license, under
Apple's copyrights in this original Apple software (the "Apple Software"), to
use, reproduce, modify and redistribute the Apple Software, with or without