Skip to content

Instantly share code, notes, and snippets.

View phyesix's full-sized avatar
🌏
Stalking

Ibrahim Nergiz phyesix

🌏
Stalking
View GitHub Profile
@phyesix
phyesix / ublock.txt
Last active June 22, 2023 11:13
Ublock Custom
! 2023-01-02 https://www.r10.net
||cdn.r10.net/editor/**/*.gif$image
||cdn.r10.net/bnnr/*.gif$image
www.r10.net##div.rc98257:nth-of-type(1)
||cdn.r10.net/rm/*/*.webp$image
||idrydigital.com/upload/*.gif$image
||cdn.r10.net/**/*.gif$image
www.r10.net##div[class^="rc"]
www.r10.net##.topbar
www.r10.net##.topbar2
@phyesix
phyesix / docker-compose.yml
Last active December 20, 2022 16:00
Smart Home Docker Compose File
version: "3.6"
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /homeassistant/data:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
@phyesix
phyesix / Delete all local git branches
Created February 4, 2022 10:53
Delete all local git branches
git branch | grep -v "master" | xargs git branch -D
@phyesix
phyesix / Hacker News Main Page Clicker
Last active March 20, 2024 13:06
Hacker News Main Page Clicker
// HACKERNEWS
document.querySelectorAll('[id^=up].clicky:not(.nosee)').forEach(function(e ,i) {
setTimeout(() => {
e.click();
let currentLink = e.parentNode.parentNode.nextElementSibling.querySelector('a').getAttribute('href');
window.open(currentLink, '_blank');
}, i * 1000 * (Math.floor(Math.random() * 6) + 1));
});
// HACKERNEWS
@phyesix
phyesix / Product Hunt Main Page Clicker
Last active March 20, 2024 13:06
Product Hunt Main Page Clicker
//PH
document.querySelectorAll('button[class*=styles_feed]:not([class*=styles_upvoted])').forEach(function(e ,i) {
setTimeout(() => {
e.parentElement.querySelector('a[rel="noopener"]').click();
e.click();
}, i * 1000 * (Math.floor(Math.random() * 6) + 1));
});
//PH
find /home/nodeapps/web/ -name "app.sock" -exec rm -r "{}" \;
sleep 2
pm2 restart all
sleep 30
find /home/nodeapps/web/ -name "app.sock" -exec chmod -R 777 "{}" \;
@phyesix
phyesix / wcb.php
Created June 19, 2021 17:14
Wordpress Comment Bot
<?php
function curl_gir($site) {
$ch = curl_init($site);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_REFERER, $site);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
document.head.parentNode.removeChild(document.head);
Seven different types of CSS attribute selectors
// This attribute exists on the element
[value]
// This attribute has a specific value of cool
[value='cool']
// This attribute value contains the word cool somewhere in it
[value*='cool']
document.querySelectorAll('.style_pt-desktop-6__1jDK_').forEach(function(element ,index) {
if(element.querySelector('button').classList.contains('styles_upvoted__2FBD8') === false ) {
setTimeout(function(){
element.querySelector('.styles_externalLinkIcon__1p0HV').click();
element.querySelector('button').click();
}, 500);
}
});