Skip to content

Instantly share code, notes, and snippets.

View pbeaudequin's full-sized avatar

Philippe Beaudequin pbeaudequin

  • Back Market
  • Nice, France
View GitHub Profile
git reset --hard && git clean -df
netcat -l -p 4444 < fifo | tee file | netcat HOST PORT > fifo
import cowsay
from random import choice
ltype=[i for i in dir(cowsay) if not i.startswith('__') and i not in ['about','char_names','chars','module']]
l='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
l='ABCDEFILMNOPRSTUV'
eval(f'cowsay.{choice(ltype)}("{choice(l)}")')
for file in \[*; do
mv $file ${file##\[*\] }
done
import requests
from bs4 import BeautifulSoup
from feedgen.feed import FeedGenerator
class litteratureaudioScrapper(object):
def __init__(self):
self.bootstrap_url = 'http://www.litteratureaudio.com/classement-de-nos-livres-audio-gratuits-les-plus-vus'
@pbeaudequin
pbeaudequin / sh
Created December 16, 2021 09:26
Nice git aliases
# Git
alias ga='git add'
alias gb='git branch'
alias gc='git commit'
alias gcm='git commit -m'
alias gcf='git commit --amend --reuse-message HEAD'
alias gd='git diff'
alias gdc='git diff --cached'
alias gl='git log --graph --date=short'
alias gls='git log --graph --date=short --stat'
repoPaths:
BackMarket/:repo: ~/bm/:repo
:owner/:repo: ~/dev/:owner/:repo
prSections:
- title: My Pull Requests
filters: is:open author:@me
- title: Open/checkout
filters: is:open author:@me author:jl-bm author:ArnaudLasnier-BM author:bmyandrei
- title: Merged/checkout