Skip to content

Instantly share code, notes, and snippets.

Mahmood Ali notnoop

Block or report user

Report or block notnoop

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@notnoop
notnoop / cmd_test.go
Created Apr 1, 2019
testing command behavior
View cmd_test.go
package main
import (
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
"sync"
"testing"
@notnoop
notnoop / script.sh
Created Nov 21, 2018
illustrating job run behavior after completion with Nomad 0.8.2
View script.sh
root@cc8ad15fa0f9:/tmp/jobs# cat ./test.nomad
job "test"
{
datacenters = ["dc1"]
type = "batch"
task "diamondbcapacitycollector"
{
driver = "exec"
@notnoop
notnoop / lift-webkit-trace.txt
Created May 7, 2011
Stacktrace for errors related to lift-webkit copy resources
View lift-webkit-trace.txt
[info] == lift-webkit / copy-resources ==
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:85)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.getCurrentScope(JavaScriptCompressor.java:559)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.printSymbolTree(JavaScriptCompressor.java:1097)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.compress(JavaScriptCompressor.java:553)
at net.liftweb.sbt.YuiCompressor$$anonfun$net$liftweb$sbt$YuiCompressor$$compressJs$2.apply(YuiCompressor.scala:130)
at net.liftweb.sbt.YuiCompressor$$anonfun$net$liftweb$sbt$YuiCompressor$$compressJs$2.apply(YuiCompressor.scala:129)
at sbt.Control$.trapUnit(Control.scala:19)
at net.liftweb.sbt.YuiCompressor$class.net$liftweb$sbt$YuiCompressor$$compressJs(YuiCompressor.scala:129)
@notnoop
notnoop / ProtoUserSpec.scala
Created May 2, 2011
Sample case to show an infinite recursion in ProtoUser
View ProtoUserSpec.scala
package code
import org.specs._
import net.liftweb.common._
import net.liftweb.record._
// Please note that program compiles without me providing a save method!
class User extends MegaProtoUser[User] with Record[User] {
def meta = User
View SocketDropTestSemaphored.java
import java.io.*;
import java.net.*;
import java.util.concurrent.Semaphore;
/**
* Unit test for detecting connection drops while transmitting
* packets.
*
* In this test, the server closes a connection while the client
* is transmitting data. The expected behavior is for the client
You can’t perform that action at this time.