Skip to content

Instantly share code, notes, and snippets.

{
"ilceAd" : "Aricak",
"ilceAdTitle" : "Aricak",
"ilceAdSlug" : "aricak",
"Ilce" : "E",
"ilceKod" : 392,
"toplamSandik" : 10,
"acilanSandik" : 0,
"kalanSandik" : 10,
"acilanSandikOran" : 0,
# Default setup is given for MySQL with ruby1.8. If you're running Redmine
# with MySQL and ruby1.9, replace the adapter name with `mysql2`.
# Examples for PostgreSQL and SQLite3 can be found at the end.
production:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: ******
@s4l1h
s4l1h / gist:baeb0fb2252bf93317e1
Last active August 29, 2015 14:07
Linux yeni disk eklemek
####### fdisk İle Diskte partition oluşturalım #######
root@server:~# fdisk /dev/sdc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xddb8b91d.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
@s4l1h
s4l1h / testcookie.sh
Created December 30, 2014 00:56
Nginx + Test Cookie Module installer
export CFLAGS=-Wno-error
cd /root
apt-get -y install build-essential git libpcre++-dev zlibc zlib1g zlib1g-dev libssl-dev
git clone https://github.com/kyprizel/testcookie-nginx-module
wget http://nginx.org/download/nginx-1.6.2.tar.gz
tar -xvf nginx-1.6.2.tar.gz
cd /root/nginx-1.6.2/
./configure --add-module=/root/testcookie-nginx-module
make
@s4l1h
s4l1h / socketPost.js
Created January 16, 2015 01:35
socketPost.js
var net = require('net');
function HttpRequest(host, port, path, method) {
return {
headers: [],
port: 80,
path: "/",
method: "POST",
socket: null,
_setDefaultHeaders: function() {
@s4l1h
s4l1h / karabiner-import.sh
Created March 19, 2015 02:23
Apple olmayan klavye için ayarlar. Windows klavye ve hackingtosh kullananlara.
#!/bin/sh
cli=/Applications/Karabiner.app/Contents/Library/bin/karabiner
$cli set remap.find_winstyle_no_term 1
/bin/echo -n .
$cli set remap.optionL2commandL 1
/bin/echo -n .
$cli set remap.controlL2commandL 1
/bin/echo -n .
@s4l1h
s4l1h / setenv.GOPATH.plist
Created March 22, 2015 19:08
launchctl load -w /Library/LaunchDaemons/setenv.GOPATH.plist;launchctl load -w /Library/LaunchDaemons/setenv.GOROOT.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>setenv.GOPATH</string>
<key>ProgramArguments</key>
<array>
<string>/bin/launchctl</string>
<string>setenv</string>
pcm.!default {
type hw
card 1 #change to 0 to use HP, 1 HDMI
}
ctl.!default {
type hw
card 1 #change to 0 to use HP, 1 HDMI
}
[4249:4249:0423/210628:ERROR:process_singleton_linux.cc(983)] Failed to extract pid from path: /home/linaro/.config/chromium/SingletonLock
[4249:4249:0423/210629:ERROR:desktop_window_tree_host_x11.cc(1229)] Not implemented reached in void views::DesktopWindowTreeHostX11::MapWindow(ui::WindowShowState)
[4249:4249:0423/210630:ERROR:fullscreen_aura.cc(15)] Not implemented reached in bool IsFullScreenMode()
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
linaro@linaro-alip:~$ cat /etc/issue.net
Linaro 14.04
linaro@linaro-alip:~$ chromium-browser --version
@s4l1h
s4l1h / gist:301080bf31daf5202f70
Last active August 29, 2015 14:20
RASPBERRY PI ARCH
#!/bin/bash
# Packages required
# dosfstools parted
# Can be run on any Linux system
# loop.max_part=15 must be in kernel cmdline (cmdline.txt for rpi)
# then reboot
echo "creating image to fit on 2Gb card"
dd if=/dev/zero of=arch-rpi.img bs=1M count=1850