Skip to content

Instantly share code, notes, and snippets.

View childnode's full-sized avatar

Marcel Trautwein childnode

View GitHub Profile
@briandominick
briandominick / asciidoc-static.adoc
Last active March 11, 2024 18:24
Static Site Generators with AsciiDoc Support

There are 28 static site generators that support AsciiDoc sourcing.

@boneskull
boneskull / README.md
Last active June 24, 2023 13:42
syntax highlighting for Vagrantfile in non-RubyMine JetBrains IDEs
  1. Add this file to /path/to/prefs/filetypes/
  2. Restart IDE

This page will help you find the correct directory.

@jaceklaskowski
jaceklaskowski / deployment-tool-ansible-puppet-chef-salt.md
Last active January 3, 2024 22:12
Choosing a deployment tool - ansible vs puppet vs chef vs salt

Requirements

  • no upfront installation/agents on remote/slave machines - ssh should be enough
  • application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
  • configuration templating
  • environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
  • deployment process run from Jenkins

Solution

@rhart
rhart / Ratpack.groovy
Created December 20, 2014 23:09
Ratpack HTTP Proxy
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import ratpack.handling.Context
import ratpack.handling.Handler
import ratpack.http.client.HttpClient
import ratpack.http.client.StreamedResponse
import ratpack.http.MutableHeaders
import ratpack.http.client.RequestSpec
import static ratpack.groovy.Groovy.ratpack
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
-cef-delaypageload - Enable early-out for known page loads
pkg=$(adb shell pm path com.koushikdutta.backup)
# apparently pm path appends a carriage return which screws
# up the class name in dalvikvm invocation
pkg=$(echo $pkg | cut -d : -f 2 | sed s/\\r//g)
echo $pkg
adb shell << EOF
CLASSPATH=$pkg app_process /system/bin com.koushikdutta.shellproxy.ShellRunner2 $@ &
exit
EOF
anonymous
anonymous / flow3 doctrine an SQLite bash output
Created December 14, 2012 08:49
relates to Settings.yaml https://gist.github.com/4283679 and Migrations/Sqlite/Version20121211145611.php https://gist.github.com/4283731
-bash:$ ./flow3 doctrine:entitystatus
Found 12 mapped entities:
[OK] TYPO3\FLOW3\Resource\ResourcePointer
[OK] TYPO3\FLOW3\Mvc\Routing\ObjectPathMapping
[OK] TYPO3\FLOW3\Resource\Publishing\AbstractPublishingConfiguration
[OK] TYPO3\FLOW3\Resource\Resource
[OK] TYPO3\FLOW3\Security\Account
[OK] TYPO3\FLOW3\Security\Authorization\Resource\SecurityPublishingConfiguration
[OK] TYPO3\FLOW3\Security\Policy\Role
[OK] TYPO3\Party\Domain\Model\AbstractParty
anonymous
anonymous / Version20121211145611.php
Created December 14, 2012 08:48
Flow3, Doctrine and SQLite Migrations/Sqlite/Version20121211145611.php
<?php
namespace TYPO3\FLOW3\Persistence\Doctrine\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration,
Doctrine\DBAL\Schema\Schema;
class Version20121211145611 extends AbstractMigration {
/**
* @param Schema $schema
anonymous
anonymous / Settings.xml with SQLite DB
Created December 14, 2012 08:39
Settings:
TYPO3:
FLOW3:
persistence:
backendOptions:
driver: 'pdo_sqlite'
dbname: 'my.sqlite'
user: 'ad'
password: 'dbpass'
core:
resources:
entities:
'Acme\MyPackage\Domain\Model\User':
Acme_MyPackage_User_Admin: 'ANY'
Acme_MyPackage_User_Me: 'current.securityContext.account.user == this.user && this.user != NULL'
roles:
SimpleUser: []
Administrator: [SimpleUser]