Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Murgio's full-sized avatar

Muriz Serifovic Murgio

View GitHub Profile

Install rclone and set up a cron job

Getting started

  1. Install rclone: $ curl https://rclone.org/install.sh | sudo bash
  2. Configure rclone: $ rclone config
  3. Install git: $ sudo apt-get install git
  4. Clone the following repo into home dir: $ git clone https://github.com/wolfv6/rclone_jobber.git
  5. Create a script for the cron job by copying the following code and don't forget to replace source and dest: $ touch rclone_cron.sh
@Murgio
Murgio / python_environment_setup.md
Created December 8, 2020 19:11 — forked from wronk/python_environment_setup.md
Setting up your python development environment (with pyenv, virtualenv, and virtualenvwrapper)

Overview of Python Virtual Environments

This guide is targetted at intermediate or expert users who want low-level control over their Python environments.

When you're working on multiple coding projects, you might want a couple different version of Python and/or modules installed. This helps keep each workflow in its own sandbox instead of trying to juggle multiple projects (each with different dependencies) on your system's version of Python. The guide here covers one way to handle multiple Python versions and Python environments on your own (i.e., without a package manager like conda). See the Using the workflow section to view the end result.


h/t @sharkinsspatial for linking me to the perfect cartoon

@Murgio
Murgio / inceptionv3_finetune.py
Last active April 11, 2018 18:19
Freeze, Pre-train and Finetune(FPT)
import os.path
from keras.applications.inception_v3 import InceptionV3
from keras.optimizers import SGD
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Model
from keras.layers import Dense, GlobalAveragePooling2D
from keras.callbacks import ModelCheckpoint, TensorBoard, EarlyStopping
# Helper: Save the min val_loss model in each epoch.
checkpointer = ModelCheckpoint(
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
@Murgio
Murgio / char-rnn recipes.md
Created December 28, 2017 20:56 — forked from nylki/char-rnn recipes.md
char-rnn cooking recipes

do androids dream of cooking?

The following recipes are sampled from a trained neural net. You can find the repo to train your own neural net here: https://github.com/karpathy/char-rnn Thanks to Andrej Karpathy for the great code! It's really easy to setup.

The recipes I used for training the char-rnn are from a recipe collection called ffts.com And here is the actual zipped data (uncompressed ~35 MB) I used for training. The ZIP is also archived @ archive.org in case the original links becomes invalid in the future.