Downloads:
- libevent: http://sourceforge.net/projects/levent/files/latest/download?source=files
- tmux: http://sourceforge.net/projects/tmux/files/latest/download?source=files
Yum Packages:
- gcc
Downloads:
Yum Packages:
| /* | |
| * This script will download a package (and all of its dependencies) from the | |
| * online NPM registry, then create a gzip'd tarball containing that package | |
| * and all of its dependencies. This archive can then be copied to a machine | |
| * without internet access and installed using npm. | |
| * | |
| * The idea is pretty simple: | |
| * - npm install [package] | |
| * - rewrite [package]/package.json to copy dependencies to bundleDependencies | |
| * - npm pack [package] |
| #!/bin/bash | |
| wget "https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz" | |
| tar -xf libevent-2.0.21-stable.tar.gz | |
| cd libevent-2.0.21-stable | |
| ./configure | |
| make | |
| make verify | |
| sudo make install |
| 'use strict'; | |
| // simple express server | |
| var express = require('express'); | |
| var app = express(); | |
| var router = express.Router(); | |
| app.use(express.static('public')); | |
| app.get('/', function(req, res) { | |
| res.sendfile('./public/index.html'); |
| // Import all | |
| import Rx from "rxjs/Rx"; | |
| Rx.Observable | |
| .interval(200) | |
| .take(9) | |
| .map(x => x + "!!!") | |
| .bufferCount(2) | |
| .subscribe(::console.log); |
(Inspired by https://medium.com/@icanhazedit/clean-up-unused-github-rpositories-c2549294ee45#.3hwv4nxv5)
Open in a new tab all to-be-deleted github repositores (Use the mouse’s middle click or Ctrl + Click) https://github.com/username?tab=repositories
Use one tab https://chrome.google.com/webstore/detail/onetab/chphlpgkkbolifaimnlloiipkdnihall to shorten them to a list.
Save that list to some path
The list should be in the form of “ur_username\repo_name” per line. Use regex search (Sublime text could help). Search for ' |.*' and replace by empty.
| curl -X POST \ | |
| -H "X-Parse-Application-Id: LL9oIdzIkmwl5xyowQQu0fTmXyUWfet9RuAzwHfj" \ | |
| -H "X-Parse-REST-API-Key: R3S8PYQKuzeV4c8MUeO5ved46C50MEp56boDHW1O" \ | |
| -H "Content-Type: application/json" \ | |
| -d @data.json \ | |
| https://parseapi.back4app.com/functions/import |
| import java.util | |
| import java.util.Map.Entry | |
| import akka.http.scaladsl.model.HttpHeader | |
| import io.opentracing.propagation.TextMap | |
| import scala.collection.JavaConverters.asJavaIteratorConverter | |
| /** | |
| * Used to extract an iterator of Entry[String, String] to the |
This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps
Steps from scratch:
1.react-native init GoogleMapPlayground
The built image for a hello world project is less than 8 MB.
Builder image (it'd be best to upload this image to Docker Hub. This is 100% percent reusable).
FROM ubuntu:latest
ENV TARGET=x86_64-unknown-linux-musl
ENV BUILD_DIR=/src/target/x86_64-unknown-linux-musl/release/