Skip to content

Instantly share code, notes, and snippets.

View Nabil5352's full-sized avatar
🎯
Focusing

Nabil Ahmad Nabil5352

🎯
Focusing
View GitHub Profile
@Nabil5352
Nabil5352 / cryptographically_secure_random_strings.php
Created January 1, 2020 05:43 — forked from raveren/cryptographically_secure_random_strings.php
Generate cryptographically secure random strings. Based on Kohana's Text::random() method and this answer: http://stackoverflow.com/a/13733588/179104
function random_text( $type = 'alnum', $length = 8 )
{
switch ( $type ) {
case 'alnum':
$pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
break;
case 'alpha':
$pool = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
break;
case 'hexdec':
@Nabil5352
Nabil5352 / gist:a6f4b1ee926b9a218bc91dd5ec5f8555
Created July 3, 2019 15:36 — 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:
@Nabil5352
Nabil5352 / Github.md
Last active August 25, 2019 19:03
Github command collection

LOCAL MACHINE CONFIGURATION:

  1. --local local to that repository only
  2. --global global to that machine

Set email

git config --global user.email "mail@example.com"`

Set username

@Nabil5352
Nabil5352 / README.md
Created August 8, 2016 10:41 — forked from leemeichin/README.md
Modulo Liquid filter for Jekyll

Modulo Liquid filter for Jekyll

Got nested columns in your grid-based Jekyll site?

Wondered why you didn't have a way to calculate the modulo inside your posts loop to open and close your 'rows' containing those nested columns?

Add this filter to your _plugins directory, and use it like so:

{{ x | mod:y }}