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
SELECT username, | |
user_posts AS sempre, | |
(SELECT COUNT(post_id) FROM posts WHERE poster_id = user_id AND post_time < UNIX_TIMESTAMP() - 7776000) AS 'des de fa més de tres mesos', | |
(SELECT COUNT(post_id) FROM posts WHERE poster_id = user_id AND post_time BETWEEN UNIX_TIMESTAMP() - 7776000 AND UNIX_TIMESTAMP() - 5184000) AS 'des de fa tres mesos fins fa dos', | |
(SELECT COUNT(post_id) FROM posts WHERE poster_id = user_id AND post_time BETWEEN UNIX_TIMESTAMP() - 5184000 AND UNIX_TIMESTAMP() - 2592000) AS 'des de fa dos mesos fins fa un', | |
(SELECT COUNT(post_id) FROM posts WHERE poster_id = user_id AND post_time >= UNIX_TIMESTAMP() - 2592000) AS 'des de fa un mes fins avui', | |
(SELECT pf_padri FROM profile_fields_data WHERE profile_fields_data.user_id = users.user_id) AS 'padri' | |
FROM users WHERE user_posts > 0 |
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 filtra(tipus, criteri) { | |
var valor = filtre[tipus][criteri].val; | |
if (criteri == 'Tot') { | |
Object.keys(filtre[tipus]).forEach(function(c) { | |
if (filtre[tipus][c].val == valor) { | |
filtre[tipus][c].val = !valor; | |
$(filtre[tipus][c].btn).toggleClass('off', !filtre[tipus][c].val); | |
} | |
}); | |
} else { |
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
SELECT DATE_FORMAT(FROM_UNIXTIME(post_time), '%d/%m/%Y %T'), username, forum_name, topic_title, ( | |
SELECT COUNT(topic_id) | |
FROM posts as b | |
WHERE topic_id = posts.topic_id AND post_time <= posts.post_time | |
), CAST(CONCAT('https://tadaima.cat/topic', posts.topic_id, '.html#p', posts.post_id) AS CHAR) AS url | |
FROM posts | |
LEFT JOIN users on poster_id = user_id | |
LEFT JOIN topics on posts.topic_id = topics.topic_id | |
LEFT JOIN forums on topics.forum_id = forums.forum_id | |
WHERE posts.forum_id IN (39, 40, 41, 42) |
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
{"name": "test"} |
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
{"asd": "asd"} |
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
RewriteRule ^(.+)-t([0-9])-([0-9]).html viewtopic.php?t=$2&start=$3&%{QUERY_STRING} [L] | |
RewriteRule ^(.+)-t([0-9]).html viewtopic.php?t=$2&%{QUERY_STRING} [L] | |
RewriteRule ^(.+)-f([0-9])-([0-9]).html viewforum.php?f=$2&start=$3&%{QUERY_STRING} [L] | |
RewriteRule ^(.+)-f([0-9]).html viewforum.php?f=$2&%{QUERY_STRING} [L] |
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
#/bin/bash | |
while true | |
do | |
ping -c 1 www.uib.es > /dev/null 2>&1 | |
echo -e `date '+%Y-%m-%d %H:%M:%S'` '\t' $? | |
# sleep 10 | |
done |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package encoding; | |
import java.io.*; | |
/** |
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
// ==UserScript== | |
// @name Imgur direct link | |
// @namespace https://tadaima.cat/ | |
// @version 0.1 | |
// @description replaces default imgur link with direct link | |
// @author Nerestaren | |
// @match https://imgur.com/a/* | |
// @grant GM_addStyle | |
// ==/UserScript== |
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
SELECT f.forum_id | |
FROM forums f | |
LEFT JOIN acl_groups ag ON ag.forum_id = f.forum_id | |
LEFT JOIN acl_options ao ON ag.auth_option_id = ao.auth_option_id | |
LEFT JOIN acl_roles_data ard ON ag.auth_role_id = ard.role_id | |
LEFT JOIN acl_options ao2 ON ard.auth_option_id = ao2.auth_option_id | |
WHERE ag.group_id = 2 AND ((ag.auth_option_id = 20 AND ag.auth_setting = 1) OR (ard.auth_option_id = 20 AND ard.auth_setting = 1)) |
OlderNewer