Skip to content

Instantly share code, notes, and snippets.

@1kko
1kko / repo.sh
Last active May 14, 2024 09:58
Bash - performs search of specific directory up to 2 depth and change directory into it
# This script performs search of specific directory up to 2 depth and change directory into it.
# This is helpful for cases like having many repositories and need to cd into it.
# Install
# 1. Install fzf(https://github.com/junegunn/fzf#related-projects). eg: sudo apt install fzf (
# 2. Copy this source and paste into paste into your: nano ~/.bashrc
# 3. Edit the srchDir variable for your environment
# 4. Save and start new session of terminal
# Usage
Hello World Lorem ipsum
@1kko
1kko / opendoor.json
Created December 16, 2019 13:50
testing json
{'status':'door is opened'}
@1kko
1kko / gist:40ca6dfc853099e6055e92a90bed937e
Last active April 12, 2024 17:32
JQuery Bugs Music List to Json - 벅스 뮤직 플레이리스트 내보내기
// Chrome 웹브라우저에서 벅스 로그인 후 목록보이는 상태에서 F12키를 누른후
// Console창에 아래 코드 복붙 후 엔터.
// 나오는 리스트는 http://www.playlist-converter.net/ 에 텍스트 붙여넣기 해서 원하는 음악사이트로 플레이리스트를 이동.
var output=[]
$('table.list.trackList > tbody > tr').each(function () {
title = $(this).find('th > p > a').attr('title');
// sometimes title is disabled due to the copyright issues. This case just get the text.
if (title === undefined) {
title = $(this).find('th > p').text().trim();