Skip to content

Instantly share code, notes, and snippets.

View asilbalaban's full-sized avatar

Asil Balaban asilbalaban

View GitHub Profile
@asilbalaban
asilbalaban / dummy.html
Created May 4, 2014 13:45
Wordpress Theme Dummy HTML Markup
<h1>This is the H1 Heading</h1>
<p>Above this paragraph should be the H1 heading for your web page. If it is not visible, the design settings for the H1 tag is set to <code>display:none</code> which many WordPress Themes use to hide the blog title text and replace it with a graphic. Do not use H1 within your blog post area.</p>
<p>If the design in the H1 heading looks like your blog title or blog post title, then that is the style set for that HTML tag and you should not use it within your blog post area.</p>
<p>Inside of this test data section are most of the basic HTML and XHTML and CSS styles that you might use within your WordPress Theme. You need to know what that will look like as part of structuring your styles.</p>
<h2>This is the H2 Heading</h2>
<p>Above this paragraph should be the H2 heading for your web page. WordPress Themes use the h2 heading for various purposes. Logically, it should be either the post title or the first heading in the post content.</p>
<p>However, it is used all over WordPres
@asilbalaban
asilbalaban / run.sh
Created July 17, 2023 06:44
run python script if not running
#!/bin/bash
if ps aux | grep script.py | grep -v grep > /dev/null
then
echo "The script is running."
else
echo "The script is not running."
/usr/bin/python3 ~/teklif-botu/script.py
fi
@asilbalaban
asilbalaban / php-dev-env.md
Last active May 18, 2023 06:35
Yosemite icin mukemmel gelistirme ve test ortami

Yosemite icin mukemmel gelistirme ve test ortami

Bu rehber OSX yosemite icin kolayca Apache, MySQL, PHP & Virtual host kurulumu yapmaniz icin hazirlanmistir.

UYARI: Asagidaki rehber boyunca bilgisayarinizin dosya sistemine mudahale edeceksiniz. Eger ne yaptiginizi bilmiyorsaniz bu sizin bilgisayariniza zarar verebilir, veri kaybina zarar verebilir. Bu rehberi uygulamadan once Time Machine yedegi aldiginizdan emin olun.

-2. Xcode Command Line Tools

Eger sisteminizde yoksa ilk is bu paketi kurarak basliyoruz.

xcode-select --install

@asilbalaban
asilbalaban / restart-bluetooth.sh
Created March 29, 2023 13:43
Ubuntu Bluetooth Connectivity Issues Fixer
#!/bin/bash
systemctl stop bluetooth
hciconfig hci0 down
rmmod btusb
modprobe btusb
hciconfig hci0 up
systemctl start bluetooth
import requests
import bcrypt
"""
pip3 install bcrypt
"""
def getSalt(email):
url = "https://api.sorare.com/api/v1/users/" + email
response = requests.get(url)
import keyboard
import time
import random
prompt = str(input('Bir kavram girin: '))
if prompt == '':
prompt = "reglan arm cycling jersey design in bright green, yellow, blue, red, grey, white, black, purple, vivid colors, sharp, realistic, ultra detailed, 8k"
prompt = "cycling jersey design in pastel colors, sharp, realistic, ultra detailed, 8k"
@asilbalaban
asilbalaban / setup.md
Last active October 3, 2022 11:59
create-desktop-server

sudo apt update sudo apt upgrade sudo apt install tasksel sudo apt install ubuntu-desktop sudo apt install lightdm sudo reboot

sudo apt-get install xrdp systemctl enable xrdp sudo ufw allow 3389/tcp

@asilbalaban
asilbalaban / jordanred_export.jsx
Created September 15, 2022 11:05
Custom export script for Adobe Illustrator
// 3D sunum için export scripti
var document = app.activeDocument;
var exportOptions = new ExportOptionsJPEG();
exportOptions.artBoardClipping = true;
exportOptions.antiAliasing = true;
exportOptions.qualitySetting = 100;
scaleTo = 24.91
@asilbalaban
asilbalaban / ubuntu-php-dev-env.md
Last active August 26, 2022 23:35
Ubuntu 12.04 LTS 64bit sürümü ile PHP Geliştirme Ortamı Kurulum Rehberi Bu gist php geliştirme ortamı kurulum rehberidir.Temiz bir Ubuntu 12.04 LTS 64bit kurulumundan sonra işlemler bu işlemler yapılmış ve herhangi bir sorunla karşılaşılmamıştır.

Ubuntu 12.04 LTS 64bit sürümü ile PHP Geliştirme Ortamı Kurulum Rehberi

Bu gist php geliştirme ortamı kurulum rehberidir. Temiz bir Ubuntu 12.04 LTS 64bit kurulumundan sonra işlemler bu işlemler yapılmış ve herhangi bir sorunla karşılaşılmamıştır.

@asilbalaban
asilbalaban / postgre-reset-auto-increment.sql
Created August 23, 2022 13:27
postgre-reset-auto-increment.sql
SELECT SETVAL(pg_get_serial_sequence('price_ranges', 'id'), (SELECT MAX(id) FROM price_ranges));