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 | |
### Get my uid | |
UserID=`id -u` | |
echo "Your UID: ${UserID}" | |
### Unload root process | |
sudo launchctl unload /Library/LaunchDaemons/com.antelopeaudio.daemon.plist | |
### Kill the process if it was already awaken |
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
# encoding: utf8 | |
from __future__ import unicode_literals | |
import re | |
import unicodedata | |
import sys | |
################################################################ | |
# This is modify version. | |
# | |
# If you need original source code, see below: |
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 | |
LXCPATH="/usr/local/lxc/" | |
# Pre-check | |
if [ -f ./vms.list ]; | |
then | |
echo "[SUCCESS] ./vms.list is found" | |
else | |
echo "[ERROR] ./vms.list file is not found."; |
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
SELECT a.ID | |
, a.post_date | |
, a.post_modified | |
, a.post_title | |
, a.post_name | |
, b.user_registered | |
, b.user_login | |
, b.user_nicename | |
, b.display_name | |
, c.name |
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
SELECT a.user_registered | |
, a.user_login | |
, a.user_nicename | |
, a.display_name | |
FROM wp_users a; |
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
SELECT a.term_id | |
, a.name | |
, a.slug | |
, b.count | |
FROM wp_terms a | |
LEFT JOIN wp_term_taxonomy b | |
ON a.term_id = b.term_id | |
WHERE b.taxonomy = 'category'; |
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 | |
rm -f /usr/local/bin/pear | |
rm -f /usr/local/bin/peardev | |
rm -f /usr/local/bin/pecl | |
rm -f /usr/local/bin/phar | |
rm -f /usr/local/bin/phar.phar | |
rm -f /usr/local/bin/php | |
rm -f /usr/local/bin/php-cgi | |
rm -f /usr/local/bin/php-config |
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
cd ./apache24 | |
make distclean | |
./configure \ | |
--prefix=/usr/local/apache2 \ | |
--enable-pie \ | |
--enable-modules=all \ | |
--enable-mods-shared=all \ | |
--enable-authn-dbm \ | |
--enable-authn-anon \ | |
--enable-authn-dbd \ |
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 | |
# Source: https://github.com/xdebug/xdebug/releases | |
cd ./xdebug | |
/usr/local/php71/bin/phpize | |
./configure --enable-xdebug --with-php-config=/usr/local/php71/bin/php-config |
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] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
NewerOlder