# cat /etc/security/limits.conf
* hard nofile 500000
* soft nofile 500000
root hard nofile 500000
root soft nofile 500000
package com.example | |
import liquibase.Contexts; | |
import liquibase.LabelExpression; | |
import liquibase.Liquibase; | |
import liquibase.database.Database; | |
import liquibase.database.DatabaseFactory; | |
import liquibase.database.jvm.JdbcConnection; | |
import liquibase.resource.FileSystemResourceAccessor; | |
import org.jooq.DSLContext; |
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |
package foo | |
@Grab('org.spockframework:spock-core:1.0-groovy-2.3') | |
import org.junit.runner.* | |
import spock.lang.Specification | |
import spock.util.EmbeddedSpecRunner | |
/* |
task srcZip(type:Zip) { | |
appendix = 'gitsources' | |
from project.projectDir | |
doFirst { | |
Set excludeList = [relativePath(archivePath).toString()] | |
def p = "git status --ignored --porcelain .".execute([], project.projectDir) | |
def writer = new StringWriter() | |
p.consumeProcessOutput(writer, null) |
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.2' | |
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.6' | |
classpath 'com.github.jruby-gradle:jruby-gradle-plugin:0.1.11' | |
classpath 'com.github.ben-manes:gradle-versions-plugin:0.7' |
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important
or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
# ./wrk -t72 -c3000 -d30s http://localhost:5050
Running 30s test @ http://localhost:5050
72 threads and 3000 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 4.82ms 9.03ms 229.22ms 95.25%
Req/Sec 9.58k 3.52k 34.54k 70.33%
Grab ffmpeg from https://www.ffmpeg.org/download.html
It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.
The most trivial operation would be converting gifs:
ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
-crf
values can go from 4 to 63. Lower values mean better quality.-b:v
is the maximum allowed bitrate. Higher means better quality.
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>MTA Fare Calculator</title> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="header"> |