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
{ | |
<insert_a_suppression_name_here> | |
Memcheck:Leak | |
match-leak-kinds: definite | |
fun:malloc_zone_malloc | |
fun:recursive_mutex_init | |
fun:lock_init | |
fun:_objc_init | |
fun:_os_object_init | |
fun:libdispatch_init |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | |
<title>Ophto App</title> | |
</head> | |
<body> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | |
<title>Ophto App</title> | |
</head> | |
<body> |
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
var sjcl = require('sjcl'); | |
var RNCryptor = {}; | |
/* | |
Takes password string and salt WordArray | |
Returns key bitArray | |
*/ | |
module.exports.KeyForPassword = RNCryptor.KeyForPassword = function(password, salt) { |
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
var sjcl = require('sjcl'); | |
var RNCryptor = {}; | |
/* | |
Takes password string and salt WordArray | |
Returns key bitArray | |
*/ | |
module.exports.KeyForPassword = RNCryptor.KeyForPassword = function(password, salt) { |
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 event | |
import ( | |
"fmt" | |
"net/http" | |
"net/http/httptest" | |
"testing" | |
"github.com/stretchr/testify/suite" |
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
{ | |
"data": [ | |
{ | |
"name": "Lessons learnt from Redmart by @Sebastian Deckers", | |
"start_time": "2013-12-13T13:00:00+0800", | |
"timezone": "Asia/Singapore", | |
"location": "Plug-In@Blk71", | |
"id": "595830510477311" | |
}, | |
{ |
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 os | |
import sys | |
for roots, dirlist , filelist in os.walk(os.curdir): | |
for file in [os.path.join(roots,filegot) for filegot in filelist]: | |
if "bz2" not in file: | |
print "Compressing %s" % (file) | |
os.system("bzip2 %s" % file) | |
print ":DONE" |
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 os | |
import sys | |
from threading import Thread, Lock | |
from Queue import Queue | |
def report(message): | |
mutex.acquire() | |
print message | |
sys.stdout.flush() | |
mutex.release() |
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 show_sudo_users_and_groups(ug, nopasswd): | |
""" | |
Helper function that prints out users and groups with sudo (or no passwd sudo) rights. | |
""" | |
ug_users = [] | |
ug_groups = [] | |
nopasswd_string = "" | |
if nopasswd: | |
nopasswd_string = "no password " |