Skip to content

Instantly share code, notes, and snippets.

Jaffry Jalal jaffry

Block or report user

Report or block jaffry

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jaffry
jaffry / mb-picard.options
Last active Jan 29, 2018
File naming pattern // MusicBrainz Picard
View mb-picard.options
//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
jaffry / ubuntu_install_commandline_apt.txt
Last active Dec 25, 2016
[Ubuntu] Basic installer commands for the terminal
View ubuntu_install_commandline_apt.txt
//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 https://software.sonymobile.com
mono XperiFirm.exe
@jaffry
jaffry / nth.css
Created Oct 26, 2015
[CSS] Selecting the first, last or nth element
View nth.css
/********************************************************/
/* 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
jaffry / synaptics.conf
Created Mar 15, 2013
Three finger tap configuration on Lubuntu+Gnome
View synaptics.conf
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
jaffry / split-by-line.php
Last active Oct 26, 2015
[PHP] Reliable method to split a string by line-breaks into an array
View split-by-line.php
$txtArray = preg_split("/(\r\n|\n|\r)/", $txtString);
You can’t perform that action at this time.