Skip to content

Instantly share code, notes, and snippets.

View jonabaptistella's full-sized avatar

Jonathan Baptistella jonabaptistella

View GitHub Profile
@jonabaptistella
jonabaptistella / gist:556186bfb3c1b5ca88335fafce104ee8
Created October 21, 2019 15:11 — forked from rxaviers/gist:7360908
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:
@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

@jonabaptistella
jonabaptistella / urlsafari
Created July 21, 2019 23:52 — forked from kshiteesh/urlsafari
This AppleScript saves all the tabs open in all Safari windows to a Markdown file.
(*
Export All Safari Tabs in All Open Windows to a Markdown File
July 13, 2015
// SCRIPT PAGE
http://hegde.me/urlsafari
// ORIGINAL SCRIPT ON WHICH THIS SCRIPT IS BUILT
http://veritrope.com/code/export-all-safari-tabs-to-a-text-file
@jonabaptistella
jonabaptistella / is-private-mode.js
Created July 17, 2019 20:41 — forked from jherax/is-private-mode.js
Detect if the browser is running in Private mode (Promise based)
// uncomment if you are transpiling with Babel + Webpack
// const { window, document } = global;
/**
* Lightweight script to detect whether the browser is running in Private mode.
* @returns {Promise}
*
* Live demo:
* @see http://live.datatables.net/piduzelo/1
*
@jonabaptistella
jonabaptistella / shy.php
Created April 10, 2019 12:48 — forked from medienbaecker/shy.php
(-) to ­ KirbyTag hook
<?php
Kirby::plugin('medienbaecker/shy', [
'hooks' => [
'kirbytags:before' => function ($text, $data, $options) {
return Str::replace($text, "(-)", "&shy;");
}
]
]);
@jonabaptistella
jonabaptistella / section.php
Created April 10, 2019 12:44 — forked from medienbaecker/section.php
Page model for sections
<?php
class SectionPage extends Page {
public function url($options = null): string {
return $this->parents()->filterBy("intendedTemplate", "!=", "sections")->first()->url() . '#' . $this->slug();
}
}
@jonabaptistella
jonabaptistella / figure.php
Created December 15, 2018 00:35 — forked from mbecher/figure.php
getkirby tags/figure.php with srcset and thumbnail creation
<?php
kirbytext::$tags['figure'] = array(
'attr' => array(
'width',
'height',
'alt',
'text',
'title',
'class',
@jonabaptistella
jonabaptistella / git-create.sh
Created August 21, 2018 12:36 — forked from rorlab/git-create.sh
Shell script for making github repository and pushing source codes
#!/bin/sh
repo_name=$1
test -z $repo_name && echo "Repo name required." 1>&2 && exit 1
curl -u '[username]:[password]' https://api.github.com/user/repos -d "{\"name\":\"$repo_name\"}"
git init
git add .
git commit -m "initial commit"
git remote add origin "https://github.com/[username]/$repo_name.git"
git push -u origin master
@jonabaptistella
jonabaptistella / cronadd.sh
Created August 21, 2018 11:45 — forked from eaydin/cronadd.sh
BASH scripting way of adding Cronjob
#!/bin/bash
command=”/path-to/my_process.sh > /dev/null 2>&1″
job=”*/5 * * * * $command”
cat <(grep -i -v “$command” <(crontab -l)) <(echo “$job”) | crontab -
@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
});