Skip to content

Instantly share code, notes, and snippets.

View basilboli's full-sized avatar
:octocat:
Running on caffeine and solar power ☕️☀️

basilboli basilboli

:octocat:
Running on caffeine and solar power ☕️☀️
View GitHub Profile
#### 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 :)
### 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:
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"))
)
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
@basilboli
basilboli / vpnin10seconds.md
Last active August 3, 2018 10:02
vpn in 10 seconds
@basilboli
basilboli / Test.java
Created October 29, 2013 10:43
Running tests in parallel with testng
/**
* 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 {
@basilboli
basilboli / dabblet.css
Created April 3, 2013 19:29
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@basilboli
basilboli / python-threading-sample
Last active August 29, 2015 14:06
python threading sample
import Queue
import threading
import multiprocessing
threads_count = 10
q = Queue.Queue()
def sum():
yet_not_finished = True
while yet_not_finished:
<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 {