How To Push To Github And WordPress.org

I think this is really important and not many people are aware of this. Evan Solomon deved a tool called Scatter. There are a lot of us that favor utilizing Git > SVN, I feel like SVN is stepping backwards in time. Everyone that is current on Git or started out primarily on git may be turned off by SVN. Welp, kick it in the nuts.

http://evansolomon.me/notes/git-wordpress-plugins-and-a-bit-of-sanity-scatter/

ƱZ Feat PAZ – Shit I Ain’t Got!

UZ-in-the-studio

I really enjoy PAZ’s new “Shit I Ain’t Got” – very Anti-New Money. This song suddenly started bumping on my Soundcloud and I wasn’t sure who it was. When I noticed it was under “WhoIsPaz” I was like, “WHHAAT? It’s been a grip!”

I was hoping to get PAZ out to Round 1 Formula Drift Streets of Long Beach.

ƱZ Feat PAZ – Shit I Ain’t Got Lyrics

[Hook]
Panamera models, Maserati crib
Lamborghini ceilings in the building where we live
Aston Martin bitches, snitches on Houdini
Fuck it man cause I don’t even own a Lamborghini

[Verse 1]
I ain’t got a Murci, I ain’t got a car
I don’t fuck with thousand dollar bottles at the bar
I ain’t got a Lotus, I can’t drive a stick
I ain’t got a Kardashian ridin on my dick
I ain’t got a Maybach, barely got a paycheck
Stripper told me make it rain
I said I’ll take a rain-check
I ain’t been to Paris, no one trynna fly me
Don’t know how to ball, and ain’t nobody trynna find me
I ain’t got a Rose, I ain’t got a Miller
I ain’t got a deal owe a hundred to my dealer
All I want is Jays, but all I got is Filas
They coppin red bottoms but my bottoms all vanilla
Can’t be jockin blades, can’t be jockin dubs
Asked for Ace of Spades but they brought me Two of Clubs
Got no one to fuck, might as well go home
Cause everybody in this club is fucking with their phones

[Hook]

[Verse 2]
I ain’t got that gliss, I ain’t got that shine
Your girl got a wrist, you be paying all the time
Pears and lemon lime, all that shit is borin
Only grill I got cosigned by George Foreman
I ain’t got that Bentley, I ain’t got a Benz
All I got is homies, can’t afford fugazi friends
Dump them groupie tens, all them bitches fickle
Fuck them fancy dimes, I be fucking two nickles
Say ‘Ye, Say ‘Ye, ain’t this muhfucking crazy?
All we got is pain, and they bathin in champa-zay
They be coppin rays, and we be coppin shady
Who the fuck is flyin all these hoes to San Trope-zay
I ain’t got that Louis, I ain’t got that Kors
I ain’t got that Gucci, I ain’t welcome in their stores
Fuck a label whore, I ain’t got the skrill
So when I die, bury me up in the Taco Bell

[Hook]

[Interlude]
That’s that shit, that shit
That shit I ain’t got
That’s that shit I ain’t got

[Hook]

Source: Rap Genius

Varnish HTTP Accelerator Presentation Notes

varnish-cache-image

Poul-Henning Kamp discusses Varnish HTTP Cache at TYPO3 2010 in Frankfurt. In this post, I will provide detailed notes of his presentation. This is for learning purposes and may contain inconsistencies. I will do my best to keep it sharp.

Varnish HTTP Accelerator Presentation Slides

Notes From Varnish HTTP Cache @ TYPO3 w. Poul-Henning Kamp

Content creation can be automated, you have a master copy and you want to distributed it as much as possible. You really want it to be faster than the Linotype, and a step beyond the Heidelberg Print Machine. Varnish’s Elevator Pitch, “Varnish delivers content faster & reliably, reduces the load on your CMS database, cheap hardware does 100+ kreq/s, can assist in content composition, can fixx stupid mistakes, fast, is Free & Open Source Software, has commercial support.”

After 15 years contributing to the FreeBSD project, Poul-Henning Kamp was approached by VG.no to write a web server. VG.no utilizes a slow CMS which needed a caching system that speeds up the HTTP accelerators. With Varnish, Kamp was able to reduce the use of 12 Squid cache services to a mere 3 Varnish cache servers and greatly reducing the response times.

Poul-Henning Kamp’s goals for Varnish started out simple

  • Varnish is only a HTTP Accelerator.
  • Better configuration.
  • Much Faster
  • Content Management Focused Feature Set

“We don’t do FTP, we do HTTP and we do it damn well,” Kamps continues “This is not a cache to put on the client side, this is a cache to put on the server side. It’s important to understand one thing here, the controlling standard for HTTP is still RFC2616, and if you read it real carefully you will find one place where it mentions a cache on the server side,” “then they realize, actually a cache on the serverside is just another web server.”

Cache on the client size has constraints, you cannot cache per user, private cache, crypto, etc. Varnish as a web server can cache anything we want server side, including crypto!

Understanding Varnish and VCL

Varnish aims to make the configuration process simple in VCL or C language. It’s important to understand the operations of Varnish according to the diagram below.

varnish-state-machine

An example of receive VCL code below.

sub vcl_recv {
if(req.url ~ “\.\.|\.exe”) {
error(999, “Bugger off.”);
}
if(client.ip ~ editor_ip) {
set req.http.x-cms = “no stats”;
return(pass);
}
if(req.url ~ “\.(jpg|png|gif|css)$”) {
unset req.http.cookie;
unset req.http.authenticate;
set req.backend = static_backend;
}
if(req.url == “hotstory.hmtl”) {
set.url = “hotstory.html”);
}
}

Understanding Why Varnish Cache Language Is Epic

  • Compiled to binary/shlib via C-code
    • Runs full speed
  • You can have multiple VCL’s loaded at the same time
    • Switch between them without restart
    • Instantaneous
  • Allows you to do anything you might fancy
    • Inline-C code, ’nuff said.
    • Modules/shlib will make it easier (3.0 feature)

Wikia has broken the 4000+ lines of VCL code and is available online via SVN for all to study.

An example of how Wikia’s VCL code utilizing multiple varnish servers. In this example there are two Varnish servers, one in Germany and one in England. The client is located in Germany attempted to access a server in the US. The client hits the Germany varnish server first, but the German Varnish server tells the client to connect to England Varnish than to the US because England’s pipe to the United States is bigger. This speeds up the load times since Germany’s direct tube to the US is clogged. You can’t just dump stuff on it, it’s a truck.

sub vcl_recv {
if (client.ip == “varnish1”) {
set req.backend = usa;
} else {
set req.backend = england;
}
}

Managing Varnish

Varnish is a daemon process on your computer and utilizing Command Line Interface for real-time control. The Management/Working process split. The manager allows (re)start the worker proc. Allows privilege separation. It also contains multithreading to worker process.

varnish_architecture_shah_anand

Image Source: shah-anand.com (thx bro).

Looking over the Varnish architecture we have one binary program that contains two processes, the Managing Process and Cacher process. The managing process will take your VCL code, send it to the C-compiler, and off to shared object for the Cacher process loads. Varnish Cache also has a cluster control concept that can control 10 different instances of Varnish is separate geolocations. The cluster control is still a concept and is not built out.

One thing to note: Varnish does not write .lock files – it has a shared memory segment, it places lock information and statistics in there and other applications will pull from the shared memory.

Brief CLI Management

Example of CLI Management below (I am a bit lost on this because on param.show I get an error on my instance.

$ telnet localhost 80
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’
param.show
200 675
default_ttl 120 [seconds]
thread_pools 5 [pools]
thread_pool_max 1500 [threads]
thread_pool_min 1 [threads]
thread_pool_timeout 120 [seconds]
overflow_max 100 [%]
http_workspace 8192 [bytes]
sess_timeout 5 [seconds]
pipe_timeout 60 [seconds]
send_timeout 600 [seconds]
auto_restart on [bool]
[…]

Performance & Speed

Programmed for performance since day one. They wanted to make sure they were aiming for wire speed. Performance is not something you do after the fact, you do it from day one and don’t add things that will bog it down. Writing the code for Varnish aims for today’s complex hardware. This isn’t designed for your dad’s computer anymore!

Use modern features:

  • Virtual Memory
  • sendfile(2), accept_filters(2), kqueue(2)
  • and ever other trick in the book

Performance price list has changed, we can execute 100,000,000+/s per cpu. Disk I/O is behind on response time, stored memory is instead placed in virtual page memory (RAM). Classical logging is horribly expensive. (Examples in slides).

Where does my traffic come from?

Below are a few commands that you can use to access information on a live Varnish instance.

$ varnishtop -i Rxheader
$ varnishtop -i Rxurl
$ varnishhist

Varnishhist is real-time histogram that shows the cache-miss (#) / cache-hit (|) on an x & y axis.
$ varnishstat

Varnishstat pulls real-time statistics from shared memory

Content Management Features

  • Instant action purges/bans (regex or exact match)
  • TTL/Caching policy control in VCL
  • Load/Situation mitigation in VCL
  • Header washing
  • Vary
  • Edge-side-includes (ESI)

27:14

BitTorrent SyncApp Alpha Testing

syncapp

Today, I received my invitation to alpha test BitTorrent SyncApp. I can only imagine the implications this will open up. Although Dropbox is safe, secure, and redundant, how safe is your files? SyncApp is interest, I generate a secret key and designate my “SyncApp” folder. I fire it up my laptop and install SyncApp.exe and punch in my secret key. Immediately, over 2,800+ files in my WordPress localhost is synced to my laptop. This afternoon, it’s synced to a 3rd box. I am interested in taking this to the next step and placing my files on a Linux server in California… with all my private git repositories. I wonder how well git will behave with SyncApp?

I think the most fascinating implication of SyncApp that I can brew in my mind is utilizing it over a Meshnet. Think of tying several Meshnet nodes in Bellingham and giving end users the “secret key” – madness. I wonder if there’s anyone in Bellingham that has already thrown up Meshnet nodes?

The next plan of actions with alpha testing BitTorrent SyncApp will be to tie all of my company files (.psd, .ai, .eps) between 3 computers and potentially a 4th. Perhaps my personal dedicated server down in California? Or maybe I should throw up an experimental Amazon EC2 with block storage? D: OMFG, way to excited.

Acquire All The Swag: AlwaysReckless Decals

857017_10152582632430154_1686633535_o

The other week, Justin headed up to Bellingham with a crew to see Red Fang at The Shakedown Bellingham and dropped off a pack Always Reckless decals. Justin and I were talking about vinyl die-cutting silk screening and the potential for bringing in new clients around Bellingham and the Seattle area. If you have any decal ideas, reach out! Holla holla!

Upper Intake Differences Between S13 and S14 KA24DE

861329_10152582149875154_496165115_o

On the left is the s13 upper intake with secondary butterflies. On the right the s14 upper intake does not have these.

I am working on converting a 96 KA24DE to fit in a 93 240sx. Since I have to run the S13 intake on the 96, I’ve decided to try swapping the upper intake manifold. The secondary butterflies on the s13 intake is said to help low end torque but is restrictive on air flow. Perhaps a KA24DE-T is in order.