Skip to content

Instantly share code, notes, and snippets.

View takuzoo3868's full-sized avatar
🌵
Working

takuzoo takuzoo3868

🌵
Working
  • Telecommunications carrier
  • Tokyo, JP
View GitHub Profile
@takuzoo3868
takuzoo3868 / set_proxy.sh
Created May 17, 2019 08:50
UEC proxy shell script
#!/usr/bin/env bash
# Author: takuzoo3868
# Last Modified: 10 May 2019.
HTTP_PROXY_HOST=proxy.uec.ac.jp
HTTP_PROXY_PORT=8080
HTTPS_PROXY_HOST=proxy.uec.ac.jp
HTTPS_PROXY_PORT=8080
@takuzoo3868
takuzoo3868 / Directory_structure.md
Last active November 30, 2017 13:59
🔰 Garbage collection about Tips

あの絵文字はなんだ!?

treeっぽいやつを.mdに記述したい

root/
 ├ bin/
 ├ etc/
 ├ usr/
 │ └ local/
 │   └ bin/
@takuzoo3868
takuzoo3868 / os.sh
Last active December 11, 2023 07:32
Shell script for determining Linux distribution
#!/bin/sh
# Linux(Distribution) MacOS SunOS AIX に対応
OS=`uname -s`
REV=`uname -r`
MACH=`uname -m`
GetVersionFromFile() {
VERSION="$(tr "\n" ' ' < cat "$1" | sed s/.*VERSION.*=\ // )"
}
@takuzoo3868
takuzoo3868 / tree.sh
Last active July 4, 2024 10:05
Shell script that reproduced the tree command
#!/usr/bin/env bash
# treeを擬似的に再現したスクリプト
dir_count=0
file_count=0
traverse() {
dir_count=$(expr $dir_count + 1)
local directory=$1
local prefix=$2
@takuzoo3868
takuzoo3868 / chrono.cpp
Last active November 18, 2017 07:18
🕒 Processing time measurement template for competition programming
#include <iostream>
#include <chrono>
using namespace std;
int main() {
// 計測開始時刻を保存
auto start = std::chrono::system_clock::now();
/*
@takuzoo3868
takuzoo3868 / post-commit
Last active November 28, 2017 05:34
:octocat: Shell script celebrating to get a sense of accomplishment when git push
#!/bin/sh
# コミットに達成感が欲しかったんじゃ
# pushすると /Music/git_commit.wav に保存した音声が鳴ります
# prevent double startup
if [ $(pgrep aplay) ] ; then
exit 1
fi
aplay -q ~/Music/git_commit.wav > /dev/null 2>&1 &

Intellij

クラスの作成

対象のパッケージでAlt + Insrtを実行.

プログラムの実行

Alt + Shift + F10

エラーや警告の出ている箇所でクイック・フィックス

@takuzoo3868
takuzoo3868 / My tips.md
Last active March 6, 2018 07:17
💡Best solutions for my laptops #tips

Windows10

作業ウィンドウの切替

[Alt]+[Tab]

仮想ディスクトップ

新規生成
[Super(Windows)]+[Ctrl]+[D]  

切り替え
[Super(Windows)]+[Ctrl]+[left/right]