See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
| <?php | |
| require_once 'vendor/autoload.php'; | |
| // Construct transport and client | |
| $transport = new SocketTransport(array('127.0.0.1'),2775); | |
| $transport->setRecvTimeout(60000); // for this example wait up to 60 seconds for data | |
| $smpp = new SmppClient($transport); | |
| // Activate binary hex-output of server interaction | |
| $smpp->debug = true; |
See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
| rm -r .git | |
| git init | |
| (create files) | |
| git add -A | |
| git commit -m 'Initial commit' | |
| git remote add origin <url> | |
| git push --force --set-upstream origin master |
| <?php | |
| if (!defined("WHMCS")) | |
| die("This file cannot be accessed directly"); | |
| use WHMCS\Database\Capsule; | |
| function wb_mark_zero_invoices_paid(){ | |
| //get all unpaid invoices | |
| $unpaid_invoices = Capsule::table('tblinvoices')->where('status', 'Unpaid')->get(); | |
| foreach( $unpaid_invoices as $inv ){ |
| <?php | |
| /** | |
| * @package Custom_queries | |
| * @version 1.0 | |
| */ | |
| /* | |
| Plugin Name: Custom queries | |
| Plugin URI: http://wordpress.org/extend/plugins/# | |
| Description: This is an example plugin | |
| Author: Carlo Daniele |
| <?php | |
| // command line | |
| // curl --data "text=foobar" http://localhost:3001/api/decrypt | |
| // File sockets | |
| function http_request($url, $data, $a = null, $b = null) { | |
| $opts = array('http' => | |
| array( | |
| 'method' => 'POST', |
| SET @oldsite='http://oldsite.com'; | |
| SET @newsite='http://newsite.com'; | |
| UPDATE wp_options SET option_value = replace(option_value, @oldsite, @newsite) WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE wp_posts SET post_content = replace(post_content, @oldsite, @newsite); | |
| UPDATE wp_links SET link_url = replace(link_url, @oldsite, @newsite); | |
| UPDATE wp_postmeta SET meta_value = replace(meta_value, @oldsite, @newsite); | |
| /* only uncomment next line if you want all your current posts to post to RSS again as new */ | |
| #UPDATE wp_posts SET guid = replace(guid, @oldsite, @newsite); |
| Organization name: leexij@gmail.com | |
| Serial Key: eNrzzU/OLi0odswsqslJTa3IzHJIz03MzNFLzs+tMTQyNrcwsTQyAIEa5xpDAIFxDy8k |
| # Download and Install the Latest Updates for the OS | |
| apt-get update && apt-get upgrade -y | |
| # Set the Server Timezone to CST | |
| echo "America/Chicago" > /etc/timezone | |
| dpkg-reconfigure -f noninteractive tzdata | |
| # Enable Ubuntu Firewall and allow SSH & MySQL Ports | |
| ufw enable | |
| ufw allow 22 |
| // Reorder Checkout Fields | |
| add_filter('woocommerce_checkout_fields','reorder_woo_fields'); | |
| function reorder_woo_fields($fields) { | |
| $fields2['billing']['billing_email'] = $fields['billing']['billing_email']; | |
| $fields2['billing']['billing_first_name'] = $fields['billing']['billing_first_name']; | |
| $fields2['billing']['billing_last_name'] = $fields['billing']['billing_last_name']; | |
| $fields2['billing']['billing_country'] = $fields['billing']['billing_country']; | |
| $fields2['billing']['billing_address_1'] = $fields['billing']['billing_address_1']; | |
| $fields2['billing']['billing_address_2'] = $fields['billing']['billing_address_2']; |