Skip to content

Instantly share code, notes, and snippets.

View Ldes's full-sized avatar
🖖
I may be slow to respond.

L Des Ldes

🖖
I may be slow to respond.
View GitHub Profile
@Ldes
Ldes / private_fork.md
Created May 9, 2024 09:46 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@Ldes
Ldes / jivosite.widget.js
Last active April 8, 2019 14:54
Ускоряем сайт с JivoSite. Отложенная загрузка онлайн-консультанта. #pagespeed #insights #JivoSite
// https://habr.com/ru/post/447262
(function () {
document.jivositeloaded = 0;
var widget_id = '#WidgetId#';
var d = document;
var w = window;
function l() {
var s = d.createElement('script');
s.type = 'text/javascript';
s.async = true;
@Ldes
Ldes / fix-corrupt-serialized-data.php
Last active February 5, 2019 13:35
Following snippet will attempt to read & parse recursively damaged serialized string (blob data).
<?php
/*
* Regex/code to fix corrupt serialized PHP data
*
* Following snippet will attempt to read & parse recursively damaged serialized string (blob data).
* For example if you stored into database column string too long and it got cut off.
* Numeric primitives and bool are guaranteed to be valid, strings may be cut off and/or array keys may be missing.
* The routine may be useful e.g. if recovering significant (not all) part of data is sufficient solution to you.
* Via: https://stackoverflow.com/a/38708463/1723496