[Quick Links] |
Search Site

Site Details

rendered in 0.0675 secs

Captain's Log | Thursday 11th of January 2018

How do I get two divs side by side easily using css?

<style type="text/css">
  /* ping add container and side by side */
  #ping_add_container {
      border: 1px solid blue;
  #pa_left {
      display: inline-block;
      border: 1px solid red;
  #pa_right {
      display: inline-block;
      border: 1px solid green;
  /* ping add container and side by side */

  echo '<div id="ping_add_container">';
    echo '<div id="pa_left">left box</div>';
    echo '<div id="pa_right">right box</div>';
  echo '</div>';

How can I restrict the amount of memory exchange store.exe uses on an SBS Server? | source

  1. Run adsiedit.msc

  2. Connect to: Select a well known Naming Context : [Configuration]

  3. Expand the following:

    • Configuration\Services\Microsoft Exchange\ (First Organization) \Administrative Groups\ (Exchange Administrative Group) \Servers\ (Server Name)

  4. Right click on CN=Information Store and click properties

  5. Update the values of msExchESEParamCacheSizeMin and msExchESEParamCacheSizeMax with values from the following table:
  6. Target Cache Size
    in GB
    for 2010+ (32KB pages)
    for 2007 (8KB pages)

  7. Restart the Information Store

Why set both min AND max sizes?
Because the default min size as of Exch2010SP1 is fairly large, so it will never use your max setting if you don’t set an appropriate min!

how come I'm having html_entity_encode / html_entity_decode issues using codeigniter CI with my input / output?

I had configured
$config['global_xss_filtering'] = TRUE;
which plays about with the input of POST data causing some unusual results on output. I changed it back to FALSE (default) and then turn on xxs_clean in for validation for all items that accept basic input that won't have any html or other script like tags.

Captain's Log | Thursday 11th of January 2018

How do I get one div below another> | underneath src

div style="float:left;">
  yeah boi, mother fucker
div style="float:left; clear: left;">
  holler holler, boyeah

Captain's Log | Friday 6th of October 2017

stop crontab from accidentally deleting / removing the file

alias crontab="crontab -i"

find out how many memory slots are in use and available on linux | ram free

dmidecode -t memory | grep -i size

remove double spaces or more from command output | linux src

df -Ph | sed 's/  */ /g'

show disk partition information including manufacturer, type of disk, size and logical name | linux src

lshw -class disk

stop webmin websites timing out | increase time outs for end of script errors

open the virtual php, httpd conf file and the server php and httpd file and search for “time” and go through all the timeouts and increase to 3600.

Also add a “timeout” parameter to the virtual httpd file, as it only exists in the main server one as default.

I also added “FcgidIOTimeout 3600” to the virtual httpd, but even with that I was still getting errors. I then did the stuff I mentioned earlier and it looks good atm

remove the the timeout info from virtual httpd file
--above may have helped but did not work when doing easyremote-- below resolved it (saying that, the above settings may only take effect when the below is configured, so do it all)
go to website options in virtualmin
set it to run as CGI with php timeout of 3600

Captain's Log | Friday 6th of October 2017

Proxmox: Failed to fetch | src

To prevent error messages accessing the Proxmox VE Enterprise Repository (if you have no Subscription key), you can disable this repo by commenting out the following line and then adding the free one:
nano /etc/apt/sources.list.d/pve-enterprise.list
# deb https://enterprise.proxmox.com/debian wheezy pve-enterprise
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription

Captain's Log | Thursday 28th of September 2017

generate new key pair | linux security ref

update: i tried the ed25519 key, but had issues syncing from phone, as FolderSync didn't support the key type. ended up back with rsa key
check existing keys
for keyfile in ~/.ssh/id_*; do ssh-keygen -l -f "${keyfile}"; done | uniq
generate new key on CLIENT MACHINE - NOT SERVERS
ssh-keygen -t rsa -b 4096 -o -a 100
ssh into server with existing key, and update athorized_keys with new public key, no need to put pub or private key on actual server!!
update authorized_keys FOR ALL ACCOUNTS ALLOWED IN /etc/ssh/sshd_config (you must have users configured here, that's how we know which authorized_keys files to check to ensure only these accounts have access to the system)

repeat for home infrastructure (dan, prox)