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
//taming select2 | |
import React, { Component, PropTypes } from 'react' | |
import { connect } from 'react-redux' | |
var input = null | |
class SelectFieldComponent extends Component { | |
componentDidMount() { | |
//UserRoleForm.onRendered() |
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
// actions/action_signup.go //in action handler file | |
import ( | |
g "project/actions/shared" | |
"project/models" | |
"github.com/gobuffalo/buffalo" | |
// "github.com/pkg/errors" | |
// "fmt" | |
"project/actions/mailer/user" | |
) |
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
//underscore | |
global._ = require('underscore') | |
//jquery | |
window.$ = window.jQuery = require("jquery") | |
//moment | |
window.moment = require('moment') |
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
'use strict'; | |
import React, { Component, PropTypes } from 'react' | |
import { connect } from 'react-redux' | |
var input, wrapper | |
class StaticIframeComponent extends Component { | |
constructor(props) { |
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
# /etc/logrotate.d/web | |
# me = my username | |
# with max of 10MB | |
/home/me/web/log/production.log { | |
size 10M | |
copytruncate | |
create 0666 me | |
compress | |
rotate 4 | |
missingok |
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
version: "3" | |
services: | |
mysql: | |
image: 'mariadb:10' | |
ports: | |
- "3306:3306" | |
volumes: | |
- ./mariadb:/var/lib/mysql | |
environment: | |
- "MYSQL_ROOT_PASSWORD=root" |
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" | |
"reflect" | |
) | |
type X struct { | |
Name string | |
Values *[]Y |
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
version: "3.2" | |
services: | |
dzero: | |
image: dgraph/dgraph:v1.0.10 | |
volumes: | |
- "./dgraph0:/dgraph" | |
ports: | |
- 5080:5080 | |
- 6080:6080 | |
restart: on-failure |
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
www.example.com:80, www.example.com:443 { | |
tls self_signed | |
log /logs access.log | |
errors visible | |
proxy /assets nginx:80 | |
proxy / web:3000 | |
redir 301 { | |
if {>X-Forwarded-Proto} is http | |
/ https://{host}{uri} |
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
version: "3.2" | |
services: | |
logrotate: | |
image: blacklabelops/logrotate | |
restart: unless-stopped | |
volumes: | |
- "/home/yourpathtolog:/log" | |
- "./logrotate-status:/logrotate-status" | |
environment: | |
- "LOGS_DIRECTORIES=/log" |