Skip to content

Instantly share code, notes, and snippets.

View StefanWallin's full-sized avatar
🌍
💚

Stefan Wallin StefanWallin

🌍
💚
View GitHub Profile
@StefanWallin
StefanWallin / nodejs-centos5.sh
Created August 19, 2011 11:11
nodejs installed on centos 5
[stefan@dev36 src]$ rpm -ivh nodejs-0.4.9-1.1.x86_64.rpm
warning: nodejs-0.4.9-1.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID dfef6298
error: Failed dependencies:
libcares.so.2()(64bit) is needed by nodejs-0.4.9-1.1.x86_64
libev.so.4()(64bit) is needed by nodejs-0.4.9-1.1.x86_64
libv8.so.3()(64bit) is needed by nodejs-0.4.9-1.1.x86_64
libv8_g.so.3()(64bit) is needed by nodejs-0.4.9-1.1.x86_64
[stefan@dev36 lib]$ sudo yum install c-ares
[stefan@dev36 lib]$ sudo yum install --nogpgcheck libev
@StefanWallin
StefanWallin / output.sh
Created August 19, 2011 11:21
nodejs installed and then compile on centos 5
[stefan@dev36 node]$ ./configure && make
Checking for program g++ or c++ : /usr/lib64/ccache/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/lib64/ccache/gcc
Checking for gcc : ok
Checking for library dl : yes
Checking for openssl : yes

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For less, I'm using the ruby version because this is what they suggest on the website. The javascript version may be different.

Variables

@StefanWallin
StefanWallin / protocol.md
Created December 4, 2013 18:53
LoungeChatProtocol - version 1, draft 9

Protocol Introduction

Thinking about the protocol, I'm thinking about extendability. The client should be able to present commands it knows during handshake. Each feature of the API should have a version that is supported.

All commands should have three top level entries in it's envelope:

  • c — command is a string representation of the command you whish to execute through RPC. Max length of this parameter is 20 byte characters
  • t — a server generated token specific for each connected client that is passed out on each response and consumed for each client request. TODO: Specify the data type of the token and length
  • d — arbitrary data in a json object that the command for this version should know how to execute.
@StefanWallin
StefanWallin / blommans-trissmetadata.xml
Created April 1, 2014 06:39
blommans triss-metadata
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.0-c060 61.134777, 2010/02/12-17:32:00 ">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:xmp="http://ns.adobe.com/xap/1.0/">
<xmp:CreatorTool>Adobe Photoshop CS5 Macintosh</xmp:CreatorTool>
<xmp:CreateDate>2014-04-01T08:10:50+02:00</xmp:CreateDate>
<xmp:ModifyDate>2014-04-01T08:10:52+02:00</xmp:ModifyDate>
<xmp:MetadataDate>2014-04-01T08:10:52+02:00</xmp:MetadataDate>
</rdf:Description>
@StefanWallin
StefanWallin / gist:53a32b24efc1f2d5d078
Last active August 29, 2015 14:02
Kodapor gruppbeskrivning
Grupp för utvecklare på svenska.
• Inga Jobbannonser — se gruppen "Jobb för Kodapor".
• Läs och Googla innan du ber om hjälp.
• Använd sökfunktionen i gruppen innan du drar upp en gammal diskussion i en ny tråd
@StefanWallin
StefanWallin / README.md
Last active January 15, 2022 06:22 — forked from konklone/ssl.rules
nginx ssl config with multiple SNI vhosts and A+ SSL Labs score as of 2014-11-05

Configuring nginx for SSL SNI vhosts

Gotchas

Remarks

  • My version of konklones SSL config does not have SPDY support(my nginx+openssl does not support it)
  • You need a default ssl server (example.org-default.conf).
  • Some SSL-options have to be unique across your instance, so it's easier to have them in a common file(ssl.conf).
@StefanWallin
StefanWallin / nginx.conf
Last active August 29, 2015 14:08 — forked from konklone/ssl.rules
# Basically the nginx configuration I use at konklone.com.
# I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com
#
# To provide feedback, please tweet at @konklone or email eric@konklone.com.
# Comments on gists don't notify the author.
#
# Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites.
# Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration.
server {
@StefanWallin
StefanWallin / nginx.conf
Last active August 29, 2015 14:08 — forked from konklone/ssl.rules
# Basically the nginx configuration I use at konklone.com.
# I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com
#
# To provide feedback, please tweet at @konklone or email eric@konklone.com.
# Comments on gists don't notify the author.
#
# Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites.
# Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration.
server {
@StefanWallin
StefanWallin / nginx.conf
Last active August 29, 2015 14:08 — forked from konklone/ssl.rules
# Basically the nginx configuration I use at konklone.com.
# I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com
#
# To provide feedback, please tweet at @konklone or email eric@konklone.com.
# Comments on gists don't notify the author.
#
# Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites.
# Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration.
server {