https://moox.io/blog/keep-in-sync-git-repos-on-github-gitlab-bitbucket/
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
This gist is based on the information available at golang/dep, only slightly more terse and annotated with a few notes and links primarily for my own personal benefit. It's public in case this information is helpful to anyone else as well.
I initially advocated Glide for my team and then, more recently, vndr. I've also taken the approach of exerting direct control over what goes into vendor/
in my Dockerfiles, and also work from
isolated GOPATH environments on my system per project to ensure that dependencies are explicitly found under vendor/
.
At the end of the day, vendoring (and committing vendor/
) is about being in control of your dependencies and being able to achieve reproducible builds. While you can achieve this manually, things that are nice to have in a vendoring tool include:
var cnsl = true; | |
var win = this; | |
var ajax = win["XMLHttpRequest"]; | |
| |
function start() { | |
var cookie_name = "app_" + profile_id; | |
var cookie_time = 40; | |
if (!getCookie(cookie_name) || parseInt(getCookie(cookie_name)) < Date.now() - 60 * 1000 * cookie_time) { | |
createCookie(cookie_name, Date.now(), 1); | |
config = {}; |
-- To dump your database with your positions | |
mysqldump --hex-blob --routines --triggers -uroot database -r dump-with-data.sql |
To change last commit date
GIT_COMMITTER_DATE="`date -R -v-3d`" git commit --amend --no-edit --date "`date -R -v-3d`" && git push
<?php | |
// This file demonstrates file upload to an S3 bucket. This is for using file upload via a | |
// file compared to just having the link. If you are doing it via link, refer to this: | |
// https://gist.github.com/keithweaver/08c1ab13b0cc47d0b8528f4bc318b49a | |
// | |
// You must setup your bucket to have the proper permissions. To learn how to do this | |
// refer to: | |
// https://github.com/keithweaver/python-aws-s3 | |
// https://www.youtube.com/watch?v=v33Kl-Kx30o | |
{ | |
"presets": ["es2015"], | |
"plugins": [ | |
"add-module-exports" | |
], | |
} |
You can now evaluate asynchronous functions with FaaS backed by the NATS Streaming server.
- Checkout the branch and build the image: functions/gateway:latest-dev
$ git clone https://github.com/alexellis/faas
$ git checkout update_async
Optionally also build the branch:
const Model = require('sequelize').Model; | |
class User extends Model { | |
columns: { | |
id: { | |
autoIncrement: true, | |
primaryKey: true, | |
type: Model.DataTypes.INTEGER(10) | |
}, |