Skip to content

Instantly share code, notes, and snippets.

View Kwadz's full-sized avatar

Richard Kwadz

  • Malta
View GitHub Profile
@Kwadz
Kwadz / gist:8303780
Created January 7, 2014 18:08
FOSCommentBundle AJAX response
<div class="fos_comment_comment_form_holder">
<h3>Ajouter un commentaire</h3>
<form class="fos_comment_comment_new_form" action="http://sdz.local/web/app_dev.php/api/threads/foooo/comments" data-parent="" method="POST">
<div class="fos_comment_form_errors">
</div>
<textarea id="fos_comment_comment_body" name="fos_comment_comment[body]" required="required"></textarea>
@Kwadz
Kwadz / pom.xml
Created July 29, 2017 07:20
Configuration that should not hint "call pointcut designator is not supported by Spring"
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.richard</groupId>
<artifactId>myapp</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<spring.version>4.3.4.RELEASE</spring.version>
<aspectj.version>1.8.4</aspectj.version>
<maven.compiler.source>1.8</maven.compiler.source>
@Kwadz
Kwadz / reflect.py
Created December 8, 2017 10:42 — forked from 1kastner/reflect.py
A simple echo server to inspect http web requests
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from http.server import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
@Kwadz
Kwadz / it-ebooks.md
Created February 5, 2021 23:20 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want
@Kwadz
Kwadz / docker-ps-vertical
Last active June 7, 2021 07:31 — forked from wzulfikar/docker-ps-vertical
vertical format for docker ps
export FORMAT="ID\t{{.ID}}\nNAME\t{{.Names}}\nIMAGE\t{{.Image}}\nPORTS\t{{.Ports}}\nCOMMAND\t{{.Command}}\nCREATED\t{{.CreatedAt}}\nSTATUS\t{{.Status}}\n"
// usage:
docker ps --format $FORMAT