🚴♂️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.kopis.camel.model; | |
import org.apache.camel.dataformat.bindy.annotation.CsvRecord; | |
import org.apache.camel.dataformat.bindy.annotation.DataField; | |
@CsvRecord(separator = ",") | |
public class CsvBean { | |
@DataField(pos = 1) | |
private String first; | |
@DataField(pos = 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import os, time, shutil, sys | |
dir = sys.argv[1] | |
os.chdir(dir) | |
for f in os.listdir('.'): | |
ftime = time.gmtime(os.path.getmtime(f)) | |
ctime_dir = str(ftime.tm_year) '-' str(ftime.tm_mon) '-' str(ftime.tm_mday) | |
if not os.path.isdir(ctime_dir): | |
os.mkdir(ctime_dir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Redis configuration file example | |
# Note on units: when memory size is needed, it is possible to specifiy | |
# it in the usual form of 1k 5GB 4M and so forth: | |
# | |
# 1k => 1000 bytes | |
# 1kb => 1024 bytes | |
# 1m => 1000000 bytes | |
# 1mb => 1024*1024 bytes | |
# 1g => 1000000000 bytes |