Skip to content

Instantly share code, notes, and snippets.

View Destitute-Streetdwelling-Guttersnipe's full-sized avatar
🎯
Focusing

DSG (Destitute Streetdwelling Guttersnipe) Destitute-Streetdwelling-Guttersnipe

🎯
Focusing
View GitHub Profile
@Destitute-Streetdwelling-Guttersnipe
Destitute-Streetdwelling-Guttersnipe / std__string_internals.md
Last active May 9, 2024 10:32
Short / Small String Optimization (SSO) implementations in std::string

Short / Small String Optimization (SSO) implementations in std::string

Short / Small String Optimization (SSO) is a technique to improve performance when working with short strings.

Here are the internals of std::string in popular standard libraries:

MSVC STL (popular in Windows)

- at 0x00 int64       dataPtr
:: Setup default environment for developers
:: - Version: 1.2
:: How to use:
:: - Run from cmd: START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/nobitagamer/a985aeee3409a1a846c7deab5e60d933/raw/
:: - From IE: http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/nobitagamer/a985aeee3409a1a846c7deab5e60d933/raw/
Set-ExplorerOptions -showHidenFilesFoldersDrivers -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst WindowsInstaller31 -source webpi
@Destitute-Streetdwelling-Guttersnipe
Destitute-Streetdwelling-Guttersnipe / ReadMe.md
Created October 26, 2023 09:44 — forked from TrQ-Hoan/ReadMe.md
A simple scripts setups new Env Windows
Set-ExecutionPolicy -ExecutionPolicy Bypass -Force
@Destitute-Streetdwelling-Guttersnipe
Destitute-Streetdwelling-Guttersnipe / espeo-initial-server-analysis.sh
Created October 26, 2023 09:43 — forked from tomaszklim/espeo-initial-server-analysis.sh
Espeo Software initial server analysis script, for future customers
#!/bin/sh
# Espeo Software server analysis script
# Written by Tomasz Klim
# Version 1.2
#
# Run this script as root and send us the created TGZ package.
WD=`pwd`
path=$WD/analysis
mkdir -p $path/etc $path/log $path/ls $path/proc
[GF2-inlined]: http://latex.codecogs.com/svg.latex?%5Cinline%20%5Ctextrm%7BGF%7D%282%29
[GF2p15-inlined]: http://latex.codecogs.com/svg.latex?%5Cinline%20%5Ctextrm%7BGF%7D%282%5E%7B15%7D%29
[GF2p15p17-inlined]: http://latex.codecogs.com/svg.latex?%5Cinline%20%5Ctextrm%7BGF%7D%28%282%5E%7B15%7D%29%5E%7B17%7D%29
[A-inlined]: http://latex.codecogs.com/svg.latex?%5Cinline%20A
[B-inlined]: http://latex.codecogs.com/svg.latex?%5Cinline%20B
[D-inlined]: http://latex.codecogs.com/svg.latex?%5Cinline%20D
[G-inlined]: http://latex.codecogs.com/svg.latex?%5Cinline%20G
[M-inlined]: http://latex.codecogs.com/svg.latex?%5Cinline%20M
[P-inlined]: http://latex.codecogs.com/svg.latex?%5Cinline%20P
[h-inlined]: http://latex.codecogs.com/svg.latex?%5Cinline%20h
@Destitute-Streetdwelling-Guttersnipe
Destitute-Streetdwelling-Guttersnipe / README.md
Created June 5, 2023 00:53 — forked from altbdoor/README.md
Sublime Text 3 plugin to automatically close purchase pop up on save
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sublime_plugin
import subprocess
from time import sleep
import sys
cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip()
log = lambda message: sys.stderr.write("Log: %s\n" % message)
> * Go to [hexed.it](https://hexed.it/)
> * Click "Open File" and choose your sublime_text.exe **(DON'T FORGET TO BACKUP YOUR EXE FILE)**
> * Go to Search and in "Search for" put: C3 C6 01 00 C3
> * In Search Type select "Enable replace" and put: C3 C6 01 01 C3
> * Click "Find next" then "Replace"
> * Do the same thing with: 51 31 C0 88 05 => 51 b0 01 88 05
> * Click "Save as" then name it: sublime_text
> * Copy your modified sublime_text.exe to directory Sublime Text