Skip to content

Instantly share code, notes, and snippets.

View halilim's full-sized avatar

Halil Özgür halilim

View GitHub Profile
@halilim
halilim / Ubuntu 13.10 Install (Windows Dual Boot).md
Last active March 18, 2017 16:57
Ubuntu 13.10 Install (Windows Dual Boot) - Some issues and how-to for installing

Notes

  • Replace “halil” with your username.
  • Work in progress.

GPU/Graphics Driver

Nvidia

@halilim
halilim / Testing & quality assurance - tools and the list of the things to test.md
Last active May 13, 2017 18:49
Testing & Q&A - tools and the list of the things to test

A list of things that can/should be tested, preferably before commit/receive.

General

Tools

@halilim
halilim / railsterminal.sh
Last active January 1, 2016 05:09
Gnome Terminals for Rails 3.2 and 4 - Modified from http://snipplr.com/view.php?codeview&id=32227
#!/bin/bash
# Rails Terminals for Rails 3.2/4 and Gnome
# A simple script that opens a Gnome terminal with titled tabs:
# 1. Rails Server
# 2. Spork
# 3. bash
# and opens the app in:
# 1. Sublime Text
# 2. Browser
@halilim
halilim / find_non_public_files.sh
Created February 12, 2014 08:18
Find non-public files (e.g. ini, yaml, log etc) that shouldn't be public.
find . -type f \( ! -name "*.php" -and ! -name "*.css" -and ! -name "*.js" -and ! -name "*.jpg" -and ! -name "*.png" -and ! -name "*.gif" \) -not -path "*/vendor/*"
@halilim
halilim / CentOS_searchd_initd.sh
Last active February 26, 2019 17:16
CentOS sphinx searchd service init.d template
#!/bin/bash
#
# chkconfig: 2345 95 20
# description: Sphinx searchd for example app.
# processname: searchd_example
SEARCHD=/usr/local/bin/searchd
CONF=/home/user/app/sphinx.conf
# Source function library.
@halilim
halilim / rails_admin.tr.yml
Last active September 28, 2019 10:17 — forked from paracycle/rails_admin.tr.yml
rails_admin tr locale
tr:
admin:
js:
true: Doğru
false: Yanlış
is_present: Mevcut
is_blank: Boş
date: Tarih ...
between_and_: ... ile ... arası
today: Bugün
@halilim
halilim / PostgreSQL 9.3-latest on Ubuntu 12.04.md
Created April 2, 2014 15:30
Install PostgreSQL 9.3/latest on Ubuntu 12.04
sudo nano /etc/apt/sources.list.d/pgdg.list
# - Add
# deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main
# - and save
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.3 libpq-dev
sudo nano /etc/postgresql/9.3/main/pg_hba.conf
@halilim
halilim / Nginx and Phusion Passenger on Ubuntu 12.04.md
Created April 3, 2014 08:12
Install Nginx and Phusion Passenger on Ubuntu 12.04

Nginx

sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx

@halilim
halilim / Solr Field Manual.md
Last active August 29, 2015 13:59
Solr Field Manual

Solr Field Manual

This is a specific setup for use with periodic MySQL import, but can be used as a general solution by excluding the irrelevant parts.

Legend

Code Description
<SOLR> E.g.: /var/lib/tomcat#/solr, /etc/solr, ...
<CORE> Core name
@halilim
halilim / Envoy.blade.php
Last active March 20, 2021 04:36
Sample Envoy tasks for a Laravel project. - http://laravel.com/docs/ssh - https://github.com/laravel/envoy
* -A in SSH enables agent forwarding.
* -p 2122 is not needed if you use the default port of 22.
* Replace SSH_USER and example.com with your own values.
* Example run: $ envoy run deploy_demo
* --no-scripts because Laravel composer.json's post-install-cmd includes optimize, which is already done by php artisan dump-autoload
@servers(['test' => '-A -p 2122 -l user test.example.com', 'prod' => '-A -p 2122 -l user example.com'])
@task('install_test', ['on' => ['test']])
cd project