$ go get -u github.com/davecgh/go-spew/spew
In VS Code, go to Preferences > User Snippets > Go
and add go.json
sd
snippet.
type sd to use the snippet
package main
# | |
# Copyright 2017-2019 The Jaeger Authors | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
# in compliance with the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software distributed under the License | |
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
" install vim-plug | |
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
call plug#begin('~/.vim/plugged') | |
Plug 'Shougo/deoplete.nvim' | |
Plug 'roxma/nvim-yarp' | |
Plug 'roxma/vim-hug-neovim-rpc' | |
Plug 'zchee/deoplete-go', { 'do': 'make'} | |
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } |
$ go get -u github.com/davecgh/go-spew/spew
In VS Code, go to Preferences > User Snippets > Go
and add go.json
sd
snippet.
type sd to use the snippet
package main
#!/bin/bash | |
# | |
# Usage | |
# install-arch.sh ./archlinux-2018.11.01-x86_64.iso | |
# first you neeed to patch xhyve with this | |
# index 61aeebb..39a9c4b 100644 | |
# --- a/src/firmware/kexec.c | |
# +++ b/src/firmware/kexec.c | |
# @@ -185,6 +185,7 @@ kexec_load_ramdisk(char *path) { |
// | |
// MJPEGViewController.m | |
// iMocs | |
// | |
// Created by akh on 2018-10-29. | |
// Copyright ? 2018 akh. All rights reserved. | |
// | |
#import "MJPEGViewController.h" |
#import "MJPEGViewController.h" | |
@interface MJPEGViewController () | |
- (IBAction)reloadTouched:(id)sender; | |
@property (weak, nonatomic) IBOutlet UIView *connectedView; | |
@property (weak, nonatomic) IBOutlet UIImageView *imageView; | |
@property( strong, nonatomic) NSMutableData *buffer; | |
@property(strong, nonatomic) NSURLConnection *conn; | |
@end |
// | |
// MJPEGViewController.m | |
// iMocs | |
// | |
// Created by akh on 2018-10-29. | |
// Copyright ? 2018 akh. All rights reserved. | |
// | |
#import "MJPEGViewController.h" |
cd $HOME | |
# clean up previous installations | |
docker system prune -af | |
sudo rm -rf /data/minikube .minikube .kube /root/.minikube /root/.kube /var/lib/kubelet /var/lib/kubeadm.yaml /etc/kubernetes /var/lib/minikube | |
export CHANGE_MINIKUBE_NONE_USER=true | |
sudo -E minikube start --vm-driver=none | |
minikube dashboard |
# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $ | |
# Maintainer: Felix Yan <[email protected]> | |
# Contributor: Andrea Scarpino <[email protected]> | |
pkgname=qt5-multimedia | |
_qtver=5.11.1 | |
pkgver=${_qtver/-/} | |
pkgrel=1 | |
arch=('x86_64' 'armv7h') | |
url='http://qt-project.org/' |
#find ./ -name '*.jpg' -exec bash -c '[ ! -f "/home/akh/GIS/tex/${0//jpg/}dds" ]' {} \; -exec bash -c 'convert "$0" /home/akh/GIS/tex/"${0%.jpg}.dds"' {} \; -ls | |
find ./ -name '*.jpg' -exec bash -c '[ ! -f "/home/akh/GIS/tex/${0//jpg/}dds" ]' {} \; -print | xargs parallel convert {} /home/akh/GIS/tex/{.}.dds |