Stash current changes
- git > Stash > Stash (Include Untracked)
Create stash as patch
git stash show "stash@{0}" -p > changes.patch
Apply patch
''' | |
by Adrian Statescu <adrian@thinkphp.ro> | |
Twitter: @thinkphp | |
G+ : http://gplus.to/thinkphp | |
MIT Style License | |
''' | |
''' | |
Binary Search Tree | |
------------------ |
class Node : | |
def __init__( self, data ) : | |
self.data = data | |
self.next = None | |
self.prev = None | |
class LinkedList : | |
def __init__( self ) : | |
self.head = None |
success: function(data) { | |
var blob=new Blob([data]); | |
var link=document.createElement('a'); | |
link.href=window.URL.createObjectURL(blob); | |
link.download="<FILENAME_TO_SAVE_WITH_EXTENSION>"; | |
link.click(); | |
} |
#------------------------------------------------------------------------------ | |
# Top 20K hashes from the Troy Hunt / haveibeenpwned Pwned Passwords list v2 (2018-02-21) | |
# with frequency count and cracked plaintext passwords | |
# | |
# The latest version of this file can be found here: | |
# https://gist.github.com/roycewilliams/281ce539915a947a23db17137d91aeb7 | |
# | |
# NOTE: THIS FILE IS DEPRECATED. | |
# The equivalent of this file, but based on v6 of the Pwned Passwords, is here: | |
# https://gist.github.com/roycewilliams/226886fd01572964e1431ac8afc999ce |
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
/// Below is the usage for this function, you'll only have to import this file | |
/// [radius] takes a double and will be the radius to the rounded corners of this modal | |
/// [color] will color the modal itself, the default being `Colors.white` | |
/// [builder] takes the content of the modal, if you're using [Column] | |
/// or a similar widget, remember to set `mainAxisSize: MainAxisSize.min` | |
/// so it will only take the needed space. |
package com.aniketkadam.sharevideoshortcut | |
import org.junit.rules.TestWatcher | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.ExperimentalCoroutinesApi | |
import kotlinx.coroutines.test.TestCoroutineDispatcher | |
import kotlinx.coroutines.test.resetMain | |
import kotlinx.coroutines.test.setMain | |
import org.junit.runner.Description |
This is a short and simple example on how to build a proper Keycloak cluster, using DNS_PING
as discovery protocol and an NGINX server as reverse proxy.
If you prefer to use JDBC_PING, see @xgp's example gist here: https://gist.github.com/xgp/768eea11f92806b9c83f95902f7f8f80
Please see also my video about Keycloak Clustering: http://www.youtube.com/watch?v=P96VQkBBNxU
NOTE: The video covers JDBC_PING
protocol and uses the legacy Keycloak Wildfly distribution!