This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%% usage | |
% diary_name = strcat('prof_', datestr(now, 'yyyymmddHHMMSS'), '.yaml'); | |
% diary_folder = pwd; | |
% diary(diary_name); | |
% convProfilerDataMAT2YAML('ProfilerData.mat'); | |
% diary off; | |
function convProfilerDataMAT2YAML(matfile) | |
narginchk(1, 1) | |
mat = load(matfile); | |
spd = mat.(cell2mat(fieldnames(mat))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param() | |
#--------------- | |
# Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://gist.github.com/hiono/15d2a5d667118afd941f31b9a6835a3e/raw/base_setup.ps1')) | |
#--------------- | |
# Set-PSDebug -Trace 2 | |
Set-StrictMode -Version Latest | |
$ProgressPreference = 'SilentlyContinue' | |
$ErrorActionPreference = 'Stop' | |
$validExitCodes = @(0, 1605, 1614, 1641, 3010) | |
trap { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Layout Poetry originally from | |
# https://github.com/direnv/direnv/issues/592 | |
layout_poetry() { | |
if [[ ! -f pyproject.toml ]]; then | |
log_error 'No pyproject.toml found. Use `poetry new` or `poetry init` to cr | |
exit 2 | |
fi | |
local VENV=$(poetry env list --full-path | cut -d' ' -f1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# usage | |
# curl -s https://gist.githubusercontent.com/hiono/805800f242672ca15198fb151c2d86e9/raw | sudo bash | |
set -o errexit | |
set -o nounset | |
# Docker | |
apt remove --quiet --yes docker docker-engine docker.io containerd runc || true | |
apt update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage | |
# curl -s https://gist.githubusercontent.com/hiono/9c1e602d5307d0dc1415007866eb64a0/raw | bash | |
set -e | |
set -v | |
sudo apt -qq update | |
# addtopath | |
curl -s https://gist.githubusercontent.com/ccoomber/5886028/raw >> ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Setup for data platform demo environment | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
# | |
# Install manually | |
#---- セットアップ用の一時的な設定--- | |
Update-ExecutionPolicy Unrestricted | |
Disable-UAC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Setup for data platform demo environment | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
# | |
# Install manually | |
#---- セットアップ用の一時的な設定--- | |
Update-ExecutionPolicy Unrestricted | |
Disable-UAC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Setup for data platform demo environment | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
# | |
# Install manually | |
#---- セットアップ用の一時的な設定--- | |
Update-ExecutionPolicy Unrestricted | |
Disable-UAC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Orig: http://torumakabe.github.io/post/intro_boxstarter/ | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
# Chocolateyパッケージがないもの、パッケージ更新が遅いものは別途入れます。メモです。 | |
# Install manually (Ubuntu, VS, snip, Azure CLI/PS/Storage Explorer, Terraform, Go, 1Password 6, Driver Management Tool) | |
#---- TEMPORARY --- | |
Disable-UAC | |
#--- Fonts --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common | |
sudo add-apt-repository -y ppa:ubuntu-elisp/ppa | |
sudo apt-add-repository -y ppa:git-core/ppa | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update |
NewerOlder