Skip to content

Instantly share code, notes, and snippets.

javac -classpath /Users/linusoleander/Downloads/gateway/src/de/felixbruns de.felixbruns GatewayApplication.java
javac -classpath de /Users/linusoleander/Desktop/bac/ GatewayApplication.java
javac: invalid flag: /Users/linusoleander/Desktop/bac/
Usage: javac <options> <source files>
use -help for a list of possible options
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -Dfile.encoding=MacRoman -classpath /Users/linusoleander/Desktop/jotify/src:/Users/linusoleander/Desktop/bac/src/json.jar de.felixbruns.jotify.gateway.GatewayApplication
SELECT * FROM cplaylists WHERE date >= CURDATE() and date < CURDATE()+INTERVAL 1 DAY
SELECT MAX(`ChannelsSong`.`time`) as last, `Channel`.`name`, `ChannelsSong`.`id` FROM `channels_songs` AS `ChannelsSong` LEFT JOIN `channels` AS `Channel` ON (`ChannelsSong`.`channel_id` = `Channel`.`id`) WHERE 1 = 1 GROUP BY `ChannelsSong`.`channel_id` ORDER BY last DESC
SELECT SQL_NO_CACHE SQL_BIG_RESULT, MAX(`ChannelsSong`.`time`) as last, `Channel`.`name`, `ChannelsSong`.`id` FROM `channels_songs` AS `ChannelsSong` LEFT JOIN `channels` AS `Channel` ON (`Channel`.`id` = `ChannelsSong`.`channel_id`) LEFT JOIN `songs` AS `Song` ON (`Song`.`id` = `ChannelsSong`.`song_id`) LEFT JOIN `artists` AS `Artist` ON (`Artist`.`id` = `Song`.`artist_id`) WHERE 1 = 1 GROUP BY `ChannelsSong`.`channel_id` ORDER BY `ChannelsSong`.`time` DESC
SELECT SQL_NO_CACHE SQL_BIG_RESULT MAX(`ChannelsSong`.`time`) as last, `Channel`.`name`, `ChannelsSong`.`id` FROM `channels_songs` AS `ChannelsSong` LEFT JOIN `channels` AS `Channel` ON (`ChannelsSong`.`channel_id` = `Channel`.`id`) WHERE 1 = 1 GROUP BY `ChannelsSong`.`channel_id` ORDER BY last DESC;
find . -name '*.*' -exec iconv --from-code=ISO-8859-1 --to-code=UTF-8 {} \;
Charset csets = Charset.forName("UTF-8");
ByteBuffer x = csets.encode(plist);
class GenresMovies < ActiveRecord::Migration
def self.up
end
def self.down
end
end