- http://the-paper-trail.org/blog/distributed-systems-theory-for-the-distributed-systems-engineer/
- https://github.com/palvaro/CMPS290S-Winter16/blob/master/readings.md
- http://muratbuffalo.blogspot.com/2015/12/my-distributed-systems-seminars-reading.html
- http://christophermeiklejohn.com/distributed/systems/2013/07/12/readings-in-distributed-systems.html
- http://michaelrbernste.in/2013/11/06/distributed-systems-archaeology-works-cited.html
- http://rxin.github.io/db-readings/
- http://research.microsoft.com/en-us/um/people/lamport/pubs/pubs.html
- http://pdos.csail.mit.edu/dsrg/papers/
- http://scalingsystems.com/2011/09/07/reading-list-for-distributed-systems/
- http://courses.engr.illinois.edu/cs525/sp2011/sched.htm
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
// see https://books.sonatype.com/nexus-book/3.0/reference/scripting.html | |
// see https://github.com/sonatype/nexus-book-examples/tree/nexus-3.0.x/scripting/nexus-script-example | |
import groovy.json.JsonOutput | |
import org.sonatype.nexus.security.user.UserSearchCriteria | |
import org.sonatype.nexus.security.authc.apikey.ApiKeyStore | |
import org.sonatype.nexus.security.realm.RealmManager | |
import org.apache.shiro.subject.SimplePrincipalCollection | |
import org.sonatype.nexus.scheduling.TaskScheduler | |
import org.sonatype.nexus.scheduling.schedule.Daily |
I hereby claim:
- I am basebandit on github.
- I am basebandit (https://keybase.io/basebandit) on keybase.
- I have a public key ASDrUrKlUQsdqAZyeVUWL7LdYiZztvXa4GUd2v6pqC6k1Qo
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
#!/bin/bash | |
function delete_container() { | |
if ! which "lxc" >/dev/null 2>&1; then | |
echo "lxc is not installed" | |
fi | |
OUT=$(lxc list -c n --format=json | jq 'length') | |
if [ "$OUT" -lt 1 ]; then | |
echo "No containers found" | |
fi | |
OUT=$(lxc stop --all 2>&1) |
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
# Start from the latest golang base image | |
FROM golang:1.14-alpine as builder | |
# Add Maintainer Info | |
LABEL maintainer="The Basebandit <@the_basebandit>" | |
# Set the Current Working Directory inside the container | |
WORKDIR /backend | |
# Copy everything from the current directory to the Working Directory inside the container |
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
// copyFile copies a file from src to dst. If src and dst files exist, and are | |
// the same, then return success. Otherise, copy the file contents from src to dst. | |
func copyFile(src, dst string) (err error) { | |
sfi, err := os.Stat(src) | |
if err != nil { | |
return | |
} | |
if !sfi.Mode().IsRegular() { | |
// cannot copy non-regular files (e.g., directories, | |
// symlinks, devices, etc.) |
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 main | |
import ( | |
"fmt" | |
"math" | |
) | |
func main() { | |
for i := 0; i < 100; i++ { | |
if isPrime(i) { |
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
let bcrypt = require('bcrypt-nodejs'); | |
let password = "hello"; | |
let stored_hash = ""; | |
// first generate a random salt | |
function genSalt(password) { | |
return new Promise((resolve,reject) => { | |
bcrypt.genSalt(10,function(err,salt) { | |
if (err) { |
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
exports.cssLoaders = function(options) { | |
... | |
... | |
function resolveResouce(fileName) { | |
// Absolute Path | |
return path.resolve(__dirname, '../src/assets/scss/' + fileName) | |
} | |
function generateSassResourceLoader() { | |
var loaders = [ |
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 db = mongoose.connect('mongodb://localhost:27017/DB'); | |
// In middleware | |
app.use(function (req, res, next) { | |
// action after response | |
var afterResponse = function() { | |
logger.info({req: req}, "End request"); | |
// any other clean ups |
NewerOlder