Skip to content

Instantly share code, notes, and snippets.

View WajahatAliAbid's full-sized avatar

Wajahat Ali Abid WajahatAliAbid

View GitHub Profile
@WajahatAliAbid
WajahatAliAbid / aws_iam_policy_schema.json
Created July 31, 2023 10:06
schema for iam policies
{
"type": "object",
"required": [
"Statement"
],
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string"
},
@WajahatAliAbid
WajahatAliAbid / state-machine-definition.json
Created November 24, 2020 20:37
Recursive Amazon State machine definition
{
"Comment": "Amazon State machine to process messages from s3 and push them to Kinesis",
"StartAt": "MigrationLambda",
"States": {
"MigrationLambda": {
"Type": "Task",
"Resource": "sample-function-arn",
"Retry": [
{
"ErrorEquals": [
@WajahatAliAbid
WajahatAliAbid / inotify-instructions.md
Created October 21, 2020 15:04 — forked from tbjgolden/inotify-instructions.md
[Arch Linux] [Manjaro] How to avoid "Visual Studio Code is unable to watch for file changes in this large workspace" (error ENOSPC)

To avoid this error, we need to increase the inotify watcher limit.

The way to do this is different on Arch based distributions than other Linux distributions.

Instructions for Arch Linux/Manjaro

Check for an already existing inotify config file (recent versions of Manjaro include one)

@WajahatAliAbid
WajahatAliAbid / RandomBigInteger.cs
Created September 20, 2020 02:21 — forked from rharkanson/RandomBigInteger.cs
RandomBigInteger - An extension to the C# Random class for generating random BigIntegers
using System;
using System.Numerics;
namespace System.Numerics
{
class RandomBigInteger : Random
{
public RandomBigInteger() : base()
{
}