Skip to content

Instantly share code, notes, and snippets.

@itsjimbo
itsjimbo / mongodb_backup.sh
Created January 2, 2021 05:45
Mongo db backup script - tested on OSX
#!/bin/bash
######################################################################
#
# MONGODB backup script
# Notes - Use directory name to get date input instead of relying on file
# timestamp
# - Backup FIRST then remove older backups - if you don't have much
# space then you can reverse the process - but this ensure if failure
# occurs older backup will not get removed until fixed
@itsjimbo
itsjimbo / google-drive-download-jupyter-notebook.ipynb
Last active April 8, 2020 17:39
Download public google drive file from jupyter notebook using curl
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@itsjimbo
itsjimbo / hackintosh_fix_sleep.sh
Created January 24, 2020 21:28
post-update fix for sleep on hackintosh - after every update this fixes sleep; sleep is reset from apple update
#!/bin/sh
#
#
#iMac:~ $ pmset -g
#System-wide power settings:
#Currently in use:
# hibernatemode 0
# womp 0