Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View dtoebe's full-sized avatar

Daniel Toebe dtoebe

View GitHub Profile
@dtoebe
dtoebe / printer.cfg
Created March 19, 2021 00:38 — forked from mihaiserban/printer.cfg
Klipper Ender 5 Plus stock printer config
# This file contains pin mappings for the Creality Ender 5 Plus.
# Ender 5 Plus stock uses a Creality v2.2 board, similar to CR-20 Pro.
# To use this config, the firmware should be compiled for the AVR atmega2560.
# See the example.cfg file for a description of available parameters.
[stepper_x]
step_pin: PF0
dir_pin: PF1
enable_pin: !PD7
@dtoebe
dtoebe / generators.go
Last active May 11, 2020 14:05
EMBED OTHER BINARIES IN GOLANG BINARY - generators.go - 1
// ./generators/generator.go
package main
//Much of this file is from http://stackoverflow.com/questions/17796043/golang-embedding-text-file-into-compiled-executable
import (
"fmt"
"io/ioutil"
sudo apt-get install -y \
git \
g++ \
libgtk-3-dev \
gtk-doc-tools \
gnutls-bin \
valac \
intltool \
libtool \
libpcre2-dev \
@dtoebe
dtoebe / jupyter.service
Created December 28, 2019 08:29 — forked from whophil/jupyter.service
A systemd script for running a Jupyter notebook server.
# After Ubuntu 16.04, Systemd becomes the default.
# It is simpler than https://gist.github.com/Doowon/38910829898a6624ce4ed554f082c4dd
[Unit]
Description=Jupyter Notebook
[Service]
Type=simple
PIDFile=/run/jupyter.pid
ExecStart=/home/phil/Enthought/Canopy_64bit/User/bin/jupyter-notebook --config=/home/phil/.jupyter/jupyter_notebook_config.py

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@dtoebe
dtoebe / multiple_ssh_setting.md
Created November 2, 2019 02:36 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@dtoebe
dtoebe / kaggle_download.py
Last active August 16, 2019 03:32 — forked from jayspeidell/kaggle_download.py
Sample script to download Kaggle files
# Info on how to get your api key (kaggle.json) here: https://github.com/Kaggle/kaggle-api#api-credentials
!pip install kaggle
api_token = {"username":"USERNAME","key":"API_KEY"}
import json
import zipfile
import os
with open('/content/.kaggle/kaggle.json', 'w') as file:
json.dump(api_token, file)
!chmod 600 /content/.kaggle/kaggle.json
!kaggle config path -p /content
@dtoebe
dtoebe / xclip
Created March 10, 2019 19:38 — forked from imiric/xclip
xclip for Cygwin/MSYS2
#!/bin/bash
# This replicates xclip functionality used by pass in Cygwin/MSYS2
# Original author: https://tylor.io/2015/07/13/password-manager/
while [[ $# > 0 ]]
do
key="$1"
case $key in
-o|-out)
@dtoebe
dtoebe / .spacemacs
Created January 23, 2019 22:13
Spacemacs setup
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@dtoebe
dtoebe / init.vim
Last active January 11, 2019 08:20
Lean mean vim
set nu rnu
set hidden
set mouse=a
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
set hidden
set noswapfile
set nowrap
set noerrorbells
set novisualbell
set ruler