// 적용 전
{% highlight ruby linenos %}
def dosomething
delegate :some, :thing, :with, :unicorns, :and, :shrimps => :yolo, :someother key => true, :maybeonemore => true
end
{% endhighlight %}
// 적용 전
{% highlight ruby linenos %}
def dosomething
delegate :some, :thing, :with, :unicorns, :and, :shrimps => :yolo, :someother key => true, :maybeonemore => true
end
{% endhighlight %}
# Collections | |
collections: | |
algorithm: | |
Title: "Algorithm" | |
output: true | |
permalink: /collections/:collection/:path/ |
defaults: | |
# _algorithm | |
- scope: | |
path: "" | |
type: algorithm | |
values: | |
layout: single | |
author_profile: true | |
share: true | |
toc: true |
--- | |
layout: archive | |
title: "Posts by Collection" | |
permalink: /collections/ | |
author_profile: true | |
--- | |
{% for collection in site.collections %} | |
{% unless collection.output == false %} | |
{% if collection.label == "posts" %} |
COMPLETED_FILE_DIR="/mnt/external_drive/rutorrent/downloads/completed/" | |
TEMP_FILE_DIR="/mnt/external_drive/Torrent/" | |
echo "##### Moving #####" | |
find ${COMPLETED_FILE_DIR}/ -maxdepth 1 -mtime +16 -exec sh -c "ls -ldh \"{}\" && mv \"{}\" \"${TEMP_FILE_DIR}\"" \; | |
echo "##### Copying #####" | |
find ${TEMP_FILE_DIR} -name "*.mkv" -exec sh -c "ls -ldh \"{}\" && rclone move \"{}\" gdrive_rclone:/Torrent -P;" \; | |
find ${TEMP_FILE_DIR} -name "*.srt" -exec sh -c "ls -ldh \"{}\" && rclone move \"{}\" gdrive_rclone:/Torrent -P;" \; | |
find ${TEMP_FILE_DIR} -name "*.smi" -exec sh -c "ls -ldh \"{}\" && rclone move \"{}\" gdrive_rclone:/Torrent -P;" \; | |
find ${TEMP_FILE_DIR} -name "*.mkv" | grep mkv && { echo Error; } || { echo Done; rm -rf ${TEMP_FILE_DIR}/*;} |
sudo rclone mount --allow-other cache_rclone: /mnt/rclone/ & | |
sudo utserver -settingspath /opt/utorrent-server-alpha-v3_3/ -logfile utserver.log & |
wget https://github.com/hojel/DaumMovie.bundle/archive/master.zip -O DaumMovie.bundle.zip | |
sudo unzip DaumMovie.bundle.zip | |
sudo mv DaumMovie.bundle-master DaumMovie.bundle | |
sudo cp -rf DaumMovie.bundle "$(sudo find / -mount -type d -name Plug-ins)" | |
sudo chown -Rv 1000:1000 "$(sudo find / -mount -type d -name Plug-ins)" |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get install vim -y | |
sudo apt-get autoremove -y |
set-option -g history-limit 100000 | |
setw -g mode-keys vi | |
# Set status bar | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-left '#[fg=green]#H' | |
# Highlight active window |
# dhfine colors | |
C_DEFAULT="\[\033[m\]" | |
C_WHITE="\[\033[1m\]" | |
C_BLACK="\[\033[30m\]" | |
C_RED="\[\033[31m\]" | |
C_GREEN="\[\033[32m\]" | |
C_YELLOW="\[\033[33m\]" | |
C_BLUE="\[\033[34m\]" | |
C_PURPLE="\[\033[35m\]" | |
C_CYAN="\[\033[36m\]" |