Skip to content

Instantly share code, notes, and snippets.

View rurumimic's full-sized avatar
♟️
턴제코딩

rurumimic

♟️
턴제코딩
View GitHub Profile
@rurumimic
rurumimic / docker-compose.yml
Last active November 25, 2018 06:56
Kafka compose
version: '3.2'
services:
zoo1:
image: zookeeper
restart: always
hostname: zoo1
ports:
- 2181:2181
environment:
ZOO_MY_ID: 1
@rurumimic
rurumimic / bash_profile.md
Created August 2, 2019 01:42
My .bash_profile

.bash_profile

PS1='\W \$ '

/etc/bashrc

# System-wide .bashrc file for interactive bash(1) shells.
@rurumimic
rurumimic / JAVA_HOME.md
Last active March 17, 2020 08:23
Saving Private JAVA_HOME

JAVA_HOME

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk/jre

export JAVA_HOME=/usr/lib/jvm/jre-1.8.0

JRE

ls -al /usr/lib/jvm
@rurumimic
rurumimic / zip.sh
Last active November 20, 2023 06:58
Compress without .DS_Store and __MACOSX
zip -r archive.zip . -x ".*" -x "__MACOSX" -q
@rurumimic
rurumimic / hello.py
Last active December 20, 2021 14:06
Hello, world!
def hello():
print('Hello, world!')
def bye():
print('Good afternoon, good evening, and good night!')
if __name__ == '__main__':
hello()
else:
bye()
@rurumimic
rurumimic / ipython-builtin-commands.py
Last active December 22, 2021 01:44
IPython Built-in magic commands
# https://ipython.readthedocs.io/en/stable/interactive/magics.html
'''
%%capture [--no-stderr] [--no-stdout] [--no-display] [output]
https://ipython.readthedocs.io/en/stable/interactive/magics.html?highlight=capture#cellmagic-capture
'''
%%capture --no-stdout
%%capture --no-stderr
@rurumimic
rurumimic / zip.ps1
Created December 27, 2021 08:55
Windows Powershell Compress/Extract
Compress-Archive .\directory archive.zip
Expand-Archive .\archive.zip
@rurumimic
rurumimic / PATH.md
Created April 16, 2022 12:37
macos PATH
ls /etc/paths.d
@rurumimic
rurumimic / resize.md
Last active May 17, 2022 07:05
Resize Vagrant Disk

Vagrant plugin

vagrant plugin install vagrant-disksize

Vagrantfile

Vagrant.configure("2") do |config|