Skip to content

Instantly share code, notes, and snippets.

@erayalakese
erayalakese / gist:7acbeb5e95cb02d0be26
Last active Aug 29, 2015
Bir CentOS sunucuda ihtiyaç duyduğum yedekleri alması için bir çırpıda yazdığım bash script
View gist:7acbeb5e95cb02d0be26
#!/bin/bash
# gerekli paketleri kontrol et ve kur
if ! rpm -qa | grep -qw tar; then
yum -y install tar
fi
if rpm -qa | grep -qw mysql; then
# mysql yüklü, yedekle
mysqldump -uroot -p --all-databases > mysqlbackup.sql
echo "MySQL YEDEKLEME TAMAM"
View r-debug.php
<?php
/*
Plugin Name: R Debug
Description: Set of dump helpers for debug.
Author: Andrey "Rarst" Savchenko
Author URI: http://www.rarst.net/
License: MIT
*/
/**
View Contract Killer 3.md

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@erayalakese
erayalakese / .editorconfig
Created May 22, 2016
EditorConfig for npm packages
View .editorconfig
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
[*.js]
charset = utf-8
max_line_length = 80
indent_style = space
indent_size = 2
@erayalakese
erayalakese / GitHousekeeping.md
Last active Aug 22, 2018
Git Repository House Keeping
View GitHousekeeping.md

Remove all merged (into master) remote branches First run with --dry-run and check if everything is OK

git branch -r --merged origin/master | 
grep origin | 
grep -v '>' | 
grep -v master | 
xargs -L1 | 
cut -d"/" -f2- | 
xargs git push origin --dry-run --delete
@erayalakese
erayalakese / README.md
Last active Mar 16, 2019 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications
View README.md


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


View sanfrancisco-font.css
/**
* http://applemusic.tumblr.com/
* https://jsfiddle.net/xq56dmrh/
*/
/** Ultra Light */
@font-face {
font-family: "San Francisco";
font-weight: 100;
src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff");