Skip to content

Instantly share code, notes, and snippets.

View dipth's full-sized avatar

Thomas Dippel dipth

  • Visioneers
  • Silkeborg, Denmark
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dipth on github.
  • I am dipth (https://keybase.io/dipth) on keybase.
  • I have a public key ASBLmhUNP-kw4o8T7wV3OzAO3Fgb-DocO4ibFXCpp2O86wo

To claim this, I am signing this object:

@dipth
dipth / assets_cors.conf
Created May 26, 2014 14:56
Customize nginx config recipe
location ~* \.(eot|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}
<h1>SteelSeries CS:GO Championship</h1>
<p>
{{widget:liga-menu-csgo}}
</p>
<p>
<br />
<strong></strong>
</p>
<div class="row">
<div class="col col-md-6">
@dipth
dipth / output
Last active December 19, 2015 07:19
unless
------
UNLESS
------
A2
B1
C1
D1
------
IF
------
@dipth
dipth / request2
Last active December 17, 2015 07:49
DT Bug Session
Still working as expected (237)
Oh noes! It bugged out!
-----------------------
<!DOCTYPE html>
<html>
<head>
<link rel="canonical" href="http://downtown.dk/aarhus/deals" /><script type="text/javascript">var NREUMQ=NREUMQ||[];NREUMQ.push(["mark","firstbyte",new Date().getTime()]);</script>
<!-- Exception Hub start -->
<script type="text/javascript">
var ehHost = (("https:" == document.location.protocol) ? "https://ssl" : "http://js");
$apiKey = "aaaaaaaaaaaaaaaaaaaa"; // Replace with real api key
$summonerName = $_GET['nick1'];
$apiUrl = "http://api.elophant.com/v2/euw/summoner/{$summonerName}?key={$apiKey}";
$jsonObject = json_decode(file_get_contents($apiUrl));
if ( isset($jsonObject['data']) ) {
$data = $jsonObject->{'data'};
if ( isset($data['summonerId']) ) {
$summonerId = $data->{'summonerId'};
deal = Deal.find(42)
File.open('my_file.jpg') do |file|
deal.images.create :image => file
end
@dipth
dipth / gist:5211894
Created March 21, 2013 09:52
this will break hipchat
vi har som sådan ikke nogle "standarder".
@dipth
dipth / gist:5089944
Created March 5, 2013 12:16
Give all jpg-files a random filename
for i in *.jpg; do mv $i `openssl rand -hex 6`.jpg; done
@dipth
dipth / team.html
Created February 1, 2013 13:00
Downtown Team Behind
<div class="team_behind">
<h1>Holdet bag Downtown.dk</h1>
<h2>Salg K&oslash;benhavn</h2>
<div class="team-list">
<dl>
<dt><img src="https://naoshi.s3.amazonaws.com/downtown-dk/pages/team-behind-v2/kbh%20lille/Nicolai_lille.jpg" alt="" /></dt>
<dd class="name">Nicolai Christensen</dd>
<dd class="function">Produktchef</dd>
<dd class="email"><a href="mailto:[email protected]">[email protected]<br /></a></dd>
</dl>