Архиви на блога

windows 10 disable fastboot

Sometimes you need to disable FastBoot on laptop on which you don’t have such option in the BIOS To do it you can modify following registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power HiberbootEnabled DWORD 0 = Turn off fast startup 1 = Turn

С етикет: , , , , , ,
Публикувано в Без категория

Drupal debug

Sometimes is very hard to debug Drupal when you get white screen of death Very often some module is making the mess To check which module is breaking the site Open includes/module.inc and find function module_invoke_all Add bolded line to

С етикет: ,
Публикувано в Без категория

bash rename file

This is simple script which rename files based on some pattern For example rename all files AABBBCCC and replace BBB with DDD ./ren „AAABBBCCC“ „BBB“ „DDD“ #!/bin/bash # renames.sh # basic file renamer criteria=$1 re_match=$2 replace=$3 for i in $(

Публикувано в linux, Без категория

no cache website

<meta http-equiv=“expires“ value=“Thu, 16 Mar 2000 11:00:00 GMT“ /> <meta http-equiv=“pragma“ content=“no-cache“ />

Публикувано в Без категория, интернет

javascript open window with content in it

This function can be used for oppenign of popup window with content in it function openwin(txt){ var previewWnd = window.open(“,’embed_preview’,’width=500,height=400,scrollbars=1,status=0,location=0,directories=0,’); previewWnd.document.body.innerHTML = txt.replace(/\n/g,““); previewWnd.focus(); }

Публикувано в Без категория