Skip to content

Instantly share code, notes, and snippets.

@ptsakyrellis
ptsakyrellis / monotchap.css
Last active November 19, 2020 15:55
Monokai theme for tchap.gouv.Fr. Use with Stylus or Stylish extension for firefox.
@-moz-document domain("www.tchap.gouv.fr") {
body {
font-family: 'Calibri' !important;
background-color: #272822;
}
.dark-panel {
background-color: #272822;
}
sf4ldap:
command: [--copy-service]
image: osixia/openldap:1.3.0
volumes:
- ./docker/ldap/sf4app.schema:/container/service/slapd/assets/config/bootstrap/schema/sf4app.schema
- ./docker/ldap/people.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/people.ldif
ports:
- "389:389"
- "636:636"
expose:
dn: ou=People,dc=sf4app,dc=org
ou: People
objectClass: organizationalUnit
dn: cn=user1,ou=People,dc=sf4app,dc=org
myadditionnalAttr2: Value2
myadditionnalAttr: Value1
sn: My User1
mail: user1@sf4app.org
cn: user1
sf4ldap:
image: osixia/openldap:1.3.0
ports:
- "389:389"
- "636:636"
expose:
- 389
- 636
environment:
- LDAP_ADMIN_PASSWORD=myadminpasswd
<?php
namespace MyApp\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
use Symfony\Component\Ldap\Entry;
use Symfony\Component\Ldap\Ldap;
class LdapUserFixtures extends Fixture
attributetype ( 2.25.128424792425578037463837247958458780603.1
NAME 'myadditionnalAttr'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
attributetype ( 2.25.128424792425578037463837247958458780603.2
NAME 'myadditionnalAttr2'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
sf4ldap:
command: [--copy-service]
image: osixia/openldap:1.3.0
volumes:
- ./docker/ldap/sf4app.schema:/container/service/slapd/assets/config/bootstrap/schema/sf4app.schema
ports:
- "389:389"
- "636:636"
expose:
- 389
@ptsakyrellis
ptsakyrellis / httpd-redmine.vhost
Last active May 7, 2018 19:22
Redmine httpd config file example for a named virtual host
<VirtualHost redmine.domaine.fr>
# Name virtual host à adapter
ServerName redmine.domaine.fr
DocumentRoot /appli/redmineXX/public
# Chemin vers mod_passenger
LoadModule passenger_module /usr/local/rvm/gems/ruby-2.3.3/gems/passenger-5.1.1/buildout/apache2/mod_passenger.so
# Configuration mod_passenger
<IfModule mod_passenger.c>
@ptsakyrellis
ptsakyrellis / config-nfs.yml
Created March 16, 2018 15:57
PuPHPet configuration file nfs section
sync_type: nfs #default
nfs:
mount_options: ['nfsvers=3','vers=3','actimeo=1','rsize=8192','wsize=8192','timeo=14','rw', 'vers=3', 'tcp']
linux__nfs_options: ['rw','no_subtree_check','all_squash','async']
@ptsakyrellis
ptsakyrellis / AppKernel.php
Created March 16, 2018 15:56
Symfony AppKernel cache and log directories change
<?php
public function getCacheDir()
{
if (in_array($this->environment, array('dev', 'test'))) {
return '/dev/shm/votre_appli/cache/' . $this->environment;
}
return parent::getCacheDir();
}