Skip to content

Instantly share code, notes, and snippets.

@byplayer
byplayer / MC Cheat Sheet
Last active February 10, 2021 03:23 — forked from samiraguiar/MC Cheat Sheet
Midnight Commander Cheat Sheet / Shortcuts
Note for newcomers:
In the shortcuts below, "C" stands for CTRL and "A" stands for "ALT". This is a convention
used in the Midnight Commander documentation and was kept here.
Main View
---------------------------------------------------------------
- File/directory operations
F3 View file
Shift + F3 View raw file (disregard extension)
F5 Copy selected files

How to make password zip on mac

Using zip command with command line

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

# frozen_string_literal: true
require 'fileutils'
Dir.glob('*') do |f|
basename = File.basename(f)
# next unless basename =~ /^[0-9]{2}$/
puts "archive #{basename}"
@byplayer
byplayer / mac_setup.org
Last active January 28, 2020 01:04
mac setup

install home brew

https://brew.sh/index

install chef

@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))
))

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 / 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
@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

gsettings set org.gnome.meld detect-encodings "['utf8', 'euc-jp', 'shift_jis']"
@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