Skip to content

Instantly share code, notes, and snippets.

Avatar
:electron:
Excellence is not a skill, it's an attitude.

Hamza Anis HamzaAnis

:electron:
Excellence is not a skill, it's an attitude.
View GitHub Profile
@HamzaAnis
HamzaAnis / GitHub-slack
Last active May 19, 2021
Subscribe to all of the updates on GitHub plugin slack
View GitHub-slack
/github subscribe owner/repo issues pulls commits commits:* releases comments branches reviews
View AVLTree.py
class Node:
def __init__(self, val=None, p=None, l=None, r=None):
self.key = val
self.parent = p
self.left_child = l
self.right_child = r
self.balance_factor = 0
def __repr__(self):
s = str(self.key)
View port-forwarding.go
package main
import (
"flag"
"fmt"
"io"
"log"
"net"
"os"
"os/signal"
View correct.json
"{
"proxyDomain": "loopback.modlishka.io",
"listeningAddress": "0.0.0.0",
"proxyAddress": "",
"target": "paypal.com",
"targetResources": "c.paypal.com,www.paypal.com,www.paypalobjects.com,t.paypal.com,ad.doubleclick.net",
"targetRules": "",
"terminateTriggers": "",
"terminateRedirectUrl": "",
"trackingCookie": "ident",
@HamzaAnis
HamzaAnis / Install Vscode
Created Apr 12, 2019
Installing vscode using snap
View Install Vscode
sudo snap install code --classic
View gist:7f9a8867a50db7e6540f2307c2c594c1
type Queue []*Node
func (q *Queue) Push(n *Node) {
*q = append(*q, n)
}
func (q *Queue) Pop() (n *Node) {
n = (*q)[0]
*q = (*q)[1:]
return
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Timer</title>
<link rel="stylesheet" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
@HamzaAnis
HamzaAnis / cloudSettings
Last active Dec 25, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-12-25T07:19:08.091Z","extensionVersion":"v3.4.3"}
@HamzaAnis
HamzaAnis / zohodelay.js
Created Aug 11, 2018
A trick to add a delay of 5 seconds in the zoho forms
View zohodelay.js
void delay()
{
info now;
thislist = List();
thislist={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};
for each l in thislist
{
response = getUrl( "https://wait.glitch.me/5");
}
info now;
@HamzaAnis
HamzaAnis / GlobalMouseClick.cs
Created Jun 8, 2018
A hook for global mouse clicks on a screen.
View GlobalMouseClick.cs
namespace Demo_mousehook
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
MouseHook mh;