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
-- | |
-- renames selected tracks | |
-- | |
-- from: | |
-- artist: "Various Artists" | |
-- name: "name-of-artist - name-of-track" | |
-- | |
-- to: | |
-- artist: "name-of-artist" | |
-- album artist: "Various Artists" |
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
mysql backup/restore using CSV files | |
==================================== | |
backup | |
------ | |
#!/usr/bin/env bash | |
mysqldump -u root -p... database --no-data > /tmp/backup/database-schema.sql | |
mysqldump -u root -p... -t -T/tmp/backup database --fields-enclosed-by=\" --fields-terminated-by=, |
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
Compiling apg on OSX | |
==================== | |
Version: 2.2.3 | |
http://www.adel.nursat.kz/apg/ | |
Makefile | |
-------- |
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
-- number | |
number = {} | |
function number:new(o) | |
o = o or {} | |
setmetatable(o, self) | |
self.__index = self | |
self.__add = function(self, op) | |
return self:new{value=(self:cast(self) + self:cast(op))} | |
end |
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
function clone(object) | |
local dict = {} | |
local function clone(object) | |
if (type(object) ~= "table") then | |
return object | |
elseif (dict[object]) then | |
return dict[object] | |
end |
NewerOlder