Skip to content

Instantly share code, notes, and snippets.

View unique1984's full-sized avatar
💭
I may be slow to respond.

Yasin KARABULAK unique1984

💭
I may be slow to respond.
View GitHub Profile
console.log("---> Running");
const curl = require("curl");
const jsdom = require("jsdom");
const url = "http://www.imdb.com/list/ls004489992/";
curl.get(url, null, (err,resp,body)=>{
if(resp.statusCode == 200){
parseData(body);
}
@unique1984
unique1984 / addSymfonySite.sh
Created April 1, 2019 23:09
Apache Symfony Application [add|rm] config
#!/usr/bin/env bash
#---------------------------------------------------------------------#
# addSymfonySite #
# #
# apache add Symfony site #
# #
# Script : addSymfonySite.sh #
# Version : 1.0.0 #
# Author : Yasin KARABULAK <yasinkarabulak@gmail.com> #
# Date : 2019-04-02 #
@unique1984
unique1984 / ufw_completion
Created April 2, 2019 22:20
UFW bash_completion from git@github.com:deleurme/ufw-completion.git
# vim: ft=sh
#
# ____
# __ __/ __/ __
# / / / / /_| | /| / /
# / /_/ / __/| |/ |/ /
# \__,_/_/ |__/|__/
#
#
_ufw() {
@unique1984
unique1984 / tokenize.php
Created April 22, 2019 23:14
Array unique from dataset
<?php
$data = [
[
'kuzey',
'kıbrıs',
'türk',
'cumhuriyetinde',
],
[
<?php
$start_first = time();
$username="admin";
$password="1234";
$pfsenseprot="http";
$pfsenseip="192.168.5.254";
$ckfile = tempnam ("./", "CURLCOOKIE");
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12");
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, FALSE);
@unique1984
unique1984 / generating_array.php
Last active August 20, 2019 15:21
JLPT Kanji - Unicode Ordered
<?php
/* After 2010
$n1 = array("亜", "阿", "哀", "葵", "茜", "握", "渥", "旭", "梓", "扱", "絢", "綾", "鮎", "案", "杏", "伊", "威", "尉", "惟", "慰", "為", "異", "維", "緯", "遺", "井", "亥", "郁", "磯", "壱", "逸", "稲", "芋", "允", "姻", "胤", "陰", "隠", "韻", "卯", "丑", "渦", "唄", "浦", "叡", "影", "瑛", "衛", "詠", "疫", "益", "悦", "謁", "閲", "宴", "援", "沿", "炎", "猿", "縁", "艶", "苑", "鉛", "於", "凹", "往", "応", "旺", "殴", "翁", "沖", "憶", "乙", "卸", "恩", "穏", "仮", "伽", "価", "佳", "嘉", "嫁", "寡", "暇", "架", "禍", "稼", "箇", "茄", "華", "霞", "蚊", "我", "芽", "賀", "雅", "餓", "塊", "壊", "怪", "悔", "懐", "戒", "拐", "魁", "凱", "劾", "慨", "概", "涯", "街", "該", "馨", "垣", "嚇", "拡", "核", "殻", "獲", "穫", "較", "郭", "閣", "隔", "岳", "潟", "喝", "括", "渇", "滑", "褐", "轄", "且", "叶", "樺", "株", "鎌", "茅", "刈", "侃", "冠", "勘", "勧", "喚", "堪", "寛", "幹", "憾", "敢", "棺", "款", "歓", "環", "監", "看", "緩", "肝", "艦", "莞", "貫", "還", "鑑", "閑", "陥", "巌", "眼", "頑", "企", "伎", "器", "基", "奇", "嬉", "岐", "忌", "揮", "旗", "既", "棋", "棄", "毅", "汽", "稀", "紀", "貴", "軌", "輝", "飢", "騎", "鬼", "亀", "偽", "儀", "宜", "戯", "
@unique1984
unique1984 / contents.html
Last active August 17, 2019 12:33
PHP Mailer Example
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- charset= -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>PHPMailer Test</title>
</head>
<body>
<div style="width: 640px; font-family: Arial, Helvetica, sans-serif; font-size: 11px;">
<h1>This is a test of PHPMailer.</h1>
@unique1984
unique1984 / getApacheLogs.sh
Created August 17, 2019 12:50
Web Sunucudan arşivlenmiş loglar dahil anahtar kelime ve domain ile arama
#!/usr/bin/env bash
if [ -z $1 ]; then
echo "Kullanım: getApacheLogs access [domain] [pattern]"
echo "Kullanım: getApacheLogs error [pattern]"
exit
fi
domain=$2
if [ -z $2 ]; then
@unique1984
unique1984 / files_and_folders.php
Last active August 19, 2019 01:00
File & Folder Functions
<?php
class klasor
{
private $say;
function __construct()
{
$this->say = 0;
}
@unique1984
unique1984 / debsury-bullseye.sh
Last active April 19, 2021 18:35
PHP 7.x için deb.sury.org paket yöneticisi yapılandırma.
#!/usr/bin/env bash
sudo bash -c 'echo "deb https://packages.sury.org/php/ bullseye main" >> /etc/apt/sources.list.d/debsury.list'
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sudo apt update