Skip to content

Instantly share code, notes, and snippets.

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

Maxime Roca boocle

🏠
Working from home
View GitHub Profile
@boocle
boocle / k_exec_all.sh
Last active November 2, 2021 14:06
Exécuter une commande sur plusieurs pods en simultanés
kubectl get pods | grep <pod name pattern> | cut -d ' ' -f 1 | xargs -I{} kubectl exec {} <command>
@boocle
boocle / Instructions.md How to clone a git repo to an existing folder (not empty)
  1. First get to the existing directory
    $ cd my/folder/

  2. Now start a new git repository
    $ git init

  3. Identify if the current elements on the directory are needed or not and add them to the .gitignore file. When ready...
    $ vim .gitignore

  4. When ready create the first commit on the server

@boocle
boocle / pagination.sql
Last active October 18, 2018 09:26
Pagination T-SQL
DECLARE @intStartRow int;
DECLARE @intEndRow int;
SET @intStartRow = (@intPage -1) * @intPageSize + 1;
SET @intEndRow = @intPage * @intPageSize;
WITH blogs AS
(SELECT strBlogName,
ROW_NUMBER() OVER(ORDER BY intID DESC) as intRow,
COUNT(intID) OVER() AS intTotalHits
@boocle
boocle / git-command.md
Created August 25, 2016 16:45 — forked from aquelito/git-command.md
GIT - Ligne de commande principale

Github

Configuration

Identity Name

$ git config --global user.name "aquelito"
@boocle
boocle / bootstrap.no.glow.css
Last active June 5, 2016 21:44
Remove the blue glow in the form inputs
/*
* Remove the blue glow in the form inputs
*/
input[type="text"], input[type="email"], textarea {
outline: none;
box-shadow:none !important;
border:1px solid #ccc !important;
}