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 Block Delfi.LV ads | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://www.tampermonkey.net/index.php?version=4.18.0&ext=dhdg&updated=true | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net | |
| // @match https://rus.delfi.lv/* | |
| // @match https://www.delfi.lv/* |
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
| sudo modprobe -r iwldvm iwlwifi | |
| sudo modprobe iwlwifi 11n_disable=1 bt_coex_active=0 power_save=0 auto_agg=0 swcrypto=1 | |
| Add line to /etc/modprobe.d/iwlwifi.conf | |
| options iwlwifi 11n_disable=1 bt_coex_active=0 power_save=0 auto_agg=0 swcrypto=1 | |
| And restart |
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
| If you have public in ../ and laravel in directory (good for shared hosting) | |
| /app/Console/Commands/Serve.php | |
| <?php | |
| namespace App\Console\Commands; | |
| use Exception; | |
| use Illuminate\Console\Command; |
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 | |
| header("Content-Type: image/jpeg"); // it will return image | |
| echo hex2bin('89504e470d0a1a0a0000000d494844520000000100000001010300000025db56ca00000003504c5445000000a77a3dda0000000174524e530040e6d8660000000a4944415408d76360000000020001e221bc330000000049454e44ae426082'); | |
| $id=$_GET['id']; | |
| function get_client_ip() { | |
| $ipaddress = ''; | |
| if (isset($_SERVER['HTTP_CLIENT_IP'])) | |
| $ipaddress = $_SERVER['HTTP_CLIENT_IP']; | |
| else if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) | |
| $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR']; |
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
| drawOHLC<-function(x,O,H,L,C){ | |
| #print(paste(x,O,H,L,C)) | |
| rect(x-0.8,O,x-0.2,C,col=ifelse(O>=C,"blue","red"),border="black") | |
| lines( | |
| c(x-0.5,x-0.5), | |
| c(max(O,C), | |
| max(O,H,L,C)), | |
| col="black") | |
| lines( |
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
| import java.time.Clock; | |
| import java.time.Duration; | |
| import java.util.Arrays; | |
| import org.jenetics.*; | |
| import org.jenetics.engine.Engine; | |
| import org.jenetics.engine.EvolutionStatistics; | |
| import org.jenetics.util.Factory; | |
| import org.neuroph.core.NeuralNetwork; |
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
| For mt4 build 600+ | |
| Must convert path to unicode char! | |
| string path=..... | |
| //save | |
| uchar p[]; | |
| StringToCharArray(path,p,0,-1,CP_ACP); | |
| ret=f2M_save(ann,p); |