Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
YOLO

Mazen Alhrazi iMaz1n

🔥
YOLO
View GitHub Profile
@iMaz1n
iMaz1n / delete-likes-from-twitter.md
Created Nov 16, 2022 — forked from aymericbeaumet/delete-likes-from-twitter.md
[Recipe] Delete all your likes/favorites from Twitter
View delete-likes-from-twitter.md

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@iMaz1n
iMaz1n / Reset-Course-Progress.js
Created Nov 16, 2022
Udemy Reset Course Progress
View Reset-Course-Progress.js
document.querySelectorAll('li input[type=checkbox]:checked').forEach((box, i) => setTimeout(() => box.click(), i * 50))
@iMaz1n
iMaz1n / twitter-remove-retweets.js
Created Mar 3, 2022 — forked from antlionguard/twitter-remove-retweets.js
With this script, you can remove all retweets you are retweeted on Twitter.
View twitter-remove-retweets.js
const timer = ms => new Promise(res => setTimeout(res, ms));
// Unretweet normally
const unretweetTweet = async (tweet) => {
await tweet.querySelector('div[data-testid="unretweet"]').click();
await timer(250);
await document.querySelector('div[data-testid="unretweetConfirm"]').click();
console.log('****// Unretweeted Successfully //****')
}
View iTunes Binary Rejection
May 3, 2017 at 12:34 PM
From Apple
2. 3 Performance: Accurate Metadata
4. 2 Design: Minimum Functionality
Guideline 4.2 - Design
Thank you for your resubmission. Your app continues to provide a limited user experience as it is still not sufficiently different from a mobile browsing experience. As such, the experience it provides is similar to the general experience of using Safari. Including iOS features such as push notifications, Core Location, and sharing do not provide a robust enough experience to be appropriate for the App Store.
Next Steps
@iMaz1n
iMaz1n / create-subdomain.php
Created Oct 17, 2021
Use API/Curl to create a new subdomain in both CloudFlare and cPanel
View create-subdomain.php
<?php
/**
* Create Subdomains
*
* Note: This script was designed to be called silently by a bash script for project creation.
* Add to bash script: php "$HOME/scripts/php/create-subdomains.php" "$new_account_subdomain"
*
* Requires "jamesryanbell/cloudflare": "^1.11" for the CloudFlare PHP library
* Recommends "kint-php/kint": "^3.2" for improved temporary PHP debugging
@iMaz1n
iMaz1n / 1-setup.md
Created Aug 9, 2021 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra
View 1-setup.md

Methods of Signing with GPG

Last updated March 28, 2021

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

@iMaz1n
iMaz1n / lowertoupper.asm
Created Dec 16, 2020 — forked from wohhie/lowertoupper.asm
Assembly 8086: Lower Case to Upper Case
View lowertoupper.asm
TITLE PGM_1: CASE CONVERSTION PROGRAM
.MODEL SMALL
.STACK 100H
.DATA
CR EQU 0DH
LF EQU 0AH
View Apple-real-device-debugging.md

Apple Real Devices Debugging

What you need

  • certificate--which tells your devices that Apple trust you
  • a app id
  • a test device
  • a provisioning profile
@iMaz1n
iMaz1n / encrypt_openssl.md
Created Aug 1, 2020 — forked from dreikanter/encrypt_openssl.md
File encryption using OpenSSL
View encrypt_openssl.md

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt:

@iMaz1n
iMaz1n / index.php
Created May 3, 2020 — forked from baamenabar/index.php
PHP List images in folder
View index.php
<?php
/*
list all the files with extension nn on a folder
the first parameter of glob is a regex to match files.
you can do:
path_to_dir/*.html
to select all the .html files in the path_to_dir folder
*NOTE:* the regex on glob is case sensitive