Skip to content

Instantly share code, notes, and snippets.

View sebby's full-sized avatar
🏠
Working from home

Sébastien Cunin sebby

🏠
Working from home
View GitHub Profile
@sebby
sebby / .zshrc
Created September 30, 2023 05:21
My ZshRC
alias ll='exa --all --long --header --icons --git'
alias tree='exa --tree --icons -L=2'
alias v='fd --type f --hidden --exclude .git |fzf-tmux -p|xargs nvim'
@sebby
sebby / tmux.conf
Last active September 30, 2023 05:24
Ma configuration tmux
unbind r
bind r source-file ~/.tmux.conf
set -g prefix C-s
## act like vim
set -g mode-keys vi
bind-key h select-pane -L
bind-key j select-pane -D
// Glacioclasm
dimwishlist:item=1030895163&perks=1687452232,1820235745,1427256713
dimwishlist:item=1030895163
// Eyasluna avec Headstone
dimwishlist:item=235827225&perks=124408337
// Avec Headstone
dimwishlist:perks=124408337
@sebby
sebby / drush-cheat-sheet.md
Last active September 27, 2021 14:32
Drush Cheat Sheet

if necessary uncompress tar gz file

$ tar -xzvf FILE.tar.gz  

drop a database

$ drush sql-drop
$ drush sql-cli < FILE.sql
@sebby
sebby / trans.html.twig
Last active April 19, 2022 06:00
Comment utiliser le filtre trans de Twig avec des placeholders. #twig #drupal
{#
@link https://www.drupal.org/node/2047135
This syntax is extremely complex to scan. This also requires the front-end developer to know about the @ ! % "Drupalism" prefix of placeholders and what each of them do.
#}
<p class="submitted">{{ "Submitted by !author on @date"|t({ '!author': author, '@date': date }) }}</p>
@sebby
sebby / example_theme_table.php
Last active April 5, 2019 13:36
example for Drupal 8
<?php
$content = array();
$content['container'] = ['#type'=>'fieldset','#title'=>'4ème bloc'];
$header = array('Cell 1', 'Cell 2');
$data = array(
array('A', 'B'),
array('C', 'D'),
array('E', 'F')
);
$content['container'][] = [
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
h5{
@sebby
sebby / Package Control.sublime-settings
Last active June 21, 2017 14:17
Settings sur mon ST3
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"AdvancedNewFile",
"AngularJS",
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[add your bin description]" />
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<select id="select1" multiple>
<option value="1">valeur 1</option>
@sebby
sebby / gist:9206226
Last active August 29, 2015 13:56
#drupal #patch
## Liste de patches Drupal/Module
Avoir la jquery 1.4 (drupal default) dans le module jQuery Update
https://drupal.org/node/1548028
(la rajouter dans le drush make de ZeeAgency