Skip to content

Instantly share code, notes, and snippets.

View harshitanand's full-sized avatar
🏠
Working from home

Harshit Anand harshitanand

🏠
Working from home
  • Bangalore, India
View GitHub Profile

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@harshitanand
harshitanand / config.py
Created February 10, 2023 15:25 — forked from leoGalani/config.py
kafka-confluent-python implementation example
import certifi
from dynaconf import settings
from confluent_kafka.avro import AvroProducer
from confluent_kafka import Consumer
BASE_CONFIG = {
'bootstrap.servers': settings.KAFKA_PRIMARY_BOOTSTRAP_SERVERS,
'group.id': 'integrated-tests',
'client.id': 'integrated-tests',
@harshitanand
harshitanand / kafka-consumer.test.js
Created February 10, 2023 15:25 — forked from dwelch2344/kafka-consumer.test.js
kafka avro nodejs example
const registryUrl = 'http://schema-registry:8081'
const avro = require('avsc')
const registry = require('avro-schema-registry')(registryUrl)
const kafka = require('kafka-node')
const client = new kafka.KafkaClient({ kafkaHost: 'kafka:9092' })
const topic = {
topic: 'actor7',
offset: 3695
@harshitanand
harshitanand / multiple_ssh_setting.md
Created May 25, 2022 06:52 — forked from whiplashviper/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@harshitanand
harshitanand / safe_sig_gen_uport_eip712.ts
Created April 22, 2022 13:03 — forked from rmeissner/safe_sig_gen_uport_eip712.ts
Example Safe signature generation with uport eip712 lib
import EIP712Domain from "eth-typed-data";
import BigNumber from "bignumber.js";
import * as ethUtil from 'ethereumjs-util';
import { ethers } from "ethers";
import axios from "axios";
/*
* Safe relay service example
* * * * * * * * * * * * * * * * * * * */
@harshitanand
harshitanand / create-aws-console-user.sh
Created April 15, 2022 05:23 — forked from res0nat0r/create-aws-console-user.sh
Create AWS console user from the awscli
#!/bin/bash
# USAGE: ./create-aws-console-user.sh $GROUPNAME $USERNAME $PASSWORD
# http://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html#id_users_create_cliwpsapi
# Create administrator group
aws iam create-group --group-name $1
@harshitanand
harshitanand / lambda.js
Created November 25, 2021 12:44 — forked from kageurufu/lambda.js
AWS Lambda Thumbnailer
var async = require("async");
var AWS = require("aws-sdk");
var gm = require("gm").subClass({imageMagick: true});
var fs = require("fs");
var mktemp = require("mktemp");
var THUMB_KEY_PREFIX = "thumbnails/",
THUMB_WIDTH = 150,
THUMB_HEIGHT = 150,
ALLOWED_FILETYPES = ['png', 'jpg', 'jpeg', 'bmp', 'tiff', 'pdf', 'gif'];
@harshitanand
harshitanand / vscode_shortcuts.md
Created May 3, 2021 09:59 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

PUT /seokeyworddesignmappings
{
"settings": {
"index": {
"analysis": {
"filter": {},
"analyzer": {
"keyword_analyzer": {
"filter": [
@harshitanand
harshitanand / homebrew.md
Created November 30, 2020 09:24 — forked from somecuitears/homebrew.md
Homebrew and UPX Installation Procedure for macOS

UPX detail : Compress/expand executable files;

Open terminal | Command+Space and type Terminal and press enter/return key.

Paste following code :

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null