Skip to content

Instantly share code, notes, and snippets.

@agborkowski
agborkowski / gitea_install.md
Last active March 16, 2018 13:52 — forked from appleboy/gitea_install.md
how to install gitea in Ubuntu/Debian.

Gitea

Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket or Gitlab. The initial development have been done on Gogs but we have forked it and named it Gitea. If you want to read more about the reasons why we have done that please read this blog post.

Run Gitea service

Download Gitea binary from download page first.

$ wget https://dl.gitea.io/gitea/1.4/gitea-1.4-linux-amd64 -O gitea
========= server schema.js
type Customer {
id: ID!
name: String
symbol: String
}
schema {
query: RootQuery
}
$csv = file_get_contents($from);
$csvRows = preg_split('/[\r\n]{1,2}(?=(?:[^\"]*\"[^\"]*\")*(?![^\"]*\"))/', $csv); #split csvRows properly
$data = array();
//domain//group//url
echo "Start importing data {$from}";
$head = str_getcsv(array_shift($csvRows), ',');
print_r($head);
@agborkowski
agborkowski / zsh.md
Last active August 29, 2015 14:14 — forked from tsabat/zsh.md
@agborkowski
agborkowski / README.md
Last active August 29, 2015 14:08 — forked from dtinth/README.md

iPhotoLocation

Exports the locations of photos in a photo album as JSON data...

osascript -l JavaScript iPhotoLocation.js "NAIST Internship"
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.1.*",
"way/generators": "dev-master",
"cartalyst/sentry": "2.0.*",
"jasonlewis/basset": "dev-master",
<?php
/**
* Lithium REST routes
* @author AgBorkowski <[email protected]> http://blog.aeonmedia.eu
* @see http://book.cakephp.org/view/1239/The-Simple-Setup
* @see http://www.sencha.com/learn/Manual:RESTful_Web_Services#HTTP_Status_Codes
* Method-----URL------------------Controller action invoked
* GET......./recipes..............RecipesController::index()
* GET......./recipes/index........RecipesController::index()
*
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.sphinxsearch.searchd</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
@agborkowski
agborkowski / tree.php
Created February 11, 2014 11:56 — forked from mdsahib/tree.php
<?php
//error_reporting (0);
$arr = array
(
0=> array
(
'id' => 1,
'parent' => 0,
'status' => 2,
'slug' => 'clothes',
@agborkowski
agborkowski / update.sh
Created January 29, 2014 04:02
#ci #li3 #g11n #internationalization app done !
#/project/migrations/update.sh
# Search msgid in entire project and export to template
# 1) execute algoritm delivered by framework
cd ../app && li3 g11n extract & sleep 2 && echo & sleep 2 && echo & sleep 2 && echo & sleep 2 && echo & sleep 2 && echo & sleep 2 && echo && sleep 2 && echo && sleep2
echo '# Sync msgid with msgid template :'
echo '# 1) check exists msgid'
echo '# 2) if not exists create new'
echo '# 3) find similars msgid'
echo '# 4) mark rest as unused'
php -f sync_pot_msgid.php