Skip to content

Instantly share code, notes, and snippets.

View lossendae's full-sized avatar

Stéphane Boulard lossendae

View GitHub Profile
@lossendae
lossendae / reset.sh
Last active April 19, 2021 18:11
Git reset status for file marked as changed but with no content modification (mostly due to file permission change)
#!/usr/bin/env bash
set -e
git status --porcelain | (
unset action
while read line; do
case "${line//[[:space:]]/}" in
'UU'*) action='check' ;;
'M'*) action='check' ;;
'D'*) action='ignore' ;;
@lossendae
lossendae / DashboardApp.vue
Created December 11, 2022 19:05 — forked from alOneh/DashboardApp.vue
Example of a Vue.js app integrated in a twig template
<template>
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-green"><i class="fa fa-users"/></span>
<div class="info-box-content">
<span class="info-box-text">Active users</span>
<span class="info-box-number">{{ usersCount || 0 }}</span>
</div>
</div>
@lossendae
lossendae / instruction.md
Created September 18, 2023 10:55
Allow Cypress to run chrome installed via flatpak

Create a file in your home and make it executable:

sudo vi ~/.local/bin/chrome
sudo chmod +x ~/.local/bin/chrome

Content of the file :