Skip to content

Instantly share code, notes, and snippets.

View anton-siardziuk's full-sized avatar

Anton Siardziuk anton-siardziuk

View GitHub Profile
@anton-siardziuk
anton-siardziuk / gist:28009a17abc03226fd73
Created February 11, 2015 20:29
npm output from strider npm install -g
root@ci:~/strider# npm install -g
npm WARN deprecated swig@0.14.0: v1.0.0 is a complete rewrite of Swig from the ground up. Previous versions are no longer supported
npm WARN engine npm@1.3.26: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.10.29","npm":"2.5.0"})
npm WARN optional dep failed, continuing fsevents@0.3.0
\
> bcrypt@0.8.1 install /usr/lib/node_modules/strider/node_modules/bcrypt
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.29"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/strider/node_modules/bcrypt/.node-gyp"
@anton-siardziuk
anton-siardziuk / npm-debug.log
Created February 11, 2015 20:24
strider npm-debug.log
This file has been truncated, but you can view the full file.
90045 silly gunzTarPerm extractEntry lib/source-map/source-node.js
90046 info postinstall cryptiles@0.2.2
90047 silly gunzTarPerm extractEntry test/is-iterable.js
90048 silly gunzTarPerm extractEntry test/string.js
90049 silly gunzTarPerm extractEntry test/is-iterable.js
90050 silly gunzTarPerm extractEntry test/string.js
90051 silly gunzTarPerm extractEntry node_modules/fstream-npm/node_modules/fstream-ignore/LICENSE
90052 silly gunzTarPerm extractEntry node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js
90053 silly gunzTarPerm extractEntry src/collection/reject.js
90054 silly gunzTarPerm extractEntry src/collection/size.js
class PostServiceController extends Controller
{
/**
* @Route("/delete/{postIs}")
* @Method("POST")
*/
public function deleteAction(Request $request, $postId)
{
if ($this->get('form.csrf_provider')->isCsrfTokenValid('post_delete', $request->get('token'))) {
class PostController extends Controller
{
/**
* @Route("/delete/{postId}")
* @Method("POST")
*/
public function deleteAction(Request $request, $postId)
{
$post = $this->getPostRepository()->findById($postId);
@anton-siardziuk
anton-siardziuk / backup.yml
Created May 23, 2014 10:26
ansible backup script example
---
- hosts: all
sudo: yes
vars:
- fs_snapshot_path: "/var/market-app-backup"
- tar_snapshot_file: "/var/market-app-backup.snap"
- s3_bucket_name: "my-backups"
- s3_prefix: "/project-name/"
- full_backup: "{{ version|int is divisibleby 10 }}"
- filename_date_part: "{{ansible_date_time.year}}{{ansible_date_time.month}}{{ansible_date_time.day}}{{ansible_date_time.hour}}{{ansible_date_time.minute}}{{ansible_date_time.second}}{{ansible_date_time.tz}}"