(740) 441-3388

.– …. .- – . …- . .-.

Cybercon.com Coupon Code – Y6CR9WMX – Use to save 20% on Dedicated Server!!!

Y6CR9WMX

/www.cybercon.com/?mw_aref=95fc60bc7e8687564708a5f92612cf01

Cybercon Referral Program…

 

Use my code: Y6CR9WMX to get a recurring 20% discount on your dedicated server rental…

If you want to sign up for the referral program – Use my code: Y6CR9WMX at sign up.. Reap the benefits of the referral program.. delirium

Everyone wins…

Check it out…
/www.cybercon.com/affiliate_programs

Use my code – Y6CR9WMX

My coupon code saves you a recurring 20% discount on every rental — I get a one time commission from the sale…


Fix WordPress….

How to Fix the Error Establishing a Database Connection in WordPress

If you have been surfing the web for a while, you have at least seen this error a few times. Error Establishing a Database Connection is one of those curses that could be caused by many reasons. As a WordPress beginner, this could be awfully frustrating specially when it happened on its own without you changing anything. We ran into this issue yesterday on our own site. It took a little over 20 minutes to detect and fix the problem. While doing the research to find possible causes, we realized that there was no good article that covered everything. In this article, we will show you how to fix the error establishing a database connection in WordPress by compiling a list of solutions all in one place.
Note: Before you make any database changes, make sure you have sufficient backups.
Why do you get this error?

Well in short, you are getting this error because WordPress is unable to establish a database connection. Now the reason why WordPress is unable to establish a database connection can vary. It could be that your database login credentials are wrong or have been changed. It could be that your database server is unresponsive. It could be that your database has been corrupted. In our experience, majority of the times this error happens because of some sort of server error however there could be other factors as well. Lets take a look at how to go about troubleshooting this problem.
Does the problem occur for /wp-admin/ as well?

First thing you should do is to make sure that you are getting the same error on both the front-end of the site, and the back-end of the site (wp-admin). If the error message is the same on both pages “Error establishing a database connection”, then proceed onto the next step. If you are getting a different error on the wp-admin for instance something like “One or more database tables are unavailable. The database may need to be repaired”, then you need to repair your database.
You can do this by adding the following line in your wp-config.php file. Add it just before ‘That’s all, stop editing! Happy blogging’ line wp-config.php.
1
define(‘WP_ALLOW_REPAIR’, true);
Once you have done that, you can see the settings by visiting this page: /www.yoursite.com/wp-admin/maint/repair.php
Repair database in WordPress
Remember, the user does not need to be logged in to access this functionality when this define is set. This is because its main intent is to repair a corrupted database, Users can often not login when the database is corrupt. So once you are done repairing and optimizing your database, make sure to remove this from your wp-config.php.
If this repair did not fix the problem, or you are having trouble running the repair then continue reading this article as you might find another solution to work.
Checking the WP-Config file

WP-Config.php is probably the single most important file in your entire WordPress installation. This is where you specify the details for WordPress to connect your database. If you changed your root password, or the database user password, then you will need to change this file as well. First thing you should always check is if everything in your wp-config.php file is the same.
1
define(‘DB_NAME’, ‘database-name’);
2
define(‘DB_USER’, ‘database-username’);
3
define(‘DB_PASSWORD’, ‘database-password’);
4
define(‘DB_HOST’, ‘localhost’);
Remember your DB_Host value might not always be localhost. Depending on the host, it will be different. For popular hosts like HostGator, BlueHost, Site5, it is localhost. You can find other host values here.
Some folks suggested that they fixed their problem by replacing localhost with the IP. It is common to see this sort of issue when running WordPress on a local server environment. For example on MAMP, the DB_Host value when changed to the IP may seem to work.
1
define(‘DB_HOST’, ‘127.0.0.1:8889’);
IP’s will vary for online web hosting services.
If everything in this file is correct (make sure you check for typos), then it is fair to say that there is something wrong on the server end.
Check your Web Host (MySQL Server)

Often you will notice this Error establishing database connection when your site gets swarmed with a lot of traffic. Basically, your host server just cannot handle the load (specially when you are on shared hosting). Your site will get really slow and for some users even output the error. So the best thing you should do is get on the phone or livechat with your hosting provider and ask them if your MySQL server is responsive.
For those users who want to test if MySQL server is running yourself, you can do a few things. Test other sites on the same server to see if they are having the issue. If they are also getting the same error, then most definitely there is something wrong with your MySQL server. If you do not have any other site on this same hosting account simply go to your cPanel and try to access phpMyAdmin and connect the database. If you can connect, then we need to verify if your database user has sufficient permission. Create a new file called testconnection.php and paste the following code in it:
1
< ?php 2 $link = mysql_connect('localhost', 'root', 'password'); 3 if (!$link) { 4 die('Could not connect: ' . mysql_error()); 5 } 6 echo 'Connected successfully'; 7 mysql_close($link); 8 ?>
Make sure to replace the username and password. If the connected successfully, then it means that your user has sufficient permission, and there is something else that is wrong. Go back to your wp-config file to make sure that everything there is correct (re-scan for typos).
If you cannot connect to the database by going to phpMyAdmin, then you know it is something with your server. It does not necessarily means that your MySQL server is down. It could mean that your user does not have sufficient permission.
In our case, our MySQL server was running. All other sites on the servers were working fine except for WPBeginner. When we tried going to our phpMyAdmin, we ended up getting the error:
#1045 – Access denied for user ‘foo’@’%’ (using password: YES)
We got on the phone with HostGator and their support quickly found the problem. Somehow our user’s permissions were reset. Not sure how that happened, but apparently that was the reason. They went back in and restore the permissions and we were able to get the site back live.
So if you get the access denied error in either connecting to your phpMyAdmin or through testconnection.php results, then you should contact your host right away to get them to fix it.
Solutions that Worked for Others

It is important to note, that these may not work for you. Use at your own risk and make sure that you have sufficient backups if anything goes wrong.
Deepak Mittal said that his client was getting the error that database needs to be repaired. Even after repairing the database, the error did not go away. He tried various things and at the end, the issue was the site url. Apparently that was changed which caused the error to persist. He ran the SQL query by going to phpMyAdmin:
1
UPDATE wp_options SET option_value=’YOUR_SITE_URL’ WHERE option_name=’siteurl’
Make sure to replace YOUR_SITE_URL with the actual url example: /www.wpbeginner.com. The wp_options will be different if you have changed the default WordPress database prefix.
This seemed to fix the issue for him and few others that commented on his post as well.
Sachinum suggested that he was able to connect the database with testconnection.php, so he changed the wp-config.php user to the root user. WordPress started to work perfectly fine. Then he reverted the settings back to the database-user, and it continued to work. He could not figure out what was wrong, but concluded that it was a typo.
Cutewonders suggested that they removed the content of active_plugins in wp_options table and edited the contents of recently_edited. Basically that seemed to fix the problem. Please their full response here.
We read on numerous sources that users simply uploaded a fresh copy of WordPress and it fixed the error.
This is a really frustrating error. What have you tried that seemed to work for you? We would be happy to expand on this resource, so others do not have to waste as much time finding a solution.

How to Fix the Error Establishing a Database Connection in WordPress


Try and secure PHP.INI settings

vi /etc/php.ini
/ disable_functions
disable_functions =exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source

allow_url_fopen=Off
allow_url_include=Off

Restart HTTPD
systemctl httpd restart
file_uploads=Off

—-
DoS control

# seconds
max_execution_time = 30
max_input_time = 30
memory_limit = 40M


Securing your tmp folders …. Add nodev, nosuid, and noexec options to /tmp

Add nodev, nosuid, and noexec options to /tmp

Edit the file /etc/fstab, enter:
# nano /etc/fstab

Locate the /tmp line:

UUID=0....aa4 /tmp    ext4    defaults        1 2

Append the text ,nodev,nosuid,noexec to the list of mount options in column 4. In the end, your entry should look like as follows:

UUID=0....aa4 /tmp    ext4    defaults,nodev,nosuid,noexec        1 2

Save and close the file.

Add nodev, nosuid, and noexec options to /dev/shm

Edit the file /etc/fstab, enter:
# nano /etc/fstab
Locate the /dev/shm line:

tmpfs    /dev/shm    tmpfs   defaults        0 0

Append the text ,nodev,nosuid,noexec to the list of mount options in column 4. In the end, your entry should look like as follows:

tmpfs    /dev/shm    tmpfs   defaults,nodev,nosuid,noexec        0 0

Save and close the file.

You can bind /tmp to /var/tmp

You bind /tmp to /var/tmp.

Edit the file /etc/fstab, enter:
# nano /etc/fstab
Append the following line:
/tmp    /var/tmp    none     rw,noexec,nosuid,nodev,bind 0 0

Save and close the file.

Set nodev, nosuid, and noexec options without rebooting the Linux server

Type the following command as root user:

## Bind /tmp to /var/tmp
 mount -o rw,noexec,nosuid,nodev,bind /tmp/ /var/tmp/
## Remount /tmp
 mount -o remount,noexec,nosuid,nodev /tmp
## Remount /dev/shm
 mount -o remount,noexec,nosuid,nodev /dev/shm

Verify new settings:
# mount

tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
/tmp on /var/tmp type none (rw,noexec,nosuid,nodev,bind)


How to connect to old iLO with new Java ;()

In order to use iLO console.. You need to add the URL to security settings for Java..

Do the following in Windows:

Control Panel
Programs > Java
Java Control Panel > Security Tab

Find Exception Site List and add the following:

/ip.ip.ip.ip
/domain-name.here.com

Log in to iLO using the provided username and password.

Accept the stuff that pops up from Java.. and you should be able to control your server….


How to install .NET Framework 3.5 on Windows Server 2012 / R2

If you are trying to install .NET Framework 3.5 from the Server Manager GUI, you will see this when installing the feature:
“Do you want to specify an alternate source path? One or more installation selections are missing source files…”

 

To solve this, you can either:

1. Go to a command prompt and enter this:
dism /online /enable-feature /featurename:NetFX3 /all /Source:d:\sources\sxs /LimitAccess

Note: Source should be the Windows installation disc. In my case, this was located on D:

2. Go down to “Specify an alternate source path” and enter “d:\sources\sxs” as the path.

Once completed – you should see under your features list as installed.


Cisco ASA to Juniper ScreenOS to Juniper JunOS Command Reference Cheat Sheet

Cisco ASA Juniper ScreenOS (SSG) Juniper JunOS (SRX)
show log get event show log messages
show log messages | last 20 (see the 20 most recent logs)
show ip get interface show interface terse
show failover get nsrp show log jsrp
show chassis cluster [status|statistics|interfaces]
no failover active exec nsrp vsd [vsd] mode backup request chassis cluster failover redundancy-group [group] node
show route get route show route
show connections get session show security flow session
show clock get clock show system uptime
show version (to get uptime) get system show system uptime
show running-config get config show config
show version (to get serial number) get chassis show chassis hardware detail
show access-list get policy show security policies
show crypto isakmp sa get ike cookie show security ike security-associations
show crypto ipsec sa get sa show security ipsec security-associations
clear crypto isakmp sa clear ike cookie clear security ike security-associations
clear crypto ipsec sa clear sa clear security ipsec security-associations
show cpu get perf cpu show chassis routing-engine
show proc cpu-usage show system processes extensive
show int (for i/o of bytes)  get counter statistics sh int
ssh x.x.x.0 y.y.y.0 inside set admin manager-ip x.x.x.0 y.y.y.0
set ssh enable
set security zones security-zone TRUST host-inbound-traffic system-services ssh
show run [cry isakmp|tunnel-group]? get ike gateway show config security ike
show config security ipsec
interface Ethernet1
shutdown
set interface ethernet0/0 phy link-down set interfaces ge-0/0/3 disable
interface Ethernet1
no shutdown
unset interface ethernet0/0 phy link-down delete interfaces ge-0/0/3 disable
route outside 1.1.1.0 255.255.255.0 1.1.1.2 set route 1.1.1.0/24 interface bgroup3/0 gateway 1.1.1.2 set routing-options static route 10.10.10.128/25 next-hop 172.16.100.1
logging host INSIDE 1.1.1.1
logging trap notification
set syslog config 1.1.1.1 facilities local5
set syslog src-interface ethernet1/0
set syslog enable
set system syslog source-address 10.14.4.4
set system syslog host 1.1.1.1 any notice
ntp server 1.1.1.1 source OUTSIDE set ntp server 1.1.1.1
set ntp server src-interface ethernet3/0
set clock ntp
exec ntp update
set system ntp server 1.1.1.1 prefer
capture CAP1 match ip host 1.1.1.1 host 2.2.2.2 clear db
set console dbuf
set ffilter src-ip 1.1.1.1 dst-ip 2.2.2.2
debug flow basic

— OR —

snoop filter ip src-ip 1.1.1.1 dst-ip 2.2.2.2 direction both
clear dbuf
snoop

edit security flow traceoptions
set file TSHOOT
set flag basic-datapath
set packet-filter IN-TO-OUT source-prefix 10.1.1.100/32 destination-prefix 10.2.0.3/32
show capture CAP1 get dbuf stream show log TSHOOT
clear capture CAP1 undebug all
unset ffilter

— OR —

snoop filter delete

deactivate security flow traceoptions
delete security flow traceoptions

cPanel : FTP : no route to host

Problem: Can connect to server via command line ftp. While doing an “listing” ls – it returns – ftp: connect: No route to host

You need to add nf_conntrack_ftp the list of iptables modules in /etc/sysconfig/iptables-config and restart the iptables service

nano /etc/sysconfig/iptables-config
IPTABLES_MODULES”nf_conntrack_ftp”
Save…
service iptables stop
service iptables start


Shortcuts

General

  1. ALT+TAB: This is now the equivalent of knowing what the “enter” key does. You should certainly have a good handle on it if you are in front of a computer for more than 5 minutes on any given day.
  2. WIN+TAB: On Aero themes, it’s ALT+TAB on steroids
  3. ALT+ESC: Quickly minimize move what you’re looking at to the bottom of your window stack. Great for when the boss sneaks up on you while you’re browsing gonewild or something. Bonus is that it doesn’t give the telltale “blip” on the screen of ALT+TAB that any boss worth his salt will recognize.
  4. CTRL+X, C and V: Cut, Copy, Paste…respectively.
  5. CTRL+F, or H: Find, Replace…respectively.
  6. CTRL+Z, Y: Undo, Redo
  7. CTRL+A: Select All
  8. SHIFT+Arrow Keys: Select text
  9. CTRL+Arrow Keys: Move across words in text
  10. CTRL+SHIFT+Arrow Keys: Select words/lines/paragraphs of text.
  11. CTRL+Backspace: Deletes previous word/character block
  12. CTRL+Delete: Deletes next word/character block
  13. CTRL+SHIFT+ESC: Windows Task Manager. No more ALT+CTRL+DELETE!
  14. WIN+L: Lock yo shit
  15. WIN+M or WIN+D: Minimize all the things.
  16. WIN+SHIFT+M: Undoes WIN+M/D
  17. CTRL+B: Toggle Bold formatting (works in most word processors or other text-formatting editors)
  18. CTRL+I: Toggle Italic formatting
  19. CTRL+U: Toggle Underline
  20. WIN+ R: Open “Run” Prompt

Multi-Monitor

  1. WIN+Arrow keys: Shift position within current monitor
  2. WIN+SHIFT+Arrow keys: Move window to different monitor.

Windows Explorer

Note: many of these work the same in most browsers where applicable

  1. WIN+E: Open new instance of Windows Explorer at the My Computer location
  2. ALT+D: Move cursor to the location/url bar.
  3. CTRL+W: Close tab or browser window.
  4. CTRL+N: When already in Explorer, this opens a new instance of explorer at your current location
  5. SHIFT+DELETE: Deletes a file, bypassing the recycle bin.
  6. CTRL+SHIFT+N: New folder
  7. F2: Rename file. Tab from this to continue down the row with renaming.

Browsing the intertubes

  1. CTRL+L: Move the cursor to the URL bar
  2. CTRL+K: Move the cursor the the search box
  3. CTRL+W: Close current window
  4. CTRL+SHIFT+W: This is what I like to call “The Productivity Shortcut”. Closes your browser.
  5. CTRL+N: New browser window
  6. CTRL+SHIFT+N (Chrome): Incognito window. Use CTRL+SHIFT+P in Firefox.
  7. CTRL+T: New Tab
  8. CTRL+SHIFT+T: Open the most recently closed tab.
  9. CTRL+TAB: Move to the next tab.
  10. CTRL+SHIFT+TAB: Move to the previous tab.
  11. CTRL+1-9: Go to the tab at the position indicated by the number you press. E.g., press CTRL+1 takes you to the first tab.
  12. CTRL+R: Reload the tab. F5 does this too. SHIFT+F5 will do a full reload of any cached data as well, great for when you’re messing around with CSS
  13. CTRL+U: View Source
  14. CTRL+P: Print
  15. CTRL+H: View your history
  16. CTRL+B or CTRL+SHIFT+B: Bookmarks. In Chrome, the SHIFT version toggles the bookmarks bar.
  17. CTRL+D: Bookmark the current page
  18. CTRL+0: Reset zoom
  19. CTRL+Plus/Minus sign: Adjust zoom
  20. SHIFT+delete: Remove suggestion from autocomplete (credit to /u/DirkDasterLurkMaster[3] ) MS Excel
  21. CTRL+Arrow keys: Navigate around a region. For example, press CTRL+DOWN ARROW and it will take you to the first empty cell in the column you are in.
  22. CTRL+SHIFT+ARROWS: Highlights the region
  23. SHIFT+ARROWS: Highlight individual cells
  24. CTRL+SHIFT+R: Fill right.
  25. CTRL+SHIFT+D: Fill down
  26. CTRL+SHIFT+L: Activate column filtering.
  27. CTRL+SHIFT+1-6: Apply various number formats. One=Decimal, 2=Time, 3=Date, 4=Currency, 5=Percent, 6=Scientific.
  28. CTRL+SHIFT+~: Apply general numeric formatting, no decimals
  29. CTRL+SHIFT+7: Apply thin outer border around the selected region of cells
  30. CTRL+ALT+V: Paste Special Menu (credit to (561) 224-2347[4] )
  31. CTRL+SHIFT+Page Up/Down: Navigate between worksheets (credit to /u/folderol[5] )
  32. 773-982-6948[6]

Outlook

  1. CTRL+N: New item, depending upon the context. i.e., if you are in the mail window, it will open a new email to compose. If you are in the calendar, a new appointment.
  2. CTRL+1-5: Switch context, 1=mail, 2=calendar, 3=contacts etc.
  3. F9: Send/Receive all
  4. CTRL+U (Mail): Mark item unread. CTRL+Q marks it read
  5. SHIFT+DELETE: Permanently delete an item
  6. CTRL+F: Forward an item
  7. CTRL+R: Reply (mail).
  8. CTRL+SHIFT+B: Address Book
  9. 437-888-1092[7]

Facebook[8]

  1. c – Comment when on a story in News Feed
  2. j and k – Scroll between News Feed stories (like RES)
  3. l – like or unlike a selected story
  4. q – search for a friend to chat with
  5. p – Focus on the text box when making a post
  6. / – Search

Access Keys for Facebook: (Use CTRL+ALT+# in FF, ALT+# in Chrome and IE)

  1. 0 – Help
  2. 1 – Home
  3. 2 – Timeline
  4. 3 – Friends
  5. 4 – Inbox
  6. 5 – Notifications
  7. 6 – Account Settings
  8. 7 – Privacy
  9. 8 – About
  10. 9 – Terms
  11. m – New Message

List of GMAIL Shortcuts[9]

And of course…(760) 270-2359[10] , available if you have RES[11]

That’s all I’ve got for now…

If there’s any interest in more “esoteric” shortcuts…such as for things like VS or SSMS, then I might be inclined to share that knowledge as well. For now, though, I have to go and apply said knowledge before I get my ass fired…

EDIT:

Visual Studio (2012, maybe a few others)

Note: VS is a little more customize-able than the others on this list. These are the default bindings, but you can easily adjust them in the Options

  1. CTRL+ALT+O or N: Open or Create VS Project
  2. SHIFT+ALT+O or N: Open or Create Website project
  3. CTRL+SHIFT+A: Add new item
  4. SHIFT+ALT+A: Add Existing Item
  5. CTRL+SHIFT+S: Save all of the things
  6. CTRL+SHIFT+W: View the current webpage object in your browser.
  7. F5: Start Debugging
  8. CTRL+F5: Start without going into the debugger
  9. CTRL+SHIFT+B: Build solution
  10. F11: Step Into
  11. F10: Step Over
  12. SHIFT+F11: Step Out
  13. CTRL+SHIFT+F5: Restart Debugging
  14. F12: Go To Definition (You can also CTRL+Click)
  15. CTRL+F12: Go to declaration
  16. CTRL+Up/Down arrow: In a code window, this shifts the window without moving your cursor. Love this one.
  17. ALT+Up/Down: Move line of code (this might be a part of Productivity Power Tools…I can’t remember if it was integrated in VS2012, prior to that it’s definitely PPT only though)
  18. CTRL+X: If you do this without highlighting anything, it will cut the entire line. Same applies to CTRL+C. 1.CTRL+SHIFT+V: Cycle through the clipboard ring. Again, I love this one. If you are moving parts of code to different places and don’t want to switch back and forth, just copy each one individually, then use this to pull them up.
  19. CTRL+I: Incremental search. This is like a mini-find function. Press it and start typing, it will go to the next instance of what you are looking for. Press it again, and it goes to the next one. It’s a little less “overhead” than CTRL+F, especially pre-2012.
  20. CTRL+K, C: Comment selected line(s)
  21. CTRL+K, U: Uncomment selected line(s)
  22. CTRL+ALT+L: Go to the solution explorer
  23. F4: Properties Window
  24. ALT+SHIFT+ENTER: Toggle Full Screen
  25. CTRL+ALT+X: Toolbox

/www.reddit.com/r/AskReddit/comments/2g7wvh/what_is_a_keyboard_shortcut_that_everyone_must/