Skip to content

Instantly share code, notes, and snippets.

View MoatazAbdAlmageed's full-sized avatar
⌨️
pressing f12 key

Moataz Mohammady MoatazAbdAlmageed

⌨️
pressing f12 key
View GitHub Profile
// If the script does not work, you may need to allow same site scripting https://stackoverflow.com/a/50902950
Linkedin = {
config: {
scrollDelay: 3000,
actionDelay: 5000,
nextPageDelay: 5000,
// set to -1 for no limit
maxRequests: -1,
totalRequestsSent: 0,
if you unfollow all as shown here https://www.linkedin.com/pulse/mass-unfollow-linkedin-connections-mighil-/
and need to undo this action Go to https://www.linkedin.com/mypreferences/d/unfollowed and past this into the browser console in hit enter
```
(() => {
let count = 0;
function getAllButtons() {
@MoatazAbdAlmageed
MoatazAbdAlmageed / gist:7e30accd2107b4138332f24cce17c3e0
Last active January 24, 2023 23:35
download youtube playlist and merge it to one video
# Installation
- first install yt-dlp from https://github.com/yt-dlp/yt-dlp/wiki/Installation then add this method to `.bashrc`
- yt-dlp -c --concat-playlist always -o "pl_video:%(title)s.%(ext)s" https://www.youtube.com/playlist\?list\=PL0vfts4VzfNjQOM9VClyL5R0LeuTxlAR3
# Easy Wat
```
@MoatazAbdAlmageed
MoatazAbdAlmageed / gist:d0b330b2fc9ed41b4098131f93770c40
Created January 14, 2023 19:21
Merge multiple videos and one audio with ffmpeg
# add this to .bashrc
```
aio(){
for f in *.$1; do echo "file '$f'" >> list.txt; done
ffmpeg -f concat -safe 0 -i list.txt -c copy aio.$1
}
```
#!/bin/bash
# Default Command
# https://ianmuchina.com/blog/08-ytdl/
CMD="yt-dlp"
# Use yt-dlp if avaiable
command -v yt-dlp >/dev/null &&
CMD="yt-dlp" ARGS=""
# Quality Options
#!/bin/bash
alias plugin="wp plugin install --activate "
alias plugindeactivate="wp plugin deactivate --skip-plugins "
alias theme="wp theme install --activate "
wp_fix(){
wp db export
wp cache flush
wp core check-update
wp core update
const myTimeout = setInterval(myGreeting, 5000);
function myGreeting() {
document.getElementsByClassName('sui-icon-play')[0].click();
}
[...document.getElementsByClassName('details__name')].forEach((item)=>{console.log(item.innerHTML)})
@MoatazAbdAlmageed
MoatazAbdAlmageed / linkedin
Last active August 30, 2021 03:23
reading mode
@import url('https://fonts.googleapis.com/css2?family=Amiri&display=swap');
.artdeco-notification-badge .notification-badge, .artdeco-notification-badge .notification-badge.notification-badge--border,artdeco-notification-badge .notification-badge, .artdeco-notification-badge .notification-badge.notification-badge--border {
background-color:#eee !important;
}
div.feed-shared-update-v2__description-wrapper span{
font-family: Amiri;
font-size: 30px;
}
<?php
function getCurrentUserAllFormEntries()
{
$query = wpFluent()->table('fluentform_submissions')
->select([
'fluentform_submissions.id',
'fluentform_submissions.form_id',
'fluentform_submissions.user_id',
'fluentform_forms.title',