Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Jérôme Lanteri jerome-diver

View GitHub Profile
View .vimrc
set t_Co=256
syntax spell toplevel
set spellfile=~.vim/spell/fr.utf-8.add
set spell spelllang=fr
set nospell
set filetype=on
set mouse+=a
if &term =~ "^screen"
set ttymouse=xterm2
endif
@jerome-diver
jerome-diver / config.php
Created Dec 28, 2018
nginx-passenger with nextcloud-14 (nextcloud faile to print app/files after login with a loop)
View config.php
<?php
$CONFIG = array (
'instanceid' => '[private]',
'passwordsalt' => '[private]',
'secret' => '[private]',
'trusted_domains' =>
array (
0 => 'cloud.my_domain.tk',
),
'datadirectory' => '/usr/local/www/nextcloud/data',
View gist:a66ace397d288f0cb8b59145c9dee0db
### Keybase proof
I hereby claim:
* I am jerome-diver on github.
* I am jeromelanteri (https://keybase.io/jeromelanteri) on keybase.
* I have a public key ASByejrcNS0D_xOeAlq8zELShbrI1340wmn9_a99SDlevwo
To claim this, I am signing this object:
@jerome-diver
jerome-diver / Install.pm6
Last active Jul 31, 2017
Hash and Associative Hash definition and argument functions...
View Install.pm6
#----Install.pm6----
unit module Install;
use Prompt::Gruff::Export;
use Git::Wrapper;
use Check;
use Datas;
my %q = "select_groups" => "Select some groups of repos you want to install ?",
"select_repos" => "Select some repos to install: ",
"select_group" => "Choose a group from where you will install some repos: ";
@jerome-diver
jerome-diver / .tmux.conf
Created Jul 31, 2017
config include mouse grab actions for vim and tmux together with powerline features for zshrc and airline for vim
View .tmux.conf
source /usr/lib/python3.6/site-packages/powerline/bindings/tmux/powerline_tmux_2.1_plus.conf
set -g prefix C-b
set -g default-terminal "tmux-256color"
set -g history-limit 1000
set -g mouse on
set -g set-titles on
set -g set-titles-string "#T"
setw -g monitor-activity on
set -g visual-activity on
View check.pm6
#the sub function where error is, at line 8
our sub object_repo_exist($yaml, $object, $object_name, $group_name) is export
# $ yaml.datas contain the my.yaml parsed file. checked... exactly same structure and content of datas.
{ #give object=title|url , object_name, group_name
my $i = 0;
my %group = $yaml.datas.first: { $_<group> eq $group_name };
my %repo;
unless (%group<repos>.elems == 0) {
return True if %group<repos>.first: { $_<<$object>> eq $object_name };
}
@jerome-diver
jerome-diver / VimPlugger.pl6
Last active Jul 25, 2017
con not find symbol &gourp, but sub group is export(:MANDATORY) { ...}
View VimPlugger.pl6
#!/usr/bin/perl6
#use install;
use lib "/home/jerome/PROGRAMATION/Perl/Vim_plugger_6/";
use Term::Choose;
use datas;
use add :MANDATORY;
my $mode;
my $yaml = datas.new("my_pl6.yml");
my @menu0 = < List Add Modify Remove Install Uninstall Update Quit >;
@jerome-diver
jerome-diver / datas.pm6
Last active Jul 25, 2017
cannot import symbol EXPORT from add, because it already exists in this lexical scope
View datas.pm6
#--datas.pm---
use YAML;
class datas {
has Str $.filename is rw;
has Array @.datas;
has Str $.directory = %*ENV<HOME> ~ "/.vim/installer";
has Str $.repo_dir = %*ENV<HOME> ~ "/.vim/bundle";
has Str $.full_filename;
@jerome-diver
jerome-diver / app__assets__javascript__application.js
Last active Jul 12, 2017
try to make running unitegallery.js code in rails-4 application
View app__assets__javascript__application.js
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery2
//= require jquery.turbolinks
//= require jquery_ujs
//= require ckeditor/init
//= require jquery-ui
//= require jquery.remotipart
//= require bootstrap
@jerome-diver
jerome-diver / pg_upgrade_server.log
Created Nov 19, 2016
failed to upgrade postgresql server from 9.5 to 9.6
View pg_upgrade_server.log
-----------------------------------------------------------------
pg_upgrade run on Sat Nov 19 15:57:01 2016
-----------------------------------------------------------------
command: "/opt/pgsql-9.5/bin/pg_ctl" -w -l "pg_upgrade_server.log" -D "/var/lib/postgres/data-9.5" -o "-p 50432 -b -c listen_addresses='' -c unix_socket_permissions=0700 -c unix_socket_directories='/var/lib/postgres'" start >> "pg_upgrade_server.log" 2>&1
waiting for server to start....FATAL: data directory "/var/lib/postgres/data-9.5" has group or world access
DETAIL: Permissions should be u=rwx (0700).
stopped waiting
pg_ctl: could not start server
Examine the log output.
You can’t perform that action at this time.