Skip to content

Instantly share code, notes, and snippets.

View twokul's full-sized avatar
😎
mischief, mostly.

Alex Navasardyan twokul

😎
mischief, mostly.
View GitHub Profile
@joepie91
joepie91 / vpn.md
Last active November 18, 2024 12:41
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
function unroundedFixed(number, precision) {
let [left, right] = number.toString().split('.');
[right] = right.match(new RegExp(`[0-9]{${precision}}`));
return [left, right].join('.');
}
@tyrcho
tyrcho / Bar.scala
Created March 4, 2013 23:14
play-slick issue : DDL
package models
import scala.slick.session.Database
import Database.threadLocalSession
import play.api.db.slick.Config.driver.simple._
case class Bar(id: Option[Int] = None, name: String)
object Bars extends Table[Bar]("bar") {
def id = column[Int]("id", O.PrimaryKey, O.AutoInc)