This file contains hidden or 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
| const tout = 10*1000; | |
| let skip = 0, lbsc = 0; | |
| setInterval(_ => { | |
| if(skip){ skip--; lbsc = 0; return; } | |
| const bs = [].filter.call(document.querySelectorAll('div[role="dialog"] button'), e => e.innerText=='Follow'), bsc = bs.length; | |
| if(bsc){ | |
| if(bsc == lbsc){ skip = Math.round(5*60*1000/tout); return; } | |
| bs[Math.floor(bsc*Math.random())].click(); | |
| lbsc = bsc; | |
| } |
This file contains hidden or 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 установить контакт со всеми | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @author Sergey S Yaglov | |
| // @match https://www.linkedin.com/search/results/people/* | |
| // @include https://www.linkedin.com/search/results/people/* | |
| // @grant https | |
| // @run-at context-menu | |
| // ==/UserScript== |
This file contains hidden or 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
| php -r "foreach(glob('./*/') as $d){ $dn=basename($d); $a=glob($d.'*.mp3'); natsort($a); var_dump($dn, $a); $asize=array_sum(array_map('filesize',$a)); $rf=$dn.'-ffccat.mp3'; $lf=$dn.'.txt'; if(file_exists($rf)&&filesize($rf)>=$asize) continue; foreach($a as $i => $f) file_put_contents($lf, \"file '$f'\n\", $i ? FILE_APPEND : null); passthru('c:/ffmpeg/ffmpeg-20181015-c27c7b4-win64-static/bin/ffmpeg -f concat -safe 0 -i '.escapeshellarg($lf).' -c copy '.escapeshellarg($rf)); }" |
This file contains hidden or 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/sh | |
| . /usr/share/libubox/jshn.sh | |
| O=$(ubus -S call network.interface status "{ \"interface\" : \"vpn0\" }") | |
| json_load "$O" | |
| json_get_var up up | |
| if [ "$up" == "0" ]; then |
This file contains hidden or 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
| <?php | |
| /* | |
| $port = 9050; | |
| $proxy_score = new shmop_arr('x', 4*1024); | |
| $proxy_score[$port] = isset($proxy_score[$port]) ? $proxy_score[$port]+1 : 1; |
This file contains hidden or 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
| #!/usr/bin/expect -f | |
| set domain [lindex $argv 0] | |
| set www_root [lindex $argv 1] | |
| spawn /root/certbot/letsencrypt-auto certonly --manual -d $domain | |
This file contains hidden or 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
| <?php | |
| /** | |
| * | |
| * @param string $url | |
| * @param integer $i | |
| * @param array $userdata compact('data_type', 'prefix', 'data')) | |
| */ | |
| protected function saveImageToYandexDisk(&$url, $i, $userdata = array()){ | |
| static $config = null; | |
| static $yandex_disk_client = null; |
This file contains hidden or 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
| // click 'see more' | |
| [].map.call(document.querySelectorAll('a.fss'), function(a){ a.click(); }); | |
| // get texts | |
| [].map.call(document.querySelectorAll('.UFICommentActorAndBody'), function(d){ return d.querySelector('.UFICommentActorName').innerText+' пишет: '+d.querySelector('.UFICommentBody').innerText; }).join("\r\n\r\n") |
This file contains hidden or 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
| <?php | |
| $f = fopen('ttv.all.iproxy.m3u', 'r'); | |
| $i = 0; | |
| $name = $folder = null; | |
| while(($s = fgets($f)) !== false){ | |
This file contains hidden or 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
| /* | |
| * OrientationChange Event Shim | |
| * http://github.com/richtr | |
| * | |
| * Copyright (c) 2012, Rich Tibbett | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * |