Skip to content

Instantly share code, notes, and snippets.

View cagatayldzz's full-sized avatar
😎

Çağatay cagatayldzz

😎
View GitHub Profile
@cagatayldzz
cagatayldzz / PhoneList.ts
Last active January 10, 2024 08:55
React Phone List
export interface IPhoneList {
phoneCode: string;
pattern?: string;
name: string;
code: string;
}
export const PhoneList: IPhoneList[] = [
{
pattern: '### ### ###',
@cagatayldzz
cagatayldzz / packages.conf
Last active October 8, 2023 14:21
laragon-packages
## https://windows.php.net/downloads/releases/archives/
php-5.6=https://windows.php.net/downloads/releases/archives/php-5.6.40-Win32-VC11-x64.zip
*php-7.4=https://windows.php.net/downloads/releases/archives/php-7.4.22-Win32-VC15-x64.zip
php-8.0=https://windows.php.net/downloads/releases/archives/php-8.0.12-Win32-vs16-x64.zip
## https://www.apachelounge.com/download/VC15/
apache-vc11=https://cdn-w1.gitlab.io/s-1/2021/11/19/httpd-2.4.38-win64-VC11.zip
*apache-vc15=https://cdn-w1.gitlab.io/s-1/2020/11/11/httpd-2.4.46-win64-VC15.zip
apache-vc16=https://cdn-w1.gitlab.io/s-1/2021/11/19/httpd-2.4.51-win64-VS16.zip
@cagatayldzz
cagatayldzz / install.sh
Created July 7, 2018 13:35
cloud9 > php 7.1 install
#!/bin/bash
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update -y
sudo apt-get install php7.1-curl php7.1-cli php7.1-dev php7.1-gd php7.1-intl php7.1-mcrypt php7.1-json php7.1-mysql php7.1-opcache php7.1-bcmath php7.1-mbstring php7.1-soap php7.1-xml php7.1-zip -y
sudo apt-get remove libapache2-mod-php5 -y
sudo apt-get install libapache2-mod-php7.1 -y
@cagatayldzz
cagatayldzz / function.js
Created February 22, 2018 19:43
Url İle Resim Optimizasyonu #2
function getUrl(width, url) {
return 'https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy'
+ '?container=focus'
+ '&resize_w=' + width
+ '&url=' + url
;
}
getUrl(250, 'http://www.ornek.com/resim.png');
@cagatayldzz
cagatayldzz / url.html
Last active February 22, 2018 19:42
Url İle Resim Optimizasyonu #1
<img src="https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy?container=focus&resize_w=150&url=https://siteniz.com/resim.png">
var timer = setInterval(general,1000);
function general(){
if(document.getElementsByClassName("app-wrapper-main")[0] != null){
var item2 = document.getElementsByClassName("pane-header pane-list-header")[0];
var panel = document.getElementsByClassName("chatlist-panel")[0];
var element = item2.cloneNode(true);
element.style.zIndex = 0;
element.innerHTML = "<input type='text' id='mensaje' placeholder='Bir mesaj yazın' style='border-radius: 5px;border: 1px solid #dedede;padding: 1em;width: 100%;height: 11px;' size='30'><input type='number' min='1' id='repeticiones' style='margin-right:5px;margin-left: 7px;width: 23%;border-radius: 5px;border: 1px solid #dedede;padding: 1em;height: 11px;'><div id='spam' data-icon=\"send\" class=\"img icon icon-send\" style='margin-left: 5px;cursor:pointer;'><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path opacity=\".4\" d=\"M1.101 21.757L23.8 12.028 1.101 2.3l.011 7.9
@cagatayldzz
cagatayldzz / php7.txt
Created May 1, 2017 14:51
cloud9 php7 install
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update -y
sudo apt-get install php7.0-curl php7.0-dev php7.0-gd php7.0-zip php7.0-intl php7.0-mcrypt php7.0-json php7.0-mysql php7.0-opcache php7.0-bcmath php7.0-mbstring php7.0-soap php7.0-xml
sudo apt-get install libapache2-mod-php7.0 -y
sudo a2dismod php5
sudo a2enmod php7.0