ssh -D 8080 -C -N user@server.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../paper-slider/paper-slider.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Queue | |
import threading | |
import multiprocessing | |
threads_count = 10 | |
q = Queue.Queue() | |
def sum(): | |
yet_not_finished = True | |
while yet_not_finished: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Running tests in parallel with testng. | |
**/ | |
//Generate tests to be run in parallel | |
//Important! see paralell=true | |
@DataProvider(name = "dataProvider", parallel = true) | |
public Object[][] generateTets() throws Exception { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.xendera.framework.server.constraints | |
import play.api.data.{Forms, Mapping} | |
import play.api.data.validation.{Constraint, Invalid, Valid, ValidationError} | |
object FormConstraints { | |
private val PasswordConstraint = "constraint.xendera.password" | |
private val MinLengthMessage = PasswordConstraint + ".error.minLength" | |
private val MinLength = 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InvitationExpiredException(invitation: Invitation, i18nApi: I18nApi, lang: String = I18nApi.DefaultLangCode) | |
extends ForbiddenException( | |
s"Invitation to ${invitation.email} is expired by date ${invitation.expiredDate}", | |
Some(i18nApi.message(lang, "invitation.error.expired")) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am basilboli on github. | |
* I am basilboli (https://keybase.io/basilboli) on keybase. | |
* I have a public key ASANXs4SqHsixAblVdEMq3yhvBD0D-F8bhKBwCoCjRiHTgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### 1. launch the following command in the terminal | |
ssh -D 8080 -C -N user@server.com | |
#### 2. use falcon proxy https://chrome.google.com/webstore/detail/falcon-proxy/gchhimlnjdafdlkojbffdkogjhhkdepf | |
#### to connect to local 127.0.0.1 socks proxy, port 8080 | |
#### 3. enjoy! | |
#### specially for louis :) |