Skip to content

Instantly share code, notes, and snippets.

View mtancoigne's full-sized avatar

Manuel Tancoigne mtancoigne

View GitHub Profile
@mtancoigne
mtancoigne / git-grep-apps
Created August 26, 2024 12:23
Searches for a committed string in project with multiple repositories
#!/usr/bin/env ruby
# frozen_string_literal: true
# Searches for a committed string in project repositories
#
# Usage:
# git-grep-apps <string>
#
# This script will search for a configuration file on the current directory or its parents when not found.
#
@mtancoigne
mtancoigne / git-cal
Created March 12, 2024 13:38
Display commits per branch, day by day
#!/usr/bin/env ruby
# frozen_string_literal: true
# Gems:
# gem install tty-option rugged skittlize activesupport pastel
require 'tty-option'
require 'rugged'
require 'skittlize'
require 'active_support/deprecator' # Required for active_support to work
@mtancoigne
mtancoigne / airsec.rb
Created February 27, 2023 09:52
Find outdated gems in sub-directories
#!/usr/bin/env ruby
# frozen_string_literal: true
# Find projects with outdated dependencies
#
# Usage:
# airsec <gem>
# airsec <gem> [[min version] max version]
#
#!/usr/bin/env ruby
# frozen_string_literal: true
# Find non-existing entries in gitignore
#
# For reference: https://git-scm.com/docs/gitignore
#
# @author Manuel Tancoigne <[email protected]>
# @license MIT
# @version 0.2.0
@mtancoigne
mtancoigne / git-bs
Last active February 28, 2023 10:16
Display statuses of local git branches
#!/usr/bin/env ruby
# frozen_string_literal: true
# Display branch statuses
#
# @author Manuel Tancoigne <[email protected]>
# @license MIT
# @version 0.2.3
#
# Requirements
@mtancoigne
mtancoigne / vuex-toast.scss
Last active August 4, 2020 10:29
VueX-toast SCSS style file with a helper mixin for new types
// VueX-toast SASS style file with a helper mixin for new types
//
// License: MIT
//
// Authors:
// - ktns (https://github.com/ktns)
// - mtancoigne (https://experimentslabs.com/users/administrator)
//
// Project page: https://github.com/ktsn/vuex-toast
// Matches with version: 0.1.3 (not tested on previous versions)
@mtancoigne
mtancoigne / gitter.css
Created July 26, 2019 08:09
Gitter - compact interface
@-moz-document domain("gitter.im") {
/* Header */
header.header,
.header .header-main-menu {
height: 3.5rem !important;
}
/* Left panel */
.body .layout-minibar {
width: 3.5rem;
{
"arabic": [
"aghoneim92",
"Islam888",
"kmelkon",
"lelbil",
"nrifki",
"OsamaNabih",
"TaqwaR"
],
@mtancoigne
mtancoigne / App.vue
Created September 26, 2018 20:18
Something that follows scrolling in VueJS (using $refs)
<template>
<div id="app">
<ul class="trails">
<li class="trail">
<div class="caption" :class="sectionsClasses.section_1">El 1</div>
</li>
<li class="trail">
<div class="caption" :class="sectionsClasses.section_2">El 2</div>
</li>
<li class="trail">

Keybase proof

I hereby claim:

  • I am mtancoigne on github.
  • I am mtancoigne (https://keybase.io/mtancoigne) on keybase.
  • I have a public key whose fingerprint is 1000 50F3 D9B8 ED8F B8B2 F69B D0FE 6B33 0973 5AC5

To claim this, I am signing this object: