Skip to content

Instantly share code, notes, and snippets.

View dima767's full-sized avatar
🎯
Focusing

Dmitriy Kopylenko dima767

🎯
Focusing
View GitHub Profile
@tlberglund
tlberglund / git-loglive
Last active September 18, 2025 07:57
Log Live Git Command
#!/bin/bash
while :
do
clear
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*
sleep 1
done
@saetia
saetia / gist:1623487
Last active July 5, 2026 06:58
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@terrancesnyder
terrancesnyder / setenv.sh
Created May 23, 2011 00:07
./setenv.sh - example setenv.sh with defaults set for minimal time spent in garbage collection
#! /bin/sh
# ==================================================================
# ______ __ _____
# /_ __/___ ____ ___ _________ _/ /_ /__ /
# / / / __ \/ __ `__ \/ ___/ __ `/ __/ / /
# / / / /_/ / / / / / / /__/ /_/ / /_ / /
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/
# Multi-instance Apache Tomcat installation with a focus
# on best-practices as defined by Apache, SpringSource, and MuleSoft
@Typed package org.mbte.akkatest
import se.scalablesolutions.akka.actor.*
import java.util.concurrent.TimeUnit
import java.util.concurrent.CountDownLatch
import se.scalablesolutions.akka.config.JavaConfig.AllForOne
import se.scalablesolutions.akka.config.JavaConfig.RestartStrategy
import se.scalablesolutions.akka.config.ScalaConfig.Server
class Akka {
@codebrane
codebrane / AttributesFromRawSAML.java
Created January 29, 2010 16:51
Working with SAML in Guanxi
org.guanxi.xal.saml_2_0.protocol.ResponseDocument responseDoc;
responseDoc = ResponseDocument.Factory.parse(pod.getBag().getSamlResponse());
To access the attributes in a SAML2 Response, see:
org.guanxi.sp.guard.AttributeConsumer::processSAML2Response