create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
{ | |
var(func: anyofterms(title, "first")) { | |
ticket as _uid_ | |
} | |
tickets(func: uid(ticket)) { | |
title | |
desc | |
tag { | |
~can_do { |
cargo build [16:54:54] | |
Compiling restapi v0.1.0 (file:restapi) | |
error[E0507]: cannot move out of captured variable in an `Fn` closure | |
--> src/main.rs:57:62 | |
| | |
55 | let path = String::from("/path/to/data.json"); | |
| ---- captured outer variable | |
56 | server::new(|| { | |
57 | App::with_state(AppState::new(AppState::collect_data(path).unwrap())) | |
| ^^^^ cannot move out of captured variable in an `Fn` closure |
#============================================================================= | |
# dark_powered.toml --- dark powered configuration example for SpaceVim | |
# Copyright (c) 2016-2017 Wang Shidong & Contributors | |
# Author: Wang Shidong < wsdjeg at 163.com > | |
# URL: https://spacevim.org | |
# License: GPLv3 | |
#============================================================================= | |
# All SpaceVim option below [option] section | |
[options] |
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 |
;; -*- 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 |
#!/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) |
# 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 |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
# 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 |