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 System.Net.Sockets; | |
using System.Runtime.InteropServices; | |
namespace SocketKeepAlive | |
{ | |
public static class SocketKeepAlive | |
{ | |
public static void SetKeepAlive(this Socket socket, bool enabled, int keepalivetime, int interval) | |
{ | |
int size = Marshal.SizeOf((uint)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
public static class LatLon2Dms | |
{ | |
public static string Convert(double lat, double lon) | |
{ | |
return ConvertSingle(lat, true) + ", " + ConvertSingle(lon, false); | |
} | |
private static string ConvertSingle(double value, bool isLat) | |
{ | |
double v = Math.Abs(value); |
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
/* | |
1) Open https://popcat.click | |
2) Open console (F12 or CTRL+SHIFT+I) | |
3) Insert code & run | |
4) Monitor bot progress in the console | |
Note: popcat.click server registers only 800 pops every 30 seconds per IP address (that's why this bot is slow and runnig it in multiple tabs won't work). | |
If you'll send 800 or more clicks 10 times in a row, you'll get banned for 12 hours ("ban" cookie is set). | |
This bot addresses this issue and will NOT get you banned. |
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
Windows Registry Editor Version 5.00 | |
; WARNING! | |
; RUN ONLY IF YOUR VLC INSTALLATION DIRECTORY IS C:\Program Files\VideoLAN\VLC | |
; WARNING! | |
[HKEY_CLASSES_ROOT\VLC.mp4\shell\Open\command] | |
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\" --sout-all --sout #display" |