Skip to content

Instantly share code, notes, and snippets.

@userlond
userlond / sharing-folder-windows-macos-vmware.md
Created June 11, 2025 03:58 — forked from juniorcesarabreu/sharing-folder-windows-macos-vmware.md
Sharing a folder between windows and mac os x on vmware

You need to follow this procedure in order to share files between Windows 7 and Mac OS X on VMWare :

  1. Go in your virtual machine settings and select 'Options' tab.
  2. Click on 'Folder Sharing' and tick 'Always enabled'.
  3. Click on 'Add' button and select a folder you want to share.
  4. Confirm virtual machine settings.
  5. From 'System preferences' on Mac OS X, select 'Sharing'.
  6. Make sure that 'File Sharing' is enabled.
  7. From top menu bar, select 'Go' and 'Computer'.
  8. You will now see a folder named '/'. This is your shared folder between Windows 7 and Mac OS X.
@userlond
userlond / dash-doggybag.py
Created June 11, 2025 03:11 — forked from lucasg/dash-doggybag.py
Bulk downloader for dash docsets (official and user contributed)
#!/usr/bin/env python3
import sys
import json
import os
import os.path
import shutil
import logging
import tempfile
import glob
import argparse
@userlond
userlond / index.php
Created February 12, 2025 10:07
Disable Array Limit plugin for Kint debugger
<?php
\Kint::$plugins = collect(\Kint::$plugins)->filter(function($plugin) {
return $plugin != \Kint\Parser\ArrayLimitPlugin::class;
})->all();
@userlond
userlond / bitrix_find_component_template.php
Created May 6, 2021 05:50
Получить путь к шаблону компонента в Битрикс
$componentName = 'bitrix:menu';
$componentTemplate = 'grey_tabs';
$component = new CBitrixComponent();
$component->InitComponent($componentName, $componentTemplate);
$component->initComponentTemplate();
echo $component->__template->GetFolder();
@userlond
userlond / get_absolute_path_to_class_filename_by_object.php
Last active January 28, 2019 04:38
Get absolute path of class file by its object
<?php
/**
* Get absolute path of class file by its object
* @param $object Object instance
* @return string|null
*/
function get_absolute_path_to_class_filename_by_object($object)
{
$className = get_class($object);
try {
@userlond
userlond / find_relative_path.func.php
Last active February 3, 2016 11:51 — forked from ohaal/find_relative_path.func.php
Find the relative path between two paths
<?php
/**
*
* Find the relative file system path between two file system paths
*
* @param string $frompath Path to start from
* @param string $topath Path we want to end up in
*
* @return string Path leading from $frompath to $topath
*/