Skip to content

Instantly share code, notes, and snippets.

View Xaerxess's full-sized avatar

Grzegorz Rożniecki Xaerxess

View GitHub Profile
@Xaerxess
Xaerxess / cloud-init.yml
Last active April 16, 2024 08:07
cloud-init: docker + rancher
#cloud-config
apt:
sources:
docker.list:
source: deb [arch=amd64] https://download.docker.com/linux/ubuntu $RELEASE stable
keyid: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
package_update: true
package_upgrade: true
testing for $col_count == 1
Rate for-each for-c
for-each 2118644/s -- -40%
for-c 3521127/s 66% --
----------------------------------------
testing for $col_count == 2
Rate for-each for-c
for-each 1923077/s -- -35%
for-c 2958580/s 54% --
----------------------------------------
@Xaerxess
Xaerxess / ClassReflectionUtils.java
Created September 27, 2012 11:32
Custom tag used to get static final class fields in JSP (based on Jakarta 'unstandard' custom tag library API)
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@Xaerxess
Xaerxess / gist:795806
Created January 25, 2011 22:20
extract data from .deb package
ar p mypackage.deb data.tar.gz | tar zx
tar czf - /path/files-to-copy | ssh user@remotehost "cat > /path/data.tgz"
find . -type f -exec md5sum {} \;>> /checksums.md5