Skip to content

Instantly share code, notes, and snippets.

View BatuhanK's full-sized avatar
👀
o rly?

Batuhan KATIRCI BatuhanK

👀
o rly?
View GitHub Profile
@BatuhanK
BatuhanK / block.sol
Created August 26, 2022 07:22
Block sales on X2Y2 Marketplace
function isApprovedForAll(address owner, address operator)
override
public
view
returns (bool)
{
// Block X2Y2
if (operator == 0x74312363e45dcaba76c59ec49a7aa8a65a67eed3) {
return false;
}
version: '2'
services:
redis:
image: redis:alpine
restart: always
container_name: redis
ports:
- "6379"
emqtt:
var latestTweetIndex = 0;
function scrollToNextElement(e) {
if(e.keyCode == 32 && e.target == document.body) {
e.preventDefault();
var streamItems = document.querySelectorAll('.stream-items>.stream-item');
console.log('streamItems', streamItems.length);
latestTweetIndex = findLatestVisibleTweetIndex(streamItems);
console.log('latestTweetIndex--', latestTweetIndex);
window.scrollBy(0, streamItems[latestTweetIndex].getBoundingClientRect().bottom - (window.innerHeight || document.documentElement.clientHeight));
!function(){function t(){var t=document.createEvent("Events");t.initEvent("click",!0,!1),document.body.dispatchEvent(t)}function e(){return Math.abs(getLockPosition()-getKeyPosition())%360<=15}var n=getLevel();setInterval(function(){e()&&t(),n!=getLevel()&&(n=getLevel(),setTimeout(function(){t()},1e3))},10),t()}();
@BatuhanK
BatuhanK / console.js
Created October 7, 2015 15:50
whatsapp-web-dev-console-sendMessage
function sendMessage(msg){
var msgInput = document.querySelector("#main > footer > div > div.input-container > div > div.input");
var sendButton = document.querySelector(".icon.btn-icon.icon-send");
var typeEvent = document.createEvent("TextEvent");
typeEvent.initTextEvent ("textInput", true, true, window, msg, 0, "en-US");
msgInput.focus();
msgInput.dispatchEvent(typeEvent);
<?php
/*
(2014) Main source -> http://lancenewman.me/posting-a-photo-to-instagram-without-a-phone/
I just managed to sniff Instagram traffic and fixed the code
-- Have fun - batuhan.org - Batuhan Katırcı
--- for your questions, comment @ http://batuhan.org/instagram-photo-upload-with-php/
@BatuhanK
BatuhanK / instagram-photo-upload-batuhanorg.php
Last active July 12, 2018 07:56
instagram photo upload - 20.05.2015 - batuhan.org
<?php
/*
(2014) Main source -> http://lancenewman.me/posting-a-photo-to-instagram-without-a-phone/
I just managed to sniff Instagram traffic and fixed the code
-- Have fun - batuhan.org - Batuhan Katırcı
--- for your questions, comment @ http://batuhan.org/instagram-photo-upload-with-php/
gmail.com
outlook.com
zoho.com
icloud.com
yandex.mail
yahoo.com
mail.com
shortmail.com
facebook.com
myway.com

Tinder API documentation

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

Note: this was written in April/May 2014 and the API may have changed since

API Details

@BatuhanK
BatuhanK / gist:866af68e5660e7f7eacf
Created January 5, 2015 06:46
blocktroll main app
var Twit = require('twit')
var fs = require('fs');
var util = require('util');
var kelimeler = fs.readFileSync('kelimeler.txt','utf8');
var T = new Twit({
consumer_key: '...'
, consumer_secret: '...'
, access_token: '...'