Skip to content

Instantly share code, notes, and snippets.

@TheYkk
TheYkk / funcs.php
Last active June 4, 2018 01:38
Fonkiyonlar
<?php
function sYap($par){
if($par!=""){
foreach ($par as $p => $v){
$_SESSION[$p] = $v;
}
return true;
}else{
return false;
@TheYkk
TheYkk / README.md
Created September 4, 2018 10:24
Deobfuscate free version of JavascriptObfuscator.com

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 September 8, 2018 11:12
Python clearing unused CSS
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 November 14, 2018 14:10
mysql backup
[mysqldump]
host=localhost
user=user
password=password
@TheYkk
TheYkk / Delete.bat
Created November 15, 2018 12:29
Windows mysql backup
## 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 November 17, 2018 09:29
Zip all file from directory
<?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 November 18, 2018 04:53
Modal javascript update
$(function(){
$("#myForm").submit(function(event) {
$.ajax({
type: "POST",
url: 'url.php',
data: $(this).serialize(),
dataType: 'json',
success: function(data)
@TheYkk
TheYkk / Vagrantfile
Created December 10, 2018 14:32 — forked from gokhansengun/Vagrantfile
Vagrantfile used in Istanbul Coders - Kubernetes Introduction Meetup
# -*- 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 January 15, 2019 18:25
admin page finder
<?php
set_time_limit(0);
?>
<html>
<head>
<title>
Admin Page Finder
</title>
</head>
@TheYkk
TheYkk / Vagrantfile
Created January 18, 2019 12:01
My kali linux settings
# -*- 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