Skip to content

Instantly share code, notes, and snippets.

View Sy3Omda's full-sized avatar
🎯
Focusing

Emad Youssef Sy3Omda

🎯
Focusing
View GitHub Profile
@Sy3Omda
Sy3Omda / Set up GitHub push with SSH keys.md
Last active August 29, 2022 18:32 — forked from xirixiz/Set up GitHub push with SSH keys.md
Set up GitHub push with SSH keys

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "your_email@example.com"
@Sy3Omda
Sy3Omda / fix_brightness.sh
Created August 17, 2022 16:40
fixing brightness control which is permission denied in awesome wm
#!/usr/bin/env bash
sudo tee /etc/udev/rules.d/backlight.rules << EOF > /dev/null
#ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="<vendor>", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
#ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="<vendor>", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
#my vendor intel_backlight
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
EOF
usermod -aG video $USER
POC by Sy3Omda
@Sy3Omda
Sy3Omda / delete-slack-messages.js
Created January 26, 2022 13:16 — forked from firatkucuk/delete-slack-messages.js
Deletes slack public/private channel messages, private chat messages and channel thread replies.
#!/usr/bin/env node
// Channel ID is on the the browser URL.: https://mycompany.slack.com/messages/MYCHANNELID/
// Pass it as a parameter: node ./delete-slack-messages.js CHANNEL_ID
// CONFIGURATION #######################################################################################################
const token = 'SLACK TOKEN';
// Legacy tokens are no more supported.
// Please create an app or use an existing Slack App
@Sy3Omda
Sy3Omda / auto_git_query
Created January 23, 2022 17:35 — forked from nullenc0de/auto_git_query
Automated Github Queries (Can open 29 tabs at a time)
https://github.com/search?q=BROWSER_STACK_ACCESS_KEY= OR BROWSER_STACK_USERNAME= OR browserConnectionEnabled= OR BROWSERSTACK_ACCESS_KEY=&s=indexed&type=Code
https://github.com/search?q=CHROME_CLIENT_SECRET= OR CHROME_EXTENSION_ID= OR CHROME_REFRESH_TOKEN= OR CI_DEPLOY_PASSWORD= OR CI_DEPLOY_USER=&s=indexed&type=Code
https://github.com/search?q=CLOUDAMQP_URL= OR CLOUDANT_APPLIANCE_DATABASE= OR CLOUDANT_ARCHIVED_DATABASE= OR CLOUDANT_AUDITED_DATABASE=&s=indexed&type=Code
https://github.com/search?q=CLOUDANT_ORDER_DATABASE= OR CLOUDANT_PARSED_DATABASE= OR CLOUDANT_PASSWORD= OR CLOUDANT_PROCESSED_DATABASE=&s=indexed&type=Code
https://github.com/search?q=CONTENTFUL_PHP_MANAGEMENT_TEST_TOKEN= OR CONTENTFUL_TEST_ORG_CMA_TOKEN= OR CONTENTFUL_V2_ACCESS_TOKEN=&s=indexed&type=Code
https://github.com/search?q=-DSELION_BROWSER_RUN_HEADLESS= OR -DSELION_DOWNLOAD_DEPENDENCIES= OR -DSELION_SELENIUM_RUN_LOCALLY=&s=indexed&type=Code
https://github.com/search?q=ELASTICSEARCH_PASSWORD= OR ELASTICSEARCH_USERNAME= OR EMAIL_NOTIFI
/_inc/vendor/stripe/stripe-php/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
/_staff/cron/php/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
/_staff/php/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
/~champiot/Laravel E2N test/tuto_laravel/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
/~champiot/tuto_laravel/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
/1board/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
/4walls/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
/6p6/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
/2018/scholarship/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
/2018/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
https://web.archive.org/cdx/search?url=SITE&matchType=prefix&collapse=urlkey&output=txt&fl=original
@Sy3Omda
Sy3Omda / curl_urls_via_burp.ps1
Created June 8, 2021 13:07
curl list of urls in powershell via burp as proxy
foreach($line in [System.IO.File]::ReadLines("D:\1.txt")) {iwr -Uri $line -Method GET -Proxy http://127.0.0.1:8080 | Out-Null}
curl -s https://api.github.com/repos/user/reponame/releases/latest | grep -E 'browser_download_url' | grep linux_amd64 | cut -d '"' -f 4 | wget -qi -
@Sy3Omda
Sy3Omda / echo_with_colors.sh
Created January 30, 2021 10:42 — forked from mvndaai/echo_with_colors.sh
Bash echo with colors
#!/bin/sh
echo-bold(){
echo -e '\e[1m'$1'\e[0m'
}
echo-black(){
#You probably shouldn't use this
echo -e '\e[30m'$1'\e[0m'
}
echo-red(){