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 links = []; | |
$(".server").each(function() { | |
if($(this).data("name") == 34) { | |
$(this).find("a").each(function() { | |
const id = $(this).data("id"); | |
links.push(`https://www2.9anime.to/ajax/episode/info?id=${id}`); | |
}); | |
} | |
}); |
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
youtube-dl --get-id $1 | machma -p 6 -- youtube-dl -f best -- {} |
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
sudo fallocate -l 4G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo cp /etc/fstab /etc/fstab.bak | |
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab |
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
apt-get install ccache libssl-dev zlib1g-dev build-essential gperf libreadline-dev cmake git | |
git clone https://github.com/tdlib/td.git | |
cd td | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Release .. | |
cmake --build . -- -j5 | |
make install | |
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
// parallel download - https://github.com/fd0/machma | |
// dailymotion downloader - https://github.com/soimort/you-get | |
// Save the extracted links in a file | |
$("option").each(function() { | |
let base = "http://maplestage.com"; | |
let link = $(this).attr("value"); | |
$.get(`${base}${link}`,function(data) { | |
let title = $(data).find("option:selected").text().replace(" ", ""); | |
let id = data.split(`"name":"dailymotion","videos":[{"id":"`)[1].split(`"`)[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
let start = 1; | |
let end = 41; | |
for(let i=start; i<=end; i++) { | |
$.get(`https://www3.watchasian.co/triumph-in-the-skies-2-episode-${i}.html`, function(data) { | |
let link = $(data).find('.streamango').data('video'); | |
let name = "TriumphInTheSkiesE"; | |
console.log(`${link}#name=${name}${i}.mp4`); | |
}); | |
} |
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
// Example: http://watchanimeonline.me/megalo-box-sub/ | |
// Paste code snippet in developer console | |
// Ensure CORS enabled | |
const base = "http://watchanimeonline.me/wp-content/themes/magxp/film/getlink.php?link="; | |
$(".les-content").eq(0).find("span").each(async function(i) { | |
let id = $(this).data("link"); | |
let response = await $.get(`${base}${id}`); | |
let showName = response.split("&title=")[1].split(' sandbox')[0]; | |
let r = await $.get($(response).attr("src")); |
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
let start = 1; | |
let end = 16; | |
let showName = 'DescendantOfTheSun'; | |
let drama = 'http://kissasian.ch/Drama/Descendant-of-the-Sun/Episode-'; | |
let wait = 10000; | |
function sleep(time) { | |
return new Promise(function(resolve, reject) { | |
setTimeout(function() { | |
resolve(true); |
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
04b2b83481d8e2e860103a410032ea0e6c6e4673b599331ab4a307bcdc64dda3f9bb7218ec9825e3e56bc16d44ebbfc6f829d2c207a38fc5a001067efd86f833b8 yddmat |
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
// Using a PAC file with request nodejs | |
// https://blog.birkhoff.me/node-js-request-via-local-pac-file/ | |
// npm install pac-proxy-agent | |
var request = require("request"); | |
var pacURL = 'http://127.0.0.1:16823/proxy_on.pac'; | |
var agent = new require('pac-proxy-agent')('pac+' + pacURL); | |
var reqURL = 'https://www.google.com.tw'; | |
request({ url: reqURL, agent: agent }, function (error, response, body) { |
NewerOlder