Skip to content

Instantly share code, notes, and snippets.

On Earth

Ömer Ufuk Efendioğlu ufukomer

On Earth
View GitHub Profile
ufukomer /
Last active Sep 15, 2017
Some shitty problems that occur while developing
View regexp.txt
[^] -> any character that is not in the empty set of characters
. -> any number of non-newline characters
(+, *, ?, and {}) -> Greedy
(+?, *?, ??, {}?) -> Nongreedy
\b -> word boundary
\w -> alpha numerical [A-Za-z0-9_]
\d -> number
\s -> single white space
ufukomer /
Last active Apr 18, 2019
Docker commands

Start/Remove all containers

$ docker stop $(docker ps -a -q)
$ docker rm $(docker ps -a -q)

Docker container ip

ufukomer / .block
Created Jul 27, 2016 — forked from mbostock/.block
Line Transition
View .block
license: gpl-3.0
ufukomer / webpackconfig.js
Created Apr 27, 2016
Webpack font loader pattern.
View webpackconfig.js
var config = {
entry: './app.js',
output: {
filename: 'bundle.js'
module: {
loaders: [{
test: /\.css$/,
loader: 'style!css?sourceMap'
}, {
View compass-font-files-example.scss
// 1. Put yout fonts in the compiled folder of your projec. Ex.:
// 2. To enable relative paths to assets via compass helper functions on config.rb uncomment relative_assets = true
// Import the Compass Font Face module
@import "compass/css3/font-face";
// regular
@include font-face('cabin',
'Cabin-Regular-webfont.woff', woff,
ufukomer / qbloomy
Last active Apr 17, 2017
Issues during the development.
View qbloomy
./mysql -u root -p
Change admin password of MySQL server:
UPDATE mysql.user SET Password=PASSWORD('root') WHERE User='root'; FLUSH PRIVILEGES;
ufukomer / gist:041bc8aa9303c8aa3e83
Created Dec 1, 2015
Sublime Text 2 - Useful Shortcuts
View gist:041bc8aa9303c8aa3e83

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.


Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+ insert line after

Clone respotory to your pc

$ git clone 'ssh clone url'


$ git add .
$ git commit -m "Your message"
$ git push -u origin master