Skip to content

Instantly share code, notes, and snippets.

View seyyah's full-sized avatar

seyyah seyyah

  • Researcher
  • Turkey
View GitHub Profile
@seyyah
seyyah / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@seyyah
seyyah / my.cnf
Last active August 29, 2015 14:09 — forked from roktas/my.cnf
[mysqld]
# ----------------------------------------------------------------------
# UTF-8 temiz bir mysql için ilgili yapılandırma
# ----------------------------------------------------------------------
init_connect=’SET collation_connection = utf8_general_ci’
init_connect=’SET NAMES utf8′
character-set-server=utf8
collation-server=utf8_general_ci
td= truncate(period.program.name, length: 30)
td= truncate(period.name, length: 47)
td= period.code
td
- if can? :read, Student
= link_to "Öğrenciler", students_admin_period_path(period)
span |
= link_to (t "general.show"), [:admin, period]
- if can? :update, Period
span |

Intro

The plan is to create a pair of executables (ngrok and ngrokd) that are connected with a self-signed SSL cert. Since the client and server executables are paired, you won't be able to use any other ngrok to connect to this ngrokd, and vice versa.

DNS

Add two DNS records: one for the base domain and one for the wildcard domain. For example, if your base domain is domain.com, you'll need a record for that and for *.domain.com.

Different Operating Systems

syntax on
" paragraph reformating
imap <F6> <esc>{!}par<enter><insert>
map <F6> {!}par<enter>
" rest
" @h ardından "=","-", yaz
let @h = "yypVr"
#!/usr/bin/env python
"""\
pdfnot input.pdf output.pdf bos.pdf
input'un her sayfasinin ardina bos'u ekleyerek output'u elde et
"""
import sys
import os
from pyPdf import PdfFileWriter, PdfFileReader
#!/usr/bin/env python
"""\
pdfnot input.pdf output.pdf bos.pdf
input'un her sayfasinin ardina bos'u ekleyerek output'u elde et
"""
import sys
import os
from pyPdf import PdfFileWriter, PdfFileReader
syntax on
" paragraph reformating
imap <F6> <esc>{!}par<enter><insert>
map <F6> {!}par<enter>
" rest
" @h ardından "=","-", yaz
let @h = "yypVr"
syntax on
" paragraph reformating
imap <F6> <esc>{!}par<enter><insert>
map <F6> {!}par<enter>
" rest
" @h ardından "=","-", yaz
let @h = "yypVr"
syntax on
" paragraph reformating
imap <F6> <esc>{!}par<enter><insert>
map <F6> {!}par<enter>
" rest
" @h ardından "=","-", yaz
let @h = "yypVr"