Skip to content

Instantly share code, notes, and snippets.

View marcorodas's full-sized avatar
🏠
Working from home

Marco Rodas marcorodas

🏠
Working from home
View GitHub Profile
@marcorodas
marcorodas / Make Diretory With Filenames.bat
Last active January 20, 2019 18:45
Batch directory creation based on filenames in title case
powershell -command "Get-ChildItem . -File | %%{$_.Name.TrimEnd($_.Extension)} | %%{(Get-Culture).TextInfo.ToTitleCase($_.ToLower())} | ForEach-Object {new-item -Name $_ -ItemType directory}"
@marcorodas
marcorodas / import.sql
Last active January 28, 2019 04:29
EXCEL CSV
TRUNCATE TABLE dua_xlsx;
LOAD DATA
LOCAL INFILE 'C:\\Users\\skynet\\AppData\\Local\\Temp\\dua_xlsx.csv'
INTO TABLE `file_collection`.`dua_xlsx`
CHARACTER SET latin1
FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\r\n'
IGNORE 1 LINES;
SELECT COUNT(*) FROM dua_xlsx;