Skip to content

Instantly share code, notes, and snippets.

View maxpill's full-sized avatar

Maksymilian Pilżys maxpill

  • University of Gdansk
  • Gdansk
  • 19:24 (UTC +02:00)
View GitHub Profile
@aklap
aklap / setup.md
Last active December 18, 2023 21:37
Upgrade Kobo E-Reader Storage

READ BEFORE STARTING!

Before erasing and partitioning your Kobo always back up your SD card and make sure you have an image of your Kobo drive before beginning this process.

I no longer own a Kobo Glo and do not have any Kobo images. The best place to find help with Kobo images or a bricked device are the forums at https://www.mobileread.com/forums.


You will need:

  • Kobo Glo HD (or other Kobo model that uses microSD)
@mattheworiordan
mattheworiordan / restart.sh
Created August 19, 2017 13:23
Heroku scheduled restarts
#!/bin/sh
# Set up the Heroku scheduler to run this command every hour. See example setup at https://goo.gl/nMCSH3
#
# Requires env vars to be set in Heroku with `heroku config:set`:
# - HEROKU_APP_NAME: this is just the app name in Heroku, i.e. `heroku apps` will list all apps you have access to
# - HEROKU_CLI_USER: Once Heroku CLI is authenticated (https://goo.gl/Qypr4x), check `cat .netrc` (or `_netrc` on Windows),
# look for `login` under `machine api.heroku.com`
# - HEROKU_CLI_TOKEN: As above, but use the `password` field
#
@tylermilner
tylermilner / copy_appropriate_google-service-info-plist.sh
Last active April 29, 2024 14:50
A shell script to selectively copy your GoogleService-Info.plist into your app bundle based on the current build configuration.
# Name of the resource we're selectively copying
GOOGLESERVICE_INFO_PLIST=GoogleService-Info.plist
# Get references to dev and prod versions of the GoogleService-Info.plist
# NOTE: These should only live on the file system and should NOT be part of the target (since we'll be adding them to the target manually)
GOOGLESERVICE_INFO_DEV=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Dev/${GOOGLESERVICE_INFO_PLIST}
GOOGLESERVICE_INFO_PROD=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Prod/${GOOGLESERVICE_INFO_PLIST}
# Make sure the dev version of GoogleService-Info.plist exists
echo "Looking for ${GOOGLESERVICE_INFO_PLIST} in ${GOOGLESERVICE_INFO_DEV}"