Skip to content

Instantly share code, notes, and snippets.

View mahdavipanah's full-sized avatar
💻
Wired in

Hamidreza Mahdavipanah mahdavipanah

💻
Wired in
View GitHub Profile
@mahdavipanah
mahdavipanah / add_xattribute.c
Last active January 4, 2018 01:15
XML in C - Golbarg
xattribute_t* add_xattribute(xelement_t* e, const char* name, const char* value){
// either element already has some attributes or not
// in both situations we have to create a new attribute to add
// we call it "atr" and first we initate it
xattribute_t* atr = (xattribute_t*)malloc(sizeof(xattribute_t));
atr->name = strdup(name);
atr->value = strdup(value);
atr->next = NULL;
// Now we check if element has no attribute
@mahdavipanah
mahdavipanah / Format XML [Spicher].md
Last active January 5, 2018 21:07
XML in C - Goli

Format XML

Description du format

Le format XML [https://fr.wikipedia.org/wiki/Extensible_Markup_Language] est un format générique
qui permet l'échange de données structurées. De nombreux formats spécialisés, tels que SVG ou
HTML, correspondent à une utilisation particulière de XML. Les langages de programmation de
@mahdavipanah
mahdavipanah / .eslintrc.json
Created August 10, 2018 14:03
My ESLint Config
{
"env": {
"node": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"rules": {
"linebreak-style": [
"error",
@mahdavipanah
mahdavipanah / README.fa.md
Last active May 13, 2019 17:26
Automatically cancel all friend requests that you've sent in Facebook with a simple script

This document is also available in English.

چطوری به شکل اتوماتیک در فیس‌بوک تمام درخواست‌های دوستی‌ای که فرستاده‌ایم رو کنسل کنیم؟

از اونجایی که فیس‌بوک امکانی برای کنسل کردن تمام درخواست‌های دوستی‌ای که فرستاده‌ایم به صورت یکجا نداره، مجبوریم تا تمام درخواست‌های دوستی رو دونه دونه کنسل کنیم. اسکریپت پیش رو مثل یه یوزر واقعی مرورگر عمل میکنه و به جای شما دونه دونه درخواست‌های دوستی‌ای که فرستاده‌اید رو کنسل میکنه و شما می‌تونید در همین حین از قهوتون لذت ببرید 😊

مراحل زیر رو دنبال کنید:

  • مرورگر گوگل کروم رو دانلود و اجرا کنید
  • وارد اکانت فیس‌بوک خود شود و بعد از لاگین به صفحه‌ی https://www.facebook.com/friends/requests/?fcref=none&outgoing=1 برید (در این صفحه می‌تونید لیست تمام درخواست‌های دوستی‌ای که فرستاده‌اید رو به صورت یکجا ببینید)
@mahdavipanah
mahdavipanah / README.md
Last active November 26, 2018 17:04
A script to cut a video into multiple parts

Requirements

How to Use

First create a text files that looks like this:

00:00:58 00:01:21
00:05:43 00:06:27
00:08:03 00:09:37
00:10:03 00:11:22
@mahdavipanah
mahdavipanah / gsc.sh
Created December 6, 2018 10:13
Zsh function for git checkout and create a branch
function gsc() {
git branch | grep -w "$1" > /dev/null;
if [ $? = 0 ]; then
git checkout "$1";
else
git checkout -b "$1";
fi
}
### Keybase proof
I hereby claim:
* I am mahdavipanah on github.
* I am mahdavipanah (https://keybase.io/mahdavipanah) on keybase.
* I have a public key ASBs9IOFzzarSMjjcVbuF9mjMSXo7wXgSe_UMMaBOhssxAo
To claim this, I am signing this object:

繁中版 | 简中版 | Português (Brasil) | Français | 한국어 | Nederlands | Indonesia | ไทย | Русский | Українська | Español | Italiano | 日本語 | Deutsch | Türkçe | Tiếng Việt | Монгол | हिंदी | العربية | Polski | Македонски | ລາວ | Ελληνικά

چک‌لیست امنیتی API

چک‌لیستی از مهم‌ترین کارهای لازم برای حفظ امنیت در زمان طراحی، تست و انتشار API.


احراز هویت

00:00:58 00:01:21
00:05:43 00:06:27
00:08:03 00:09:37
00:10:03 00:11:22
00:13:06 00:13:30
{"version":1,"resource":"file:///Users/hamidreza/github/mahdavipanah/pyCFG/README.md","entries":[{"id":"k5EV.md","timestamp":1649349010488},{"id":"oALi.md","timestamp":1649349136790},{"id":"iVef.md","timestamp":1649349322661},{"id":"N62C.md","timestamp":1649349514395},{"id":"0hz3.md","source":"undoRedo.source","timestamp":1649349572907}]}