Skip to content

Instantly share code, notes, and snippets.

@MuhammadSaim
MuhammadSaim / rarreg.key
Last active June 1, 2024 03:30
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
@CodeCommissions
CodeCommissions / MainWindow.cs
Last active January 25, 2022 20:14
A basic web scraper using AngleSharp. Part of a WPF application.
//Base code courtesy of:
//https://dev.to/rachelsoderberg/create-a-simple-web-scraper-in-c-1l1m
using AngleSharp.Dom;
using AngleSharp.Html.Dom;
using AngleSharp.Html.Parser;
using AngleSharp.Text;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@0o001
0o001 / check.cs
Last active July 30, 2020 06:44
how to connection internet check
//İnternet bağlantısı kontrolü
using System.Runtime.InteropServices;
[DllImport("wininet.dll", CharSet = CharSet.Auto)]
extern static bool InternetGetConnectedState(ref InternetGetConnectedStateFlags Description, int ReservedValue);
[Flags]
public enum InternetGetConnectedStateFlags
{
INTERNET_CONNECTION_MODEM = 0x01,
@Indigo744
Indigo744 / ProcessAsyncHelper.cs
Last active July 26, 2023 10:09 — forked from georg-jung/ProcessAsyncHelper.cs
The right way to run external process in .NET (async version)
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Threading.Tasks;
/// <summary>
/// Process helper with asynchronous interface
/// - Based on https://gist.github.com/georg-jung/3a8703946075d56423e418ea76212745
/// - And on https://stackoverflow.com/questions/470256/process-waitforexit-asynchronously
/// </summary>
@slovenec88
slovenec88 / README.md
Last active February 6, 2022 18:59
Telebit.cloud https://telebit.cloud/ some helpful insights for ssh, putty and making it persistent

I've had some dificulites using the ssh, putty and making it persistent, here are my findings.

Make it a persistent service. It will survive reboots and keep your proxy alive.

sudo nano /etc/systemd/system/telebit.service

[Unit]
Description=Telebit
After=network-online.target

@Mirovinger
Mirovinger / proxygram-nginx.conf
Created September 1, 2019 21:09 — forked from stek29/proxygram-nginx.conf
config for nginx to proxy webogram
server {
server_name gram.com;
location / {
root /var/www/gram;
try_files $uri $uri/index.html;
# protect with basic auth, we don't want to get banned by rkn
auth_basic "webogram";
auth_basic_user_file /var/www/gram.htpasswd;

How to setup MTProxy using nginx stream proxy

There are two servers in this configuration: * 192.168.1.101 which used to server the clients directly. * 192.168.1.202 is backend server and clients doesn't aware of.

On 192.168.1.202

Install MTProxy:

@manuelbl
manuelbl / README.md
Created August 3, 2019 09:12
ESP32 as Bluetooth Keyboard

ESP32 as Bluetooth Keyboard

With its built-in Bluetooth capabilities, the ESP32 can act as a Bluetooth keyboard. The below code is a minimal example of how to achieve it. It will generate the key strokes for a message whenever a button attached to the ESP32 is pressed.

For the example setup, a momentary button should be connected to pin 2 and to ground. Pin 2 will be configured as an input with pull-up.

In order to receive the message, add the ESP32 as a Bluetooth keyboard of your computer or mobile phone:

  1. Go to your computers/phones settings
  2. Ensure Bluetooth is turned on
@haacked
haacked / ModelBuilderExtensions.cs
Last active March 29, 2024 14:16
Example of applying an EF Core global query filter on all entity types that implement an interface
/*
Copyright Phil Haack
Licensed under the MIT license - https://github.com/haacked/CodeHaacks/blob/main/LICENSE.
*/
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;