This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
android:width="24dp" | |
android:height="24dp" | |
android:viewportWidth="24.0" | |
android:viewportHeight="24.0" | |
android:autoMirrored="true" | |
android:tint="?attr/colorControlNormal"> | |
<path | |
android:pathData="M20,11L7.8,11l5.6,-5.6L12,4l-8,8l8,8l1.4,-1.4L7.8,13L20,13L20,11z" | |
android:fillColor="@android:color/white"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /mnt/Bostu/Workspaces/amarRootFolder/ | |
ServerAlias hostname.localhost | |
ServerName hostname.localhost | |
<Directory /mnt/Bostu/Workspaces/amarRootFolderI> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride all | |
Order allow,deny |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: sarkarshuvojit | |
# set this as a cron job for your specific time to set volume to ~100% and play any song at specific times | |
# set display and set volume to ~100% | |
export DISPLAY=:0 && amixer -D pulse sset Master 64000 | |
# kill all previous tabs so that no other song is disrupting your hardcore alarm | |
killall chrome | |
# open google chrome with the youtube url | |
google-chrome-stable "https://www.youtube.com/watch?v=fJ9rUzIMcZQ" # kickass song |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mysqldump] | |
user=root | |
password=somepass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if test -d /etc/httpd/conf/sites-available && test -d /etc/httpd/conf/sites-enabled ; then | |
echo "-------------------------------" | |
else | |
mkdir /etc/httpd/conf/sites-available | |
mkdir /etc/httpd/conf/sites-enabled | |
fi | |
avail=/etc/httpd/conf/sites-available/$1.conf | |
enabled=/etc/httpd/conf/sites-enabled | |
site=`ls /etc/httpd/conf/sites-available/` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
avail=/etc/httpd/conf/sites-enabled/$1.conf | |
enabled=/etc/httpd/conf/sites-enabled | |
site=`ls /etc/httpd/conf/sites-enabled` | |
if [ "$#" != "1" ]; then | |
echo "Use script: n2dissite virtual_site" | |
echo -e "\nAvailable virtual hosts: \n$site" | |
exit 0 | |
else | |
if test -e $avail; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
search : \<\?php echo base_url\(\)\; \?\>(.*\.js) | |
replace: {{ URL::assets(\'$1\') }} | |
search : \<\?php echo base_url\(\)\; \?\>(.*\.css) | |
replace: {{ URL::assets(\'$1\') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<div class="form-group"> | |
<input type="text" class="form-control form-validate" placeholder="Your First Name" data-error-message="Please enter your name"> | |
</div> | |
<div class="form-group"> | |
<input type="text" class="form-control form-validate" placeholder="Your Last Name" data-error-message="Please enter your surname"> | |
</div> | |
... | |
... | |
<div class="form-group"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
// invoke function when form is submit | |
$("#form-name").submit(function(e){ | |
// select all the input fields with form-validate class and loop over them | |
$(".form-validate").each(function () { | |
// check if the the form is empty/filled with spaces | |
if($(this).val().trim().length == 0){ | |
// get the respective data-validation-error | |
var errorMessage = $(this).attr('data-validation-error'); | |
// show the error message somehow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>My Website</title> | |
</head> |
OlderNewer