Skip to content

Instantly share code, notes, and snippets.

@byplayer
byplayer / gist:eddd3ccd52f0d9fe6099346d2924b763
Created March 22, 2018 02:06
Hyper-V disable/enable on windows
Hyper-V disable
bcdedit /set hypervisorlaunchtype off
Hyper-V enable
bcdedit /set hypervisorlaunchtype auto
@byplayer
byplayer / turn_off_hyper-v.txt
Created April 20, 2018 03:48
turn off Hyper-V on windows
dism.exe /Online /Disable-Feature:Microsoft-Hyper-V
gsettings set org.gnome.meld detect-encodings "['utf8', 'euc-jp', 'shift_jis']"
@byplayer
byplayer / anaconda.md
Created September 7, 2018 06:02
anaconda

create environement

conda create --name myenv python=3.5 numpy=1.11.1

activate environment

source activate myenv

export env

@byplayer
byplayer / build_emacs.sh
Created September 10, 2018 09:12
build_emacs
#!/bin/bash
set -e
# --- configuration ---
EMACS_VER=26.1
SRC_ROOT=http://ftp.jaist.ac.jp/pub/GNU/emacs/
BUILD_DIR=/usr/local/src

copy from

https://gist.github.com/hatsusato/1d5f0267bc9d02bb24c60bd7acc5a59a

gpg のはなし

この記事は [KMC Advent Calendar 2017][advent] の 10 日目の記事です。 昨日の記事は tron 君 ([id:tron_kmc][tron-id]) の[今年の活動を振り返る - tron-Factory 業務日誌][tron]でした。 はたち:tada:めでたい:congratulations:

@byplayer
byplayer / .dir-locals.el
Created October 6, 2019 16:19
.dir-locals for c-mode
((c-mode . ((flycheck-clang-language-standard . "c99")
(clang-format-modes . '())
(indent-tabs-mode . t)
(c-basic-offset . 4)
(tab-width . 4))
))
@byplayer
byplayer / mac_setup.org
Last active January 28, 2020 01:04
mac setup

install home brew

https://brew.sh/index

install chef

# frozen_string_literal: true
require 'fileutils'
Dir.glob('*') do |f|
basename = File.basename(f)
# next unless basename =~ /^[0-9]{2}$/
puts "archive #{basename}"

How to make password zip on mac

Using zip command with command line

zip -e -r --password=pwd dest.zip original_file