Skip to content

Instantly share code, notes, and snippets.

View alexleventer's full-sized avatar
💭

Alex Leventer alexleventer

💭
View GitHub Profile
@alexleventer
alexleventer / instructions.md
Last active May 5, 2016 18:09
How to delete all repo commit history

#How to delete all repo commit history

  1. Checkout git checkout --orphan latest_branch

  2. Add all files git add -A

  3. Commit the changes git commit -am "a commit message"

@alexleventer
alexleventer / favorite-queries.sql
Last active April 22, 2016 16:40
Favorite Queries
SELECT applications.domain, users.email, users.time as SignupDate, count(*) AS Apps,
(SELECT COUNT(*) FROM tasks where tasks.domain = applications.domain) as Builds,
(SELECT COUNT(*) FROM deployments WHERE deployments.domain = applications.domain) as Deploys,
(SELECT COUNT(*) FROM oauth WHERE oauth.domain = applications.domain) as SourceControl
FROM applications
JOIN users ON applications.domain = users.domain
WHERE users.time > UNIX_TIMESTAMP(CURRENT_TIMESTAMP - INTERVAL 1 WEEK) * 1000
GROUP BY applications.domain;
layout title date comments author author_twitter image_title
post
Build, Dockerize, and Deploy your GitLab Repositories with Distelli
2016-04-21 12:00
true
Alex Leventer from Distelli
alexleventer
/images/gitlabintegrationimage.jpg

This is a guest post by Distelli.

/app/public/components/HaulRow.js:12
2016-02-13T21:33:27.736771+00:00 app[web.1]: at ReactCompositeComponentMixin._renderValidatedComponentWithoutOwnerOrContext (/app/node_modules/react/lib/ReactCompositeComponent.js:587:34)
2016-02-13T21:33:27.736766+00:00 app[web.1]: ^
2016-02-13T21:33:27.727740+00:00 app[web.1]: Warning: Failed propType: Invalid prop `match` of type `function` supplied to `HaulRow`, expected `object`. Check the render method of `Dashboard`.
2016-02-13T21:33:27.723845+00:00 app[web.1]: Warning: Failed propType: Invalid prop `pastHauls` of type `array` supplied to `Dashboard`, expected `string`.
2016-02-13T21:33:27.736769+00:00 app[web.1]: at React.createClass.renderBookButton (/app/public/components/HaulRow.js:12:91)
2016-02-13T21:33:27.736770+00:00 app[web.1]: at React.createClass.render (/app/public/components/HaulRow.js:31:10)
2016-02-13T21:33:27.736772+00:00 app[web.1]: at ReactComp
RouteMixin, AnalyticsMixin
"jsx!ui/RouteMixin", "jsx!ui/AnalyticsMixin"
this.track("Selected Source Control", this.getUserInfo().email, {
source: 'New App Flow',
repoType: 'GitHub'
});
Build, Dockerize, and deploy from GitHub to any server.
##Docker Support
Build and push Docker images directly to Dockerhub or Amazon EC2 Container Registry whenever you push to GitHub. Images are automatically tagged with your Distelli build number.
{
"state": "SUCCESSFUL",
"type": "build",
"key": "BAMBOO-PROJECT-X",
"name": "Build #34",
"url": "https://example.com/path/to/build",
"description": "Changes by John Doe",
"links": {
"self": {
"href": "https://api.bitbucket.org/2.0/repositories/emmap1/MyRepo/commits/61d9e64348f9da407e62f64726337fd3bb24b466/statuses/build/BAMBOO-PROJECT-X"
CREATE TABLE companies
(
_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
company VARCHAR(100) NOT NULL,
domain VARCHAR(100) NOT NULL,
city VARCHAR(100),
state VARCHAR(100),
country VARCHAR(100),
industry VARCHAR(100),
CREATE TABLE companies
(
_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
company VARCHAR(100) NOT NULL,
domain VARCHAR(100) NOT NULL,
city VARCHAR(100),
state VARCHAR(100),
country VARCHAR(100),
industry VARCHAR(100),
remote: npm info prepublish [email protected]
remote: npm WARN unmet dependency /var/lib/openshift/562d7e6c0c1e6601c10000d9/app-root/runtime/repo/node_modules/gulp-browserify requires browserify@'3.x' but will load
remote: npm WARN unmet dependency /var/lib/openshift/562d7e6c0c1e6601c10000d9/app-root/runtime/repo/node_modules/browserify,
remote: npm WARN unmet dependency which is version 4.2.3
remote: npm ERR! peerinvalid The package browserify does not satisfy its siblings' peerDependencies requirements!
remote:
remote: npm ERR! System Linux 2.6.32-504.34.1.el6.x86_64
remote: npm ERR! command "node" "/opt/rh/nodejs010/root/usr/bin/npm" "install" "-d"
remote: npm ERR! cwd /var/lib/openshift/562d7e6c0c1e6601c10000d9/app-root/runtime/repo
remote: npm ERR! node -v v0.10.35