Skip to content

Instantly share code, notes, and snippets.

View sylvainmetayer's full-sized avatar

Sylvain METAYER sylvainmetayer

View GitHub Profile
@rxaviers
rxaviers / gist:7360908
Last active April 14, 2025 05:36
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@jbinto
jbinto / howto-recover-google-authenticator-keys.txt
Created February 8, 2014 04:20
Recovering Google Authenticator keys from Android device for backup
### Last tested February 7 2014 on a Galaxy S3 (d2att) running Cyanogenmod 11 nightly, with Google Authenticator 2.49.
### Device with Google Authenticator must have root.
### Computer requires Android Developer Tools and SQLite 3.
### Connect your device in USB debugging mode.
$ cd /tmp
$ adb root
$ adb pull /data/data/com.google.android.apps.authenticator2/databases/databases
@willprice
willprice / .travis.yml
Last active June 15, 2024 04:29
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env:
@lukecathie
lukecathie / jekyll-sort-collection-desc
Created December 18, 2014 09:36
Jekyll sort collections by date desc
{% assign work_items = site.work_items | sort: 'date' | reverse %}
{% for work_item in work_items limit:4 %}
<div>
<a href="{{ work_item.url | prepend: site.baseurl }}">{{ work_item.title }}</a>
</div>
{% endfor %}
@khanov
khanov / Binary Tree Printer.swift
Last active July 14, 2021 02:17
Binary Tree ASCII Printer
import Foundation
// Ideally Node should be a struct.
// However Swift doesn't allow recursive value types at the moment.
class Node {
var left, right: Node?
var value: String
init(value: String = "") {
@PurpleBooth
PurpleBooth / README-Template.md
Last active April 14, 2025 05:03
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@Maumagnaguagno
Maumagnaguagno / .travis.yml
Last active February 18, 2020 00:02
Make Travis-CI push files to other repositories for you when tests pass
language: ruby
rvm:
- 2.0.0
env:
global:
- USER="username"
- EMAIL="[email protected]"
- REPO="name of target repo"
- FILES="README.md foo.txt bar.txt"
- GH_REPO="github.com/${USER}/${REPO}.git"
@Chocobozzz
Chocobozzz / gist:b19c45d0bec218dec3d5
Created August 21, 2015 18:00
sendmail-complain.conf
# Fail2Ban configuration file
#
# Author: Russell Odom <[email protected]>
# Adapted for sendmail by: Mike A. Leonetti
# Sends a complaint e-mail to addresses listed in the whois record for an
# offending IP address.
#
# You should provide the <logpath> in the jail config - lines from the log
# matching the given IP address will be provided in the complaint as evidence.
#
@denis-bz
denis-bz / firefox-cookies.py
Created January 15, 2016 10:28
List Firefox cookies, in python
#!/usr/bin/env python
''' In: a firefox cookies.sqlite file
default $HOME/Library/Application\ Support/Firefox/Profiles/*/cookies.sqlite
Out: urls in the file, one per line on stdout
modified https://linuxfreelancer.com/decoding-firefox-cookies-sqlite-cookies-viewer
'''
# google python sqlite3 "delete cookies" ? looks mttiw
@subfuzion
subfuzion / curl.md
Last active April 13, 2025 10:00
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.