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
# -*- coding:utf-8 -*- | |
import requests | |
from django.core.management.base import BaseCommand | |
from django.conf import settings | |
from palcomp3.website import purges | |
from palcomp3.website.utils import varnish | |
varnish.register(purges.resources) |
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
SS.cifraclub.songbooks = (function (window, $) { | |
function _getUserSongbooks() { | |
return $.ajax({ | |
url: SS.api.URL + 'songbook/user/' + SS.ccidbar.user.id + '.json', | |
type: 'get', | |
dataType: 'json' | |
}); | |
}; |
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
$res = $conn->query(' | |
SET @num := 0, @genre := ""; | |
SELECT | |
id_artista, | |
artista, | |
art_url, | |
genero_url, | |
genero, | |
( |
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
genres = ['Action','Adult','Adventure','Comedy','Doujinshi','Drama','Ecchi','Fantasy','Genred Bender','Harem','Historical','Horror','Josei','Martial Arts','Mature','Mecha','Mystery','One Shot','Psychological','Romance','School Life','Sci-fi','Seinen ','Shoujo','Shoujo Ai','Shounen','Shounen Ai','Slice of Life','Smut','Sports','Supernatural','Tragedy','Webtoons','Yaoi','Yuri'] |
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
sql_insert = '(' | |
for i in manga['genres']: | |
id_genre = genres_list.index(i) + 1 | |
sql_insert += "%s, %s),("%(id_manga, id_genre) | |
sql_insert = sql_insert[:-2] | |
sql = "INSERT INTO mangafox_genre (id_genre, id_mangafox) VALUES %s"%(sql_insert) | |
cur.execute(sql) |
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
# -*- coding: utf-8 -*- | |
import urllib2 | |
from bs4 import BeautifulSoup | |
from StringIO import StringIO | |
import gzip | |
txheaders = { | |
'User-agent' : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19" , | |
"Referer" : "http://mangafox.me/manga/naruto/", | |
"Host" : "mangafox.me", |
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
map $http_host $user_ciframobile { | |
default "bruno.souza"; | |
"m.bruno.cifraclub.cc" "bruno.souza"; | |
"m.bela.cifraclub.cc" "izabela.bittencourt"; | |
"m.pedro.cifraclub.cc" "pedro.chaves"; | |
"m.lavarini.cifraclub.cc" "alexandre.lavarini"; | |
"m.daniel.cifraclub.cc" "daniel.lima"; | |
"m.samuel.cifraclub.cc" "samuel.vignoli"; | |
} |
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
# -*- coding: utf-8 -*- | |
import urllib2 | |
from bs4 import BeautifulSoup | |
import re | |
import time | |
from StringIO import StringIO | |
import gzip | |
def make_request(url): |
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
var scrolled, $w = $(window); | |
$w.on('scroll', function() { | |
scrolled = true; | |
}); | |
window.scroll_timeout = setInterval(doSomething, 100); | |
function doSomething() { | |
if (!scrolled) { |
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
server { | |
listen 80 default_server; | |
server_name megastore.cifraclub.com.br; | |
rewrite ^ http://www.cifraclub.com.br/megastore_shutdown.php permanent; | |
#return 301 http://www.cifraclub.com.br/megastore_shutdown.php; | |
} |
OlderNewer