Skip to content

Instantly share code, notes, and snippets.

View je8n's full-sized avatar
🏠
Working from home

Serkan Özdemir je8n

🏠
Working from home
View GitHub Profile
@je8n
je8n / instagram-followers-following-matches
Created November 19, 2022 17:25
pc > instagram > account > settings >> download your data with json... this gist save php file and open. following json and followers json choose after dump all contacts
<?php
if($_FILES["followers"]){
$followers_json = file_get_contents($_FILES["followers"]["tmp_name"]);
$followers_json = json_decode($followers_json,true);
$following_json = file_get_contents($_FILES["following"]["tmp_name"]);
$following_json = json_decode($following_json,true);
{"Adana":{"Ağız, Diş ve Çene Cerrahisi":["ADANA FATMA KEMAL TİMUÇİN AĞIZ VE DİŞ SAĞLIĞI HASTANESİ","ADANA YÜREĞİR KARŞIYAKA AĞIZ VE DİŞ SAĞLIĞI HASTANESİ"],"Aile Hekimliği":["ADANA ALADAĞ İLÇE DEVLET HASTANESİ","ADANA CEYHAN DEVLET HASTANESİ","ADANA DR. EKREM TOK RUH SAĞLIĞI VE HASTALIKLARI HASTANESİ","ADANA İMAMOĞLU DEVLET HASTANESİ","ADANA KARAİSALI DEVLET HASTANESİ","ADANA KOZAN DEVLET HASTANESİ","ADANA SEYHAN DEVLET HASTANESİ","ADANA ŞEHİR HASTANESİ","ADANA TUFANBEYLİ DEVLET HASTANESİ","ADANA YÜREĞİR DEVLET HASTANESİ"],"Algoloji":["ADANA ŞEHİR HASTANESİ"],"Amatem (Alkol ve Madde Bağımlılığı)":["ADANA DR. EKREM TOK RUH SAĞLIĞI VE HASTALIKLARI HASTANESİ"],"Anesteziyoloji ve Reanimasyon":["ADANA CEYHAN DEVLET HASTANESİ","ADANA ÇUKUROVA DEVLET HASTANESİ","ADANA DR. EKREM TOK RUH SAĞLIĞI VE HASTALIKLARI HASTANESİ","ADANA FATMA KEMAL TİMUÇİN AĞIZ VE DİŞ SAĞLIĞI HASTANESİ","ADANA İMAMOĞLU DEVLET HASTANESİ","ADANA KARAİSALI DEVLET HASTANESİ","ADANA KOZAN DEVLET HASTANESİ","ADANA SEYHAN DEVLET HASTANESİ","ADANA TU
@je8n
je8n / gist:61f2bff129c979465c3002f27fe2f8c8
Created January 22, 2019 13:39
CKEditor5 Image Upload.php
//php
if(isset($_FILES["upload"])){
$ext = ".".end((explode(".", $_FILES["upload"]["name"])));
$filename="test";
$file_public_addr =yourlocaladdr.$filename.$ext;
$success=move_uploaded_file($_FILES["upload"]["tmp_name"],SYS_EXT.$file_public_addr);
if( $success){
$json["uploaded"]=true;
<?php
class jsonaddModel
{
private $arr;
public function __construct(){
$this->arr=[];
}
public function add($key,$value){
$tmp=$this->arr;
@je8n
je8n / gist:d67264be688da8b34af66edcf18d7860
Last active January 18, 2019 16:57
DatabaseModel.php
<?php
/*
.
$dbmodel=new DatabaseModel;
$this->db=$dbmodel->connect();
insert
$result=$this->db->insert("etkinlik")->add("baslik","baslik")->add("icerik","icerik")->add("seo","seo-adresi")->exec();
<html>
<head>
<script src="https://api-maps.yandex.ru/2.1/?lang=tr_TR" type="text/javascript"></script>
</head>
<body>
<div id="map" style="width: 100%; height: 850px; border:0px; margin:-9px;"></div>
<script type="text/javascript">
ymaps.ready(function () {
var myMap = new ymaps.Map('map', {center: [38.873928, 35.397949],zoom: 7}),
### Serkan Özdemir
### 30.07.2018
### Kullanım;
### <script> //<remoteipadress>/<sharedfoldername> <linuxmountfolder> <username> <password>
### sh ./mountwindir.sh //10.10.10.10/sharedfolder /mnt/test <username> <password>
### Eğer şifre girilmez ise soracaktır. If password not entered, asked next steps.
#!/bin/bash
remote=$1
local=$2
mount -t cifs //<windowsip>/<windowssharedfoldername> /<mountingpathinlinux> -o username=<hostname>/<username> -o password=<password>
mount -t cifs //10.10.10.10/test /mnt/windir -o username=workgroup/admin -o password=1234asd-
@je8n
je8n / drive-format-ubuntu.md
Created July 23, 2018 13:54 — forked from keithmorris/drive-format-ubuntu.md
Partition, format, and mount a drive on Ubuntu
@je8n
je8n / importsqlindir.sh
Created July 20, 2018 20:54
linux foreach import several sql files in folder with mysql terminal
#query: mysql-u[username] -p[password] -e [query]
for SQL in *.sql; do DB=${SQL/\.sql/}; echo importing $DB; mysql -uroot -p -e "create database $DB"; done
# first create filenames database
for SQL in *.sql; do DB=${SQL/\.sql/}; echo importing $DB; mysql -uroot -p $DB < $SQL; done
#import file to filename database