Skip to content

Instantly share code, notes, and snippets.

@Lazza
Lazza / README.md
Last active June 16, 2025 20:36
VPNGate Python script

This script is NOT MAINTAINED

This snippet of code was posted in 2014 and slightly revised in 2016 and 2017. It was more of a quick'n'dirty script than a polished tool. It is made only for Linux and in Python 2, which has since become outdated.

I currently do not use it, and I suggest you avoid it as well. Please do not expect support for using this script.

🔥 If you need an alternative, @glaucocustodio has kindly suggested EasyVPN in this comment.

The rest of the README is left for historical purposed.

@ghuntley
ghuntley / gist:ed2eb754a47e2cd3bc90
Created December 4, 2014 21:30
compelling fusillade + refit example
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
using EndlessCatsApi.ServiceModel;
using EndlessCatsApp.Core.Helpers;
using Fusillade;
using Refit;
namespace EndlessCatsApp.Core.Services
@atcuno
atcuno / gist:3425484ac5cce5298932
Last active May 13, 2025 07:11
HowTo: Privacy & Security Conscious Browsing

The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.

Table of Contents

public class AutofacCommandDispatcher : ICommandDispatcher
{
private readonly IComponentContext _context;
public AutofacCommandDispatcher(IComponentContext context)
{
_context = context;
}
public void Dispatch(ICommand command)
@mubix
mubix / infosec_newbie.md
Last active July 10, 2025 04:30
How to start in Infosec
@OpBug
OpBug / HashPuzzle.cs
Last active August 28, 2020 05:01
C# proof-of-work implementation inspired by Hashcash to deter denial of service attacks and other service abuses such as spam.
using System;
using System.Security.Cryptography;
/// <summary>
/// Computes and verifies proof-of-work challenges inspired by Hashcash to deter denial of service attacks and other service abuses such as spam.
/// </summary>
public sealed class HashPuzzle
{
#region " Properties "
@dabit3
dabit3 / basicmarket.sol
Last active January 9, 2024 08:54
Basic NFT marketplace
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
contract NFT is ERC721URIStorage {
using Counters for Counters.Counter;