Open a telnet connection to the router and run the following commands for a warm or cold reboot:
warm reboot (also soft reboot)
do/o/b
cold reboot (also cold boot, hard reboot or hard boot)
do/o/c
some foobar
Open a telnet connection to the router and run the following commands for a warm or cold reboot:
warm reboot (also soft reboot)
do/o/b
cold reboot (also cold boot, hard reboot or hard boot)
do/o/c
For Windows Vista and newer try to run the following:
winmgmt /verifyrepository
winmgmt /salvagerepository
winmgmt /verifyrepository
To fully rebuild the WMI Repository follow these steps:
for /f %s in ('dir /b *.mof') do mofcomp %s
for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s
for /f %s in ('dir /b de-DE\*.mfl') do mofcomp de-DE\%s
[via]https://support.software.dell.com/de-de/vworkspace/kb/88861[/via]
update tableA a left join tableB b on a.name_a = b.name_b set validation_check = if(start_dts > end_dts, 'VALID', '')
UPDATE payments p INNER JOIN users u ON p.pay_id=u.user_id SET p.pay_email=u.user_email, p.pay_firstname=u.user_firstname, p.pay_lastname=u.user_lastname, p.pay_date=u.user_date
[via]http://stackoverflow.com/a/1262848[/via]
Don'ts
Dos
PHP
// Generate or return salted passwords function crypt2($password, $salt = "") { if($salt == "") { // A higher "cost" is more secure but consumes more processing power $cost = 10; // Create a random salt $salt = strtr(base64_encode(mcrypt_create_iv(16, MCRYPT_DEV_URANDOM)), '+', '.'); // Prefix information about the hash so PHP knows how to verify it later. // "$2a$" Means we're using the Blowfish algorithm. The following two digits are the cost parameter. $salt = sprintf("$2a$%02d$", $cost) . $salt; } // Hash the password with the salt $hash = crypt($password, $salt); return $hash; }
// Save password $hash = crypt2($user_password); // hash the password with salt dbquery("UPDATE users SET user_hash='".$hash."' WHERE user_id='1'");
// Login $sql = "SELECT user_hash FROM users WHERE user_loginname='Admin' LIMIT 1"; [...] $data = dbarray($result); if (hash_equals($data['user_hash'], crypt2($user_pass, $data['user_hash']))) { // Ok! }
[via]http://stackoverflow.com/questions/401656/secure-hash-and-salt-for-php-passwords/, https://alias.io/2010/01/store-passwords-safely-with-php-and-mysql/[/via]
Open Group Policy Editor (gpedit.msc), goto Computer Configuration > Administrative Templates > Control Panel > Personalization > Do not display the lock screen
Today i noticed that our Knowledge Base looks ugly at Internet Explorer. It seems that he ignoring the following CSS attribute:
white-space: pre-warp
After a few test I found out, that by default IE use for intranet page the compatibility mode. OMG...
There are two ways to change this. First you can add a meta attribute the every page:
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
or you can use the Apache Module mod_headers which is my choise:
1. Change Apache2 Config to load the headers_module
LoadModule headers_module modules/mod_headers.so
Header set X-UA-Compatible “IE=Edge”
After you install Windows 8.x or Windows 10, you may find the CD/DVD drive is not recognized. Resolution:
Open Command Prompt as an Administrator and run the following command:
reg.exe add "HKLM\System\CurrentControlSet\Services\atapi\Controller0" /f /v EnumDevice1 /t REG_DWORD /d 0x00000001
Reboot the system and verify if the problem has been resolved.
[via]http://blogs.technet.com/b/asiasupp/archive/2012/03/22/you-may-experience-that-dvd-drive-is-not-recognized-in-windows-8.aspx[/via]
Do you have problems with Veeam Entpoint Backup or Windows Backup fails with VSS error 12289 on a iMac? Just disable the Apple HFS driver and reboot. I use Autoruns from Sysinternals for that:
After that you have no access to the OS X HFS partitions, but for me this is no problem. I haven't use that any time.
[via]http://www.tenforums.com/general-discussion/4556-cannot-make-system-image-vss-error-12289-a-3.html#post207784[/via]
I search for a easy guid to install ipkg on my Synology DS415play with Intel Atom CPU. I found a guid by Edward P:
Connect to your NAS as root through SSH
Go to a temporary folder, for example:
cd /volume1/@tmp
Download the bootstrap script:
wget http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh
Make the downloaded script file executable:
chmod +x syno-i686-bootstrap_1.2–7_i686.xsh
Execute the bootstrap script:
sh syno-i686-bootstrap_1.2–7_i686.xsh
Installation should now be completed. To test it, run:
ipkg update
Enjoy.
[via]https://medium.com/@edwardmp/how-to-install-ipkg-on-a-synology-ds415play-nas-14fa94901275[/via]