Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Kaan Karakaya TheYkk

🏠
Working from home
View GitHub Profile
@TheYkk
TheYkk / funcs.php
Last active Jun 4, 2018
Fonkiyonlar
View funcs.php
<?php
function sYap($par){
if($par!=""){
foreach ($par as $p => $v){
$_SESSION[$p] = $v;
}
return true;
}else{
return false;
@TheYkk
TheYkk / README.md
Created Sep 4, 2018
Deobfuscate free version of JavascriptObfuscator.com
View README.md

Simple Javascript deobfuscator

Aims to deobfuscate the result of JavascriptObfuscator free version.

Run

To tun the script, you should have had node.js installed first. Requires node.js and following npm modules:

  • esprima
@TheYkk
TheYkk / cssclear.py
Created Sep 8, 2018
Python clearing unused CSS
View cssclear.py
import os,ntpath,re
from fnmatch import fnmatch
folder_path = "C:/Users/TheYkk/Desktop/ko/Public/assets"
folder_path2 = "C:/Users/TheYkk/Desktop/ko/App/Views"
pattern = "*.css"
rev = ""
pattern2 = "*.php"
@TheYkk
TheYkk / .database.cnf
Last active Nov 14, 2018
mysql backup
View .database.cnf
[mysqldump]
host=localhost
user=user
password=password
@TheYkk
TheYkk / Delete.bat
Created Nov 15, 2018
Windows mysql backup
View Delete.bat
## 25 günü gecen backupları siler.
forfiles /p "C:\Yedeklerim" /s /m *.* /c "cmd /c Del @path" /d -25
@TheYkk
TheYkk / zip.php
Last active Nov 17, 2018
Zip all file from directory
View zip.php
<?php
function get_directory_list($dir = '*')
{
static $files = [];
foreach (glob($dir) as $file) {
if (is_dir($file)) get_directory_list($file . '/*');
else $files[] = $file;
}
return $files;
@TheYkk
TheYkk / modelajax.js
Created Nov 18, 2018
Modal javascript update
View modelajax.js
$(function(){
$("#myForm").submit(function(event) {
$.ajax({
type: "POST",
url: 'url.php',
data: $(this).serialize(),
dataType: 'json',
success: function(data)
@TheYkk
TheYkk / Vagrantfile
Created Dec 10, 2018 — forked from gokhansengun/Vagrantfile
Vagrantfile used in Istanbul Coders - Kubernetes Introduction Meetup
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
K8S_DEV_BOX_NAME = "gsengun/k8s-dev-box"
K8S_DEV_BOX_VERSION = "17.12.27"
MASTER_NODE_IP_START="172.27.44.20"
WORKER_NODE_IP_START="172.27.44.10"
JOIN_TOKEN="abcdef.1234567890123456"
@TheYkk
TheYkk / admin.php
Created Jan 15, 2019
admin page finder
View admin.php
<?php
set_time_limit(0);
?>
<html>
<head>
<title>
Admin Page Finder
</title>
</head>
@TheYkk
TheYkk / Vagrantfile
Created Jan 18, 2019
My kali linux settings
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
You can’t perform that action at this time.