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
Create /etc/profiles.d/colorps1.sh | |
#!/bin/bash | |
if [ $(id -u) -eq 0 >/dev/null 2>&1 ]; then | |
export PS1="\[\033[01;31m\]\u\[\033[00;37m\]@\h:\w\$ " | |
fi |
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 | |
# random password generator by typedeaF | |
# This program has no "real" value other than introducing some bash concepts and putting them to use. | |
# to strip the comments: cat this.file | grep -v '^# ' | |
# Sets the maximum size of the password the script will generate | |
#MAXSIZE=16 | |
MAXSIZE="${1:-16}" |
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
/** | |
* Magento EAV Entity Inspection | |
* Inspect Category | |
*/ | |
SET @entityid = '3'; | |
SELECT ea.attribute_id, ea.attribute_code, eav.value AS 'value', 'varchar' AS 'type' | |
FROM catalog_category_entity e | |
JOIN catalog_category_entity_varchar eav | |
ON e.entity_id = eav.entity_id |
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
require 'curb' | |
require 'openssl' | |
require 'base64' | |
def coinex_call(url, data) | |
coinex_key = '' | |
coinex_secret = '' | |
if data != '' |
NewerOlder