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
http://updates-http.cdn-apple.com/2019/cert/061-39476-20191023-48f365f4-0015-4c41-9f44-39d3d2aca067/InstallOS.dmg |
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
generated Apr 11, 2023 15:45:58 | |
system Ubuntu 22.10 Linux 5.19.0-38-generic x86_64 | |
emacs 28.1 ~/.emacs.d/ | |
doom 3.0.0-pre PROFILE=_@0 HEAD -> master 4e105a95a 2023-03-22 | |
18:29:38 -0400 ~/.doom.d/ | |
shell /bin/zsh | |
features ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS | |
HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 | |
M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG | |
SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM |
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
2015-10-12 17:07:44 | |
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.60-b23 mixed mode): | |
"RMI TCP Connection(5)-169.254.231.226" #1211 daemon prio=5 os_prio=0 tid=0x0000000023555000 nid=0x29bc runnable [0x0000000043aee000] | |
java.lang.Thread.State: RUNNABLE | |
at java.net.SocketInputStream.socketRead0(Native Method) | |
at java.net.SocketInputStream.socketRead(Unknown Source) | |
at java.net.SocketInputStream.read(Unknown Source) | |
at java.net.SocketInputStream.read(Unknown Source) | |
at java.io.BufferedInputStream.fill(Unknown Source) |
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 mcamou on github. | |
* I am mcamou (https://keybase.io/mcamou) on keybase. | |
* I have a public key whose fingerprint is 6923 124D 0475 7E5E 5B49 5657 8640 C728 35D2 7E03 | |
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
scala> class DomainObject | |
defined class DomainObject | |
scala> trait UpdateView[D <: DomainObject, V <: UpdateView[V,D]] { | |
| self: V => | |
| def id: Option[String] | |
| def withId(newId: String): V | |
| def withNewId: V = if (id.isEmpty) this.withId("xxx") | |
| else this | |
| } |
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
trait JsonLoader[T <: DomainObject] extends Loader[T] { | |
self: Repository[T] with JsonCommonDefinitions[T] => | |
implicit def ev: Manifest[T] | |
def load { | |
atomic { implicit txn => | |
val parsed = parse(new FileReader(jsonPath.toFile)) | |
parsed.extract[List[T]].foreach { obj => add(obj, false) } |
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
def wrap[T](obj: Any)(implicit tag: ClassTag[T]): T = { | |
obj match { | |
case t: T => t | |
case jrObj: JRubyObject if tag.runtimeClass == classOf[RubyObject] => new RubyObject(jrObj) | |
case _ if tag.runtimeClass == classOf[Nothing] || tag.runtimeClass == classOf[Unit] => null:T | |
case _ => throw new IllegalTypeConversion(obj.getClass, tag.runtimeClass) | |
} | |
} | |
def send[T](target: JRubyObject, name: Symbol, args: Any*)(implicit tag: ClassTag[T]): T = { |
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
##### JPA - embedding | |
@Embeddable | |
public class AuditInfo implements Serializable { | |
protected static final long serialVersionUID = 1L; | |
@Temporal(TemporalType.TIMESTAMP) | |
@Column(nullable = false) | |
private Date createdAt; |
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
mario@tumbolia ~ 1 % scala | |
Welcome to Scala version 2.9.0.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_26). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> def x(a:Int,b:Int,c:Int,d:Int = 0) = println(a,b,c,d) | |
x: (a: Int, b: Int, c: Int, d: Int)Unit | |
scala> x(a=1,b=2,c=3) | |
(1,2,3,0) |
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 akka.amqp._ | |
import AMQP._ | |
... | |
val connection = AMQP.newConnection(ConnectionParameters(host = Config.amqpHost, | |
port = Config.amqpPort, | |
virtualHost = Config.amqpVhost, | |
username = Config.amqpUser, | |
password = Config.amqpPasword, |
NewerOlder