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 | |
echo "Format a disk as ExFAT" | |
disk=$1 | |
label=$2 | |
# Example: sudo sh qformat.exfat.sh /dev/sdc "MY_LABEL" | |
# Check if disk is specified |
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
.wpcf7 form .wpcf7-response-output { | |
color: #004085; | |
background-color: #cce5ff; | |
border-color: #b8daff; | |
border-radius: 4px; | |
padding: 10px 20px; | |
border-width: 1px; | |
margin-left: 0; | |
margin-right: 0; | |
margin-bottom: 0; |
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"> | |
[text* your-name class:form-control placeholder "Name (required)"] | |
</div> | |
<div class="form-group"> | |
[email* your-email class:form-control placeholder "Email (required)"] | |
</div> | |
<div class="form-group"> | |
[text* your-subject class:form-control placeholder "Subject"] | |
</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
#/bin/bash | |
# Download latest package | |
wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz -O latest.tar.gz | |
# Create temp folder | |
mkdir ./phpmyadmin | |
# Decompress latest package | |
tar --extract --file=latest.tar.gz --strip-components=1 --directory=./phpmyadmin |
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
# Ubuntu | |
# Download phar | |
wget https://phar.phpunit.de/phpunit.phar | |
# Change permissions | |
chmod 755 phpunit.phar | |
# Move to final place | |
sudo mv phpunit.phar /usr/local/bin/phpunit |
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
# Add $USER to the www-data group | |
sudo usermod -a -G www-data $USER | |
# Change to group | |
sudo chgrp -R www-data /var/www/html | |
# Change propetary | |
sudo chown -R $USER:www-data /var/www/html/ | |
# Update permissions |
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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
copy: { | |
lib: { | |
files: [ | |
{ | |
expand: true, |
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
# Requires root | |
su | |
# mount as read-write | |
mount -o rw,remount,rw /system | |
# Malware? | |
rm /system/priv-app/Xfota.apk | |
rm -r /data/data/com.xbkpnotification | |
# Malware? | |
rm /system/priv-app/EMBI.apk | |
rm -r /data/data/com.syswin.gservices |
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/sh | |
# find /var/www/html/wp-content/uploads/ -type f -empty -iname "*.jpg" -delete | |
# find /var/www/html/wp-content/uploads/ -type f -empty -iname "*.jpeg" -delete | |
# find /var/www/html/wp-content/uploads/ -type f -empty -iname "*.png" -delete | |
# | |
# find /var/www/html/wp-content/uploads/ -type f -iname "*.jpg" -exec jpegoptim --strip-all {} \; | |
# find /var/www/html/wp-content/uploads/ -type f -iname "*.jpeg" -exec jpegoptim --strip-all {} \; | |
# find /var/www/html/wp-content/uploads/ -type f -iname "*.png" -exec optipng {} \; | |
# |
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
<?php | |
/** | |
* CLI for create a virtualhost in Wamp | |
*/ | |
if ( empty( $argv[1] ) ) { | |
echo "A vhost name is required"; | |
return false; | |
} |
NewerOlder