To add a conda environment to the list of environments:
$ source activate thisenv
(thisenv) $ pip install ipykernel
(thisenv) $ python -m ipykernel install --user --name thisenv
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |
#include <gtk/gtk.h> | |
enum | |
{ | |
COLUMN_ARTICLE = 0, | |
COLUMN_PRICE, | |
N_COLUMNS | |
}; | |
typedef struct |
""" | |
Inspired by https://www.reddit.com/r/Anki/comments/1xfpbe/how_to_make_a_deck_out_of_a_folder_of_images_one/cfaylv0?utm_source=share&utm_medium=web2x&context=3 | |
Added a header column for my own card style, fixed sorting and added media import. | |
""" | |
import sys | |
import os | |
import uuid | |
from shutil import copyfile |
$ git checkout --orphan gh-pages | |
# preview files to be deleted | |
$ git rm -rf --dry-run . | |
# actually delete the files | |
$ git rm -rf . |
# based on https://stackoverflow.com/a/40178818/11051330 | |
STATUS="$(LC_ALL=C git status)" | |
DOCSDIR="docs/_build/" | |
if [[ $STATUS == *"nothing to commit, working tree clean"* ]] | |
then | |
awk -vLine="$DOCSDIR" '!index($0,Line)' ./.gitignore | |
git add . | |
git commit -m "Edit .gitignore to publish docs" |
set-hook -g client-attached 'run-shell /bin/update_display.sh' |
#!/usr/bin/env bash | |
# This script comes from Joplin, MIT License Copyright Laurent Cozic: | |
# https://github.com/laurent22/joplin/blob/dev/Joplin_install_and_update.sh | |
# Modified here by github.com/evdcush to instead install and update Logseq. | |
set -e | |
trap 'handleError' ERR |
// I'm tired of extensions that automatically: | |
// - show welcome pages / walkthroughs | |
// - show release notes | |
// - send telemetry | |
// - recommend things | |
// | |
// This disables all of that stuff. | |
// If you have more config, leave a comment so I can add it!! | |
{ |