Skip to content

Instantly share code, notes, and snippets.

View Ardakilic's full-sized avatar

Arda Kılıçdağı Ardakilic

View GitHub Profile
@Ardakilic
Ardakilic / firmware.md
Last active March 6, 2024 08:02
Domo Macropad birleştirme ve firmware kurulum dökümanı

Pro Micro'ya Firmware Yüklemek

Öncelikle QMK Firmware'i bilgisayarınıza kurmalısınız. Ben Linux ve macOS'te nasıl kurduğumu anlatayım:

cd $HOME
git clone --recurse-submodules [email protected]:qmk/qmk_firmware.git
cd qmk_firmware
make git-submodule
@eser
eser / .bash_profile
Last active November 19, 2018 20:41
.bash_profile
# colors
CHAR_ARROW="\xEE\x82\xB0" # ""
COLOR_RESET="\033[m"
COLOR_WHITE_ON_BLACK="\033[38;5;15m\033[48;5;0m"
COLOR_BLACK_ON_TRANSPARENT="\033[38;5;0m\033[49m"
COLOR_BLACK_ON_GRAY="\033[38;5;0m\033[48;5;237m"
COLOR_WHITE_ON_GRAY="\033[38;5;15m\033[48;5;237m"
COLOR_GRAY_ON_TRANSPARENT="\033[38;5;237m\033[49m"
@holmberd
holmberd / php-pools.md
Last active September 25, 2024 05:44
Adjusting child processes for PHP-FPM (Nginx)

Adjusting child processes for PHP-FPM (Nginx)

When setting these options consider the following:

  • How long is your average request?
  • What is the maximum number of simultaneous visitors the site(s) get?
  • How much memory on average does each child process consume?

Determine if the max_children limit has been reached.

  • sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
@fearphage
fearphage / .gitconfig
Last active November 26, 2018 15:13
When you need to save the code before you save yourself, git fire.
[alias]
fire = !"f() { \
local current_branch=$(basename \"$(git symbolic-ref HEAD)\"); \
local new_branch=fire-${current_branch}-$(git config user.email)-$(date +%s) \
local message; \
if [ -z \"$1\" ]; then \
message=\"fire commit from $current_branch\"; \
else \
message=\"$*\"; \
fi; \
@hidonet
hidonet / magento.stpl
Last active September 23, 2019 12:22
vestacp magento nginx template
# Template Updated At 2019-04-17
upstream php_backend_%domain_idn%_%web_ssl_port% {
server %backend_lsnr%;
#server %backend_lsnr% backup;
}
server {
listen %ip%:%web_ssl_port%;
server_name %domain_idn% %alias_idn%;
@pixeline
pixeline / php_upgrade_to_71.sh
Last active March 16, 2023 16:49
Update Mac Os X's php version to php 7.1 using homebrew. Includes curl and mcrypt
# 1. Install brew --> http://brew.sh/
# 2. run the following commands in your Terminal
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew install --with-openssl curl
brew install --with-homebrew-curl --with-apache php71
brew install php71-mcrypt php71-imagick
# 3. Follow these instructions to make Apache and php-cli use the newer php executable and make the change persist after reboot.
brew info php71
@xero
xero / unix
Last active March 14, 2024 08:08
curl -L git.io.unix
,_ ,_==▄▂
, ▂▃▄▄▅▅▅▂▅¾. / /
▄▆<´ "»▓▓▓%\ / / / /
,▅7" ´>▓▓▓% / / > / >/%
▐¶▓ ,»▓▓¾´ /> %/%// / /
▓▃▅▅
@vluzrmos
vluzrmos / HasRandomStatementTrait.php
Last active May 12, 2016 21:06
Laravel Eloquent Agnostic Random Statement
<?php
trait HasRandomStatementTrait
{
/**
* Random Statements by driver name.
* @var array
*/
protected $randomStatements = [
'mysql' => 'RAND()',
@eser
eser / Markdown Extended.sublime-settings
Last active January 11, 2016 13:30
My Sublime Text 3 user configuration
{
"extensions":
[
"md"
],
"color_scheme": "Packages/Theme - Afterglow/Afterglow-markdown.tmTheme",
"draw_centered": true,
"draw_indent_guides": false,
"trim_trailing_white_space_on_save": false,
"word_wrap": true,
@gboudreau
gboudreau / install-ffmpeg-amazon-linux.sh
Last active August 2, 2024 19:25
How to compile ffmpeg on Amazon Linux (EC2)
#!/bin/sh
# Based on instructions found here: http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat#FFMpegInstallationonCentOSandRedHat-InstallX264
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
cat > /etc/yum.repos.d/centos.repo<<EOF