Skip to content

Instantly share code, notes, and snippets.

@im-infamou5
im-infamou5 / postgres.yaml
Last active January 10, 2021 17:25
postgres gce instance creation
# Firstly you'll need to introduce volume as follows:
# gcloud compute disks create --size=10GB --zone=europe-north1-a pgdata
#
kind: PersistentVolume
apiVersion: v1
metadata:
name: postgres-pv
labels:
type: local
app: postgres
@im-infamou5
im-infamou5 / ECPointAddition.java
Created March 13, 2016 07:53
Elliptic curve points addition over Fp
package com.fooinc;
import java.math.BigInteger;
import org.bouncycastle.math.ec.ECCurve;
import org.bouncycastle.math.ec.ECFieldElement;
import org.bouncycastle.math.ec.ECPoint;
public class ECPointAddition
{
/* crypto/bn/bn.h */
/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
@im-infamou5
im-infamou5 / restorebin
Last active September 15, 2023 13:04
Allows to copy content of recycle bin to hardcoded folder
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <propkey.h>
HRESULT BindToCsidl(int csidl, REFIID riid, void **ppv)
{
HRESULT hr;
@im-infamou5
im-infamou5 / syshandles
Last active November 7, 2023 10:15
This tool allows to view handles of all process including system ones. Generally, fork of bit.ly/1kyJU8J with system processes supported.
#ifndef UNICODE
#define UNICODE
#endif
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#include <time.h>
#define DEBUG 1
using System;
using System.IO;
using System.Collections.ObjectModel;
using System.Collections;
using System.Threading;
using System.Runtime.InteropServices;
namespace SpringCardPCSC
{