Skip to content

Instantly share code, notes, and snippets.

View mertcangokgoz's full-sized avatar
👋
Hi

Mertcan GÖKGÖZ mertcangokgoz

👋
Hi
View GitHub Profile
function rm(a) {
var p = document.getElementById(a);
imgtag = "";
ifrtag = "";
ifrsrc = "";
ifrtb = -1;
img = p.getElementsByTagName("img");
ifr = p.getElementsByTagName("iframe");
for (var i = 0; i < ifr.length; i++) {
ifrsrc = ifr[i].src;
**LOG_DETAIL** retrieved from /usr/local/lsws/phpbuild/buildphp_1547140176.3.log
==============================================
Start building PHP 7.2.12 with LSAPI
==============================================
Thu Jan 10 18:11:23 CET 2019
Changing to build directory /usr/local/lsws/phpbuild/php-7.2.12
Configuring PHP build (2-3 minutes)
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'feed_links', 2);
remove_action('wp_head', 'feed_links_extra', 3);
remove_action('wp_head', 'index_rel_link');
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'start_post_rel_link', 10, 0);
remove_action('wp_head', 'parent_post_rel_link', 10, 0);
remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0);
remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
import sys
def mod(sayilar):
try:
en_yuksek = 0
for s in sayilar:
if sayilar.count(s) > sayilar.count(en_yuksek):
en_yuksek = s
return en_yuksek
from bs4 import BeautifulSoup
from urllib.request import urlopen, Request
def DolarParse():
pasteURL = "http://tr.investing.com/currencies/usd-try"
data = urlopen(Request(pasteURL, headers={'User-Agent': 'Mozilla'})).read()
parse = BeautifulSoup(data)
for dolar in parse.find_all('span', id="last_last"):
liste = list(dolar)
<script>
function go() {
window.frames[0].document.body.innerHTML = '<form target="_parent" method="post" action="http://www.whatismyreferer.com"></form>';
window.frames[0].document.forms[0].submit()
}
</script>
<iframe onload="window.setTimeout('go()', 99)" src="about:blank" style="visibility:hidden"></iframe>
#! /bin/bash
#Check root
if [ $(id -u) != "0" ];
then
echo "Needs to be run by a user with root privilege."
exit 1
fi
# Check debian packages manager
#!/bin/sh
#
# Author Mertcan GOKGOZ - 2016
# Bir sistemdeki tüm yazicilar icin cupsenable komutunun calıstirilmasi
set -e
YAZICILAR=`lpstat -p | grep printer | grep -v enable | awk '{print $2}' | sed '/^$/d'`
if [ "x$YAZICILAR" != "x" ]; then
for yaziciadi in $YAZICILAR; do
#!/bin/bash
function try()
{
[[ $- = *e* ]]; SAVED_OPT_E=$?
set +e
}
function throw()
{
function ajaxGet(url, callback) {
$.support.cors = true;
$.ajax({
type: 'GET',
url: url,
dataType: 'json',
crossDomain: true,
success: function (data) {
callback(data);
}