Skip to content

Instantly share code, notes, and snippets.

View jaffry's full-sized avatar

Jaffry Jalal jaffry

View GitHub Profile
<!-- Essential META Tags -->
<meta property="og:title" content="European Travel Destinations">
<meta property="og:description" content="Offering tour packages for individuals or groups.">
<meta property="og:image" content="">
<meta property="og:url" content="">
<meta name="twitter:card" content="summary_large_image">
<meta property="og:site_name" content="European Travel, Inc.">
<meta name="twitter:image:alt" content="Alt text for image">
jaffry / mb-picard.options
Last active January 29, 2018 08:03
File naming pattern // MusicBrainz Picard
//for use in MusicBrainz Picard
$if2(%albumartist%,%artist%)/$if(%date%,$left(%date%,4)) - %album%/$if($gt(%totaldiscs%,1),%discnumber%-,)$num(%tracknumber%,2)$if(%compilation%, %artist% -,) %title%
jaffry / ubuntu_install_commandline_apt.txt
Last active December 25, 2016 04:03
[Ubuntu] Basic installer commands for the terminal
//Install Oracle Java 8
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
//Install Xperifirm
sudo apt-get install mono-complete
sudo cert-sync /etc/ssl/certs/ca-certificates.crt
sudo certmgr -ssl -m
mono XperiFirm.exe
jaffry / nth.css
Created October 26, 2015 02:27
[CSS] Selecting the first, last or nth element
/* Select the first <p> inside <div class="example">: */
/* simple version */
div.example p:first-of-type { background: #00FF00; }
/* alternate version */
div.example p:nth-of-type(1) { background: #00FF00; }
jaffry / synaptics.conf
Created March 15, 2013 14:06
Three finger tap configuration on Lubuntu+Gnome
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
Option "VertTwoFingerScroll" "1"
Option "HorizTwoFingerScroll" "1"
jaffry / split-by-line.php
Last active October 26, 2015 02:28
[PHP] Reliable method to split a string by line-breaks into an array
$txtArray = preg_split("/(\r\n|\n|\r)/", $txtString);