Skip to content

Instantly share code, notes, and snippets.

View fatihturan's full-sized avatar
👨‍💻
¯\_(ツ)_/¯

Fatih Turan fatihturan

👨‍💻
¯\_(ツ)_/¯
View GitHub Profile
@sanrandry
sanrandry / nginx_sites-available_folder_not_found.md
Last active February 20, 2024 00:21
nginx sites-available folder not found

nginx sites-available folder not found

create the sites-available and sites-enabled folder

sudo mkdir /etc/nginx/sites-available
sudo mkdir /etc/nginx/sites-enabled

edit the http block inside /etc/nginx/nginx.conf and add this line

include /etc/nginx/sites-enabled/*;
@Justintime50
Justintime50 / reset-xcode-install.md
Last active February 14, 2024 17:17
Reset Your Xcode Installation on macOS

Reset your Xcode Install on macOS

Having troubles with Xcode or their Command Line Tools? Follow this guide to reset your Xcode instance on macOS and resolve issues such as "No Xcode or CLT version detected!"

1) Check if Xcode is installed

xcode-select -print-path
@NickChen14
NickChen14 / .gitlab-ci.yml
Last active July 15, 2021 11:55
CI/CD Godaddy Server
image: ubuntu:latest
cache:
paths:
# - vendor/
- .apt
- node_modules
deploy_godaddy:
stage: deploy
environment: Production
@itsdavidmorgan
itsdavidmorgan / basic-block-styles.css
Last active October 7, 2022 14:05
WordPress Gutenberg Basic Block Styles
/************************************************
Audio Blocks
************************************************/
.wp-block-audio {
margin-left: 0px;
margin-right: 0px;
}
.wp-block-audio audio {
width: 100%;
@miguelmota
miguelmota / process_names.txt
Last active March 4, 2024 22:20
macOS process whitelist
# not an exhaustive list
nsurlsessiond "icloud sync"
fseventsd "macos file system events"
WindowServer "macos windows"
DisplayLinkManager "macos driver"
configd "macos dynamic configuration"
displaypolicyd "macos process"
CommCenter "macos keychain"
kernel_task "macos kernel"
@lukecav
lukecav / DNS Prefetch domains
Last active March 30, 2024 20:53
WP Rocket - Advanced Options Prefetch DNS requests examples
//maps.googleapis.com
//maps.gstatic.com
//fonts.googleapis.com
//fonts.gstatic.com
//ajax.googleapis.com
//apis.google.com
//google-analytics.com
//www.google-analytics.com
//ssl.google-analytics.com
//youtube.com
@kyletaylored
kyletaylored / image.html
Created November 16, 2016 21:00
Jekyll: HD images with Retina.js
{% comment %}
We're splitting off the file extension in order to add "@2x"
if the image is retina ready, else use a regular image with "data-no-retina".
Image extension is assumed 3 characters. PNG, JPG, GIF (no JPEG).
{% endcomment %}
{% capture img_length %}{{ include.src | size | minus:4 }}{% endcapture%}
{% assign img_ext = include.src | slice: -4,4 %}
{% assign img_name = include.src | slice: 0,img_length %}
@djui
djui / Inbox-Fluid.js
Created October 6, 2015 12:26
User script for Google Inbox Fluid App to update the Badge and send notifications on new Emails
var gUnreadMails = new Set()
setInterval(checkUnread, 3000)
function checkUnread() {
updateBadge()
notify()
}
function updateBadge() {
@melvitax
melvitax / Process Android Assets
Last active January 8, 2018 10:55
AppleScript for organizing Android assets. To turn into a Service: In Automator, create a new Service for files in Finder and add this script. From the Finder select a group of files that have densitiy suffixes like "icon-hdpi.png" and "icon-mdpi.png" and run the script. The files will be organized into the appropiate drawable folders and renamed.
property sizeList : {"mdpi", "hdpi", "xhdpi", "xxhdpi", "xxxhdpi"}
property extensionList : {"jpg", "jpeg", "png"}
on run {input, parameters}
repeat with i from 1 to the count of input
set thisItem to item i of input
set itemInfo to info for thisItem
set fileName to name of itemInfo
@aladagemre
aladagemre / sehirler.html
Created November 10, 2014 17:50
Türkiye Şehir Listesi HTML Select Option
<select name="Sehir">
<option value="0">------</option>
<option value="1">Adana</option>
<option value="2">Adıyaman</option>
<option value="3">Afyonkarahisar</option>
<option value="4">Ağrı</option>
<option value="5">Amasya</option>
<option value="6">Ankara</option>
<option value="7">Antalya</option>
<option value="8">Artvin</option>