Skip to content

Instantly share code, notes, and snippets.

View AmineI's full-sized avatar
🐈
ᓚᘏᗢ

Amine A. AmineI

🐈
ᓚᘏᗢ
  • Paris, France
View GitHub Profile
@stracker-phil
stracker-phil / global-search.js
Last active August 22, 2024 08:41
Recursively searches the entire object tree for a given value
/**
* Recursively searches the startObject for the given value.
*
* All matches are displayed in the browser console and stored in the global variable "gsResults"
* The function tries to simplify DOM element names by using their ID, when possible.
*
* Usage samples:
*
* globalSearch( document, 'someValue' ); // Search entire DOM document for the string value.
* globalSearch( document, '^start' ); // Simple regex search (function recognizes prefix/suffix patterns: "^..." or "...$").
@thblckjkr
thblckjkr / aliases.sh
Last active June 11, 2021 05:34
Weeb aliases for shell
# A little list of aliases for weeb developers
# nya | Opens a file for edition
alias nya='nano'
# neko | Prints a file on terminal
alias neko='cat'
# onegai | Execute the previous command as sudo
alias onegai='echo sudo $(fc -ln -1) ; sudo $(fc -ln -1)'
@kowalcj0
kowalcj0 / .bashrc
Last active August 29, 2024 23:43
Extract all subtitles from a movie using ffprobe & ffmpeg
alias subs=subs
function subs() {
movie="${1}"
filename="${1%.*}"
mappings=`ffprobe -loglevel error -select_streams s -show_entries stream=index:stream_tags=language -of csv=p=0 "${movie}"`
OLDIFS=$IFS
IFS=,
( while read idx lang
do
@powerc9000
powerc9000 / translations.md
Last active November 27, 2018 15:57
Translations with Firebase

At my place of work we were doing translations with json files and key value pairs.

eg. en-US.json

{
  "this_key": "Translates to this"
}
@vidavidorra
vidavidorra / auto-deploy_documentation.md
Last active June 5, 2024 19:20
Auto-deploying Doxygen documentation to gh-pages with Travis CI

Auto-deploying Doxygen documentation to gh-pages with Travis CI

This explains how to setup for GitHub projects which automatically generates Doxygen code documentation and publishes the documentation to the gh-pages branch using Travis CI. This way only the source files need to be pushed to GitHub and the gh-pages branch is automatically updated with the generated Doxygen documentation.

Sign up for Travis CI and add your project

Get an account at Travis CI. Turn on Travis for your repository in question, using the Travis control panel.

Create a clean gh-pages branch

To create a clean gh-pages branch, with no commit history, from the master branch enter the code below in the Git Shell. This will create a gh-pages branch with one file, the README.md in it. It doesn't really matter what file is uploaded in it since it will be overwritten when the automatically generated documentation is published to th

@kmark
kmark / profinder.php
Created August 21, 2015 15:50
ProFinder - The ProGuard obfuscation tracker.
#!/usr/bin/env php
<?php
/*******************************************************************************************************************
* ProFinder v1.0 *
* http://forum.xda-developers.com/android/software/profinder-proguard-obfuscation-tracker-t3183647 *
*******************************************************************************************************************
* Copyright 2015 Kevin Mark *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *