Skip to content

Instantly share code, notes, and snippets.

View DrummerHead's full-sized avatar
💭
Eternally Elated

DrummerHead DrummerHead

💭
Eternally Elated
View GitHub Profile
@DrummerHead
DrummerHead / analyze-launchctl-list
Created March 8, 2016 19:06
See what services you have running and remove any offenders ( more info: http://osxdaily.com/2011/03/08/remove-an-agent-from-launchd/ )
#!/usr/bin/env ruby
launch_data = %x[launchctl list].split("\n").drop(1)
launch_data_details = launch_data.map do |line|
line_data = line.split("\t")
{
pid: line_data[0],
status: line_data[1],
label: line_data[2]
}
@DrummerHead
DrummerHead / index.html
Last active February 29, 2016 20:12
made.com.uy
<!DOCTYPE html>
<html>
<head>
<title>Martín Lorenzo</title>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="image/x-icon" rel="shortcut icon" href="http://www.made.com.uy/images/favicon.ico">
<style>
html {
@DrummerHead
DrummerHead / .htmlhintrc
Last active March 7, 2017 09:23 — forked from thorade/.htmlhintrc
HTMLHint rules
{
"tagname-lowercase": true,
"attr-lowercase": true,
"attr-value-double-quotes": false,
"attr-value-not-empty": false,
"attr-no-duplication": true,
"doctype-first": true,
"tag-pair": true,
"tag-self-close": false,
"spec-char-escape": true,
@DrummerHead
DrummerHead / frontend-programming-design-resources.md
Last active March 28, 2024 20:34
List of Front-end, programming & design resources
<!doctype html>
<html>
<head>
<title>MDL basic html scaffold</title>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<link rel='stylesheet' href='https://storage.googleapis.com/code.getmdl.io/1.0.5/material.indigo-pink.min.css'>
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700'>
<link rel='stylesheet' href='https://fonts.googleapis.com/icon?family=Material+Icons'>
<link rel='stylesheet' href='css/main.css'>
@DrummerHead
DrummerHead / gist:4982b32bd6d0fbd4ba76
Created March 23, 2015 18:31
combine two staticly generated sites
#!/bin/bash
cd emulation
rm -rf *
cd ..
cd web
grunt build
cp -r public/ ../emulation/
cd ../blog
rake generate
#!/usr/bin/env ruby
files = [
'variables',
'mixins',
'font-face',
'baseline',
'persistent',
'responsive',
'print',
// http://www.imdb.com/chart/top
//
$('.lister-list tr').each(function(i, el){
var _this = $(this);
var yearInt = parseInt(_this.find('.secondaryInfo').text().replace(/[\(\)]/g, ''), 10);
if(yearInt <= 1990){
_this.remove();
}
});
/* Moviessss yey! */
/* vars
* ========================== */
/* end vars */
/* Mixins
* ========================== */
.clearfix:before, dl:before, #movies:before, .rect s:before, .clearfix:after, dl:after, #movies:after, .rect s:after {
content: '';
display: table;
<html>
<head>
<meta charset="utf-8">
<title>Movies sicodelia</title>
<meta name="description" content="Magia? Interminable!">
<meta name="viewport" content="width=device-width">
<meta name="author" content="DrummerHead">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="stylesheet" href="main.css">
</head>