Skip to content

Instantly share code, notes, and snippets.

View behram's full-sized avatar
🎧
Focusing

Behram ÇELEN behram

🎧
Focusing
View GitHub Profile
cat var/logs/dev.log | grep "Translation not found." | grep messages | cut -c 23- | sort | uniq > translation.txt
#!/bin/bash
shopt -s nullglob
selectedDir=$1
for f in $selectedDir/*.json
do
cat $f | json_pp >> $f
echo "Format file - $f"
done
echo "Successful\n"
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListView;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
# This is the main configuration file for the application.
# ~~~~~
# Secret key
# ~~~~~
# The secret key is used to secure cryptographics functions.
# If you deploy your application to several instances be sure to use the same key!
application.secret="px0]0dem/Ahb<=RUpdx8J2FGJMTDn^uIEkm_^3jy:PxhG@W>[slVT;;XwfleWgPJ"
# The application languages
<?php
function generateRandomString($length = 10) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyz';
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, $charactersLength - 1)];
}
return $randomString;
#!/usr/bin/env bash
rm -rf baboon/
git clone git@github.com:behram/baboon.git &&
cd baboon/ &&
cp app/config/parameters.yml.dist app/config/parameters.yml &&
composer install --no-interaction --prefer-dist &&
php bin/console assetic:dump --env=prod &&
php bin/console baboon:setup:sandbox --env=prod &&
cd .. &&
rm -rf sandbox.zip &&
#!/usr/bin/env bash
if [ $1 ]
then
unzip sandbox.zip -d ../box/$1 &&
shopt -s dotglob &&
mv ../box/$1/baboon/* ../box/$1/ &&
rm -rf ../box/$1/baboon/
fi
# Path to your oh-my-zsh installation.
export ZSH=/Users/behram/.oh-my-zsh
export HOMEBREW_GITHUB_API_TOKEN="94b2ee4de8a6f8b2db393b70e9ce066e3f58d94a"
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export PATH="$(brew --prefix homebrew/php/php71)/bin:$PATH"
export VISUAL="nano"
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
from sets import Set
logfile = open('./prod.log').readlines();
uniqueLogs = Set();
for line in logfile:
uniqueLogs.add(line[22:]);
for line in uniqueLogs:
print line;
{{ form_stylesheet(meetingInviteForm) }}
<div class="panel panel-default">
<div class="row">
{% if step.status == stepStatus('ACTIVE') and permissionCheck().isGrantedForStep(step) %}
<div class="col-sm-12 well">
<h5 class="text-center">
Toplantı Davetlisi Ekle
</h5>
<div class="row">
{{ form_start(meetingInviteForm) }}