Skip to content

Instantly share code, notes, and snippets.

@jgod
jgod / gist:6801992
Created October 2, 2013 23:19
Creating index files for deb repos
cd my-repository
dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz
dpkg-scansources source /dev/null | gzip -9c > source/Sources.gz
@jgod
jgod / gist:e38d77efd6c5a8875321
Last active August 29, 2015 14:02
Cocos2d-x v3 Lambdas
auto const CB1 = CallFunc::create([&](){});
// Better to use CallFuncN as default if you need to pick one to use generically.
auto const CB2 = CallFuncN::create([&](Ref* const sender)
{
if (!sender) {return;}
// Do something.
});
@jgod
jgod / .gitignore
Created August 14, 2014 00:27 — forked from octocat/.gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@jgod
jgod / gist:d9baab7c92634b3d46ba2b05bb3525a7
Created October 2, 2021 10:43
Best JetBrains Plugins
* GitToolBox by Lukasz Zielinski
* Rainbow Brackets by izhangzhihao
* HighlightBracketPair by AprilViolet
* .env files support by Adel F
* String Manipulation by Olivier Smedile, Vojtech Krasa
* Material Theme UI by AtomMaterial
* Atom Material Icons by AtomMaterial
* Monokai Pro Theme by Subtheme
@jgod
jgod / README.md
Created January 1, 2024 14:01 — forked from tmilos/README.md
Modified Preorder Tree Traversal

Modified Preorder Tree Traversal

Hierarchical data metrics that allows fast read operations on tree like structures.

Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.

Sample implementation

@jgod
jgod / InstallZeroTier.ps1
Created February 23, 2024 02:32 — forked from wise-io/InstallZeroTier.ps1
Installs Latest ZeroTier One Client
<#
.SYNOPSIS
Installs ZeroTier
.DESCRIPTION
Install ZeroTier and join/configure ZeroTier network
.EXAMPLE
./ios-InstallZeroTier.ps1
.NOTES
This script will install PowerShell 7 if it is not present.
A UAC prompt will appear during install if -UI is used.