Skip to content

Instantly share code, notes, and snippets.

@SpyWSamara
SpyWSamara / convert.php
Created May 24, 2019 11:49
Convert bitrix resize_cache to webp
<?php
use Bitrix\Main\Diag\Debug;
Debug::startTimeLabel('convert');
$iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(\Bitrix\main\Application::getDocumentRoot().'/upload/resize_cache'));
$files = [];
foreach ($iterator as $entity) {
if ($entity->isDir()) {
@kevinvalk
kevinvalk / msysgit2unix-socket.py
Last active September 11, 2023 21:11 — forked from FlorinAsavoaie/msysgit2unix-socket.py
Updated to better survive crashes and other unexpected behavior.
#!/usr/bin/python
"""
msysGit to Unix socket proxy
============================
This small script is intended to help use msysGit sockets with the new Windows Linux Subsystem (aka Bash for Windows).
It was specifically designed to pass SSH keys from the KeeAgent module of KeePass secret management application to the
ssh utility running in the WSL (it only works with Linux sockets). However, my guess is that it will have uses for other
#!/usr/bin/python
"""
msysGit to Unix socket proxy
============================
This small script is intended to help use msysGit sockets with the new Windows Linux Subsystem (aka Bash for Windows).
It was specifically designed to pass SSH keys from the KeeAgent module of KeePass secret management application to the
ssh utility running in the WSL (it only works with Linux sockets). However, my guess is that it will have uses for other
@wycks
wycks / fuckstrap.css
Last active December 17, 2015 06:29
FuckStrap.css - A framework so terse it shits diamonds.
/*Pixel straps start here*/
/*Scroll hard for % straps*/
.0{ width: 0px;}
.1{ width: 1px;}
.2{ width: 2px;}
.3{ width: 3px;}
.4{ width: 4px;}
.5{ width: 5px;}
.6{ width: 6px;}