Skip to content

Instantly share code, notes, and snippets.

View jonabaptistella's full-sized avatar

Jonathan Baptistella jonabaptistella

View GitHub Profile
@marlosirapuan
marlosirapuan / gist:778d6beda5f8ab95695748011c864b19
Last active July 25, 2024 14:43
Download .m3u8 files on MacOS

Install ffmpeg

brew install ffmpeg

Download file through url, like this:

ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://url-file.domain.m3u8" -c copy video.mp4
@mahircoding
mahircoding / fake-recent-sales-notification-popup.markdown
Created March 27, 2020 19:09
Fake Recent Sales Notification Popup

Fake Recent Sales Notification Popup

Around 85% of visitors leave an online store without buying an item. Among many reasons, lack of trust, engagement, and authenticity prevents new visitors from placing an order. Built from the concept of Social Proof, Sales Pop plugin helps you combat the 85% rate of site abandonment with recent sales notifications.

A Pen by Ahmed El Sheikh on CodePen.

License.

@jonabaptistella
jonabaptistella / gpg-signing.md
Created October 14, 2019 14:48 — forked from xavierfoucrier/gpg-signing.md
GPG signing with Git and Github Desktop

Hi Github users,

You can now signed your commits on Github using at least Git 2.18.0 and Github Desktop 1.6.1.

  1. Generate a GPG key and add it to Github: https://help.github.com/articles/generating-a-new-gpg-key (if you don't want to type a passphrase on every commit, you need to press "Enter" when the console will prompt you to type a passphrase)

  2. Configure Git properly by editing the .gitconfig file using the command line git config --global --edit in a terminal, then replace YOUR_GITHUB_EMAIL, YOUR_SIGNING_KEY and GPG_BINARY_PATH with your data

@mkerstner
mkerstner / php-curl-http-status-code-checker.php
Created February 4, 2019 11:50
Simple PHP cURL HTTP status code checker
<?php
/**
* Tests and sets HTTP Header status code based on the response from the
* $urlToTest.
*
* Optionally waits $maxTimeout seconds and uses $defaultStatusCode in
* order to overwrite status code from $urlToTest. In addition, optionally
* $printStatusCode to response.
*
@jonabaptistella
jonabaptistella / cookies.js
Created August 8, 2018 20:52 — forked from wholypantalones/cookies.js
Set, Get and Null Cookies with jQuery
//set cookies
$("#div").toggle(function() { //create div toggle
$("#div").slideUp("slow"); //create effect
$.cookie('cookie_name', 'value', {expires: 7}); //set cookie expire in 7 days
},
function () { //continue the toggle
$("#div").slideDown("slow"); //create effect
$.cookie('cookie_name', 'value'); //set cookie
});
@jonabaptistella
jonabaptistella / assets_css_editor.css
Created June 29, 2018 01:11 — forked from fabianmichael/assets_css_editor.css
Simple Inline Editor for Kirby
input[type="text"],
textarea {
-webkit-appearance: none;
border: 0;
border-radius: 0;
font: inherit;
line-height: inherit;
resize: none;
width: 100%;
padding: 0;
@alberto-marin
alberto-marin / snippets.cson
Created April 8, 2017 07:53
AMP (Accelerated Mobile Pages) html boilerplate for atom.io
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values
#
# Atom Flight Manual:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
#
'.text.html':
'AMP HTML Project':
@LeonardoCardoso
LeonardoCardoso / GPG-Tower
Last active April 21, 2023 11:53
How to setup Tower to use the GPG Suite
# GPG on Tower
@tzmartin
tzmartin / m3u8-to-mp4.md
Last active July 22, 2024 19:15
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@jherax
jherax / is-private-mode.js
Last active March 19, 2024 18:29
Detect if the browser is running in Private mode - Promise based (last update: Feb 2020)
/**
* Lightweight script to detect whether the browser is running in Private mode.
* @returns {Promise<boolean>}
*
* Live demo:
* @see https://output.jsbin.com/tazuwif
*
* This snippet uses Promises. If you want to run it in old browsers, polyfill it:
* @see https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.min.js
*