Search found 21 matches

by hiccup
Mon Jul 06, 2020 6:18 pm
Forum: Your first forum
Topic: mysql: import/export all databases in separate files
Replies: 0
Views: 56

mysql: import/export all databases in separate files

Take a mysqldump back-up to separate files mysql -N -e 'show databases' | while read dbname; do mysqldump --complete-insert --routines --triggers --single-transaction "$dbname" -r "$dbname".sql; done --complete-insert, -c Use complete INSERT statements that include column names. --routines, -R Inclu...
by hiccup
Sat Oct 05, 2019 4:10 pm
Forum: Your first forum
Topic: [tightvnc] Start vncserver on boot on systemd
Replies: 0
Views: 367

[tightvnc] Start vncserver on boot on systemd

/root/boot.sh #!/usr/bin/env bash USER=root HOME=/root export USER HOME su -c "vncserver" root /etc/systemd/system/customboot [Service] ExecStart=/root/boot.sh [Install] WantedBy=default.target chmod +x /root/boot.sh systemctl enable customboot do the above at once: bootscript=/root/boot.sh servicen...
by hiccup
Sat Jul 20, 2019 4:27 pm
Forum: Your first forum
Topic: WordPress Recovery Email
Replies: 0
Views: 460

WordPress Recovery Email

Code: php Select all

define( 'RECOVERY_MODE_EMAIL', '[email protected]' );

Code: php Select all

add_filter( 'recovery_mode_email', function( $email_data ) {
    $email_data['to'] = '[email protected]';
    return $email_data;
});
by hiccup
Fri May 17, 2019 9:11 am
Forum: Your first forum
Topic: Wordpress siteurl
Replies: 0
Views: 530

Wordpress siteurl

Code: php Select all

    define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/');
    define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/');
https://github.com/interconnectit/Search-Replace-DB
by hiccup
Thu Feb 21, 2019 4:37 pm
Forum: Your first forum
Topic: Cookie based popup/Modal for first time visitors only
Replies: 0
Views: 610

Cookie based popup/Modal for first time visitors only

<div class="container"> <!-- Trigger the modal with a button --> <button type="button" class="btn btn-info hidden btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button> <!-- Modal --> <div class="modal fade" id="myModal" role="dialog" data-keyboard="false" data-backdrop="static"> <d...
by hiccup
Wed Oct 10, 2018 4:27 pm
Forum: Your first forum
Topic: Get DNS records from nameserver
Replies: 0
Views: 797

Get DNS records from nameserver

Code: Select all

https://viewdns.info/iphistory/
\

Code: Select all

nslookup somewhere.com some.dns.server
online:

Code: Select all

https://manytools.org/network/query-dns-records-online/
for DNS history:

Code: Select all

https://completedns.com/dns-history/
http://whoisrequest.com/history/
http://dnstrails.com/
by hiccup
Mon Mar 13, 2017 7:39 pm
Forum: Your first forum
Topic: Send mail with attachment using PHPMailer
Replies: 0
Views: 979

Send mail with attachment using PHPMailer

<?php $field_first_name = $_POST['contact_names']; $field_email = $_POST['contact_email']; $field_front = $_POST['optionsRadios']; $field_just_sold = $_POST['optionsRadios']; $field_back = $_POST['optionsRadios2']; $field_property_address = $_POST['property_address']; $field_price = $_POST['price']...
by hiccup
Wed Feb 08, 2017 5:02 am
Forum: Your first forum
Topic: VNC allow copy/paste
Replies: 0
Views: 834

VNC allow copy/paste

install [c]autocutsel[/c] then add [c]autocutsel -fork[/c] in your [c]~/.vnc/xstartup[/c] file. #!/bin/sh xrdb $HOME/.Xresources xsetroot -solid grey x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #x-window-manager & # Fix to make GNOME work #export XKL_XMODMAP_DISABLE=...
by hiccup
Fri Jan 22, 2016 1:32 pm
Forum: Your first forum
Topic: [dd-wrt] Check internet balance of 3G Modem via USSD
Replies: 0
Views: 6121

[dd-wrt] Check internet balance of 3G Modem via USSD

So I was using Huawei e303 3G Modem with my TPLINK WR1043ND V2 router which is flashed with DD-WRT v3.0-r28586. I needed to check remaining balance of my internet package. I've searched around but couldn't find any solution that could work out of the box. The code from here dialed correctly and rece...
by hiccup
Mon Nov 02, 2015 6:36 am
Forum: Your first forum
Topic: wordpress numeric pagination with bootstrap
Replies: 0
Views: 3883

wordpress numeric pagination with bootstrap

the query: Static front page $paged = ( get_query_var('page') ) ? get_query_var('page') : 1; $args = array( 'post_type' => 'post_type', 'category_name' => 'tutorials', 'posts_per_page' => 5, 'paged' => $paged ); $the_query = new WP_Query( $args ); static page that is NOT home: $paged = ( get_query_v...