Skip to content

Instantly share code, notes, and snippets.

@ishidur
ishidur / update_ignore.md
Last active September 11, 2018 05:46
.gitignore の設定を反映させる #git #tips #shell
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"

all

git rm -r --cached . && git add . && git commit -m ".gitignore is now working"
@ishidur
ishidur / atom-latex.md
Last active September 11, 2018 03:32
latexをatomで編集するときの環境設定 #settings
@ishidur
ishidur / git_repository_commands.md
Last active September 11, 2018 05:46
git remote関連 あれこれ #git #shell

mirrorオプションでGitHubへリポジトリを移行する

git clone --mirror [email protected]:/path/to/PrivateProject.git
git remote set-url --push origin [email protected]:Taro/PublicProject.git
git push --mirror

--mirror オプションを使用しない手順

移行元のリポジトリをcloneする

@ishidur
ishidur / conda-cheat.md
Last active October 27, 2018 03:35
anaconda周りのコマンド #package_manager #python #shell #macos #windows #ubuntu

TL;DR

定期的に以下を実行しよう

conda update conda -y && conda update --all -y && conda clean --all -y

アップデート関連

本体のアップデート

conda update anaconda
@ishidur
ishidur / git-configuration.md
Last active September 10, 2018 01:50
gitのエイリアスの設定 #settings #git

.bash_profile

alias g='git'
source ~/.git-completion.bash

copy this file to your home directory
git-completion.bash

.gitconfig

@ishidur
ishidur / cmder-congifuration.md
Last active September 11, 2018 03:31
cmder の環境設定 #settings #windows

Cmder

Official: http://cmder.net/

Create tasks

Settings > Startup > Tasks
set Commands as follow:

cmd /c ""<path-to-your-git-directory>\Git\bin\bash.exe" --login -i" -new_console:d:"<default-directory>"
@ishidur
ishidur / rasp-update.md
Last active December 24, 2018 08:15
Raspberry Pi のパッケージ更新コマンド #package_manager #raspberry_pi #shell

TL;DR:

sudo apt-get dist-upgrade -y && sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get autoremove -y && sudo apt clean -y

パッケージ情報を最新にする

sudo apt-get update
@ishidur
ishidur / .vimrc
Last active February 13, 2021 06:40
my .vimrc #settings
set encoding=utf-8
scriptencoding utf-8
set fileencoding=utf-8 " 保存時の文字コード
set fileencodings=ucs-boms,utf-8,euc-jp,cp932 " 読み込み時の文字コードの自動判別. 左側が優先される
set fileformats=unix,dos,mac " 改行コードの自動判別. 左側が優先される
set ambiwidth=double " □や○文字が崩れる問題を解決
set expandtab " タブ入力を複数の空白入力に置き換える
set tabstop=4 " 画面上でタブ文字が占める幅
set softtabstop=4 " 連続した空白に対してタブキーやバックスペースキーでカーソルが動く幅
@ishidur
ishidur / cpp_bench.md
Last active September 11, 2018 03:25
C++の実行速度のテスト

C++ benchmark test

Problem

Fibonacci number: 40

Result

Visual Studio

  1. x64
    1. Debug
      5.063179 sec.
      4.965487 sec.
@ishidur
ishidur / latex_win.md
Last active December 24, 2020 00:26
WindowsでLatex環境を設定する #settings #windows