Skip to content

Instantly share code, notes, and snippets.

@linuslundahl
linuslundahl / raycast-emoji-snippets.json
Created March 3, 2023 14:12
Raycast Emoji Snippets
[
{ "text": "0️⃣", "name": "0", "keyword": ":0:" },
{ "text": "1️⃣", "name": "1", "keyword": ":1:" },
{ "text": "🔟", "name": "10", "keyword": ":10:" },
{ "text": "💯", "name": "100", "keyword": ":100:" },
{ "text": "🥇", "name": "1st Place Medal", "keyword": ":1st-place-medal:" },
{ "text": "2️⃣", "name": "2", "keyword": ":2:" },
{ "text": "🥈", "name": "2nd Place Medal", "keyword": "2nd-place-medal:" },
{ "text": "3️⃣", "name": "3", "keyword": ":3:" },
{ "text": "🥉", "name": "3rd Place Medal", "keyword": ":3rd-place-medal:" },

Keybase proof

I hereby claim:

  • I am linuslundahl on github.
  • I am linuslundahl (https://keybase.io/linuslundahl) on keybase.
  • I have a public key ASDTGwnjHSzQI3NyrUYxdlS2XZ9qaMl03noV-Pu2ChoT3go

To claim this, I am signing this object:

@linuslundahl
linuslundahl / gist:02a6eccef5b998bd3baa
Last active August 17, 2019 06:40
MAMP with Brew

XAMP/MAMP stack with brew

For Brew driven MAMP with Apache2, PHP 5.3 and MySQL 5.x

Install brew (assuming that you have Xcode installed).

$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

Install git and bash completion.

@linuslundahl
linuslundahl / dabblet.css
Created July 16, 2014 17:22 — forked from LeaVerou/dabblet.css
Scoop corners with only one gradient
/**
* Scoop corners with only one gradient
* Caveats: backdrop must be a solid color,
* dimensions need to be known
* For more flexibility, see: http://lea.verou.me/2011/03/beveled-corners-negative-border-radius-with-css3-gradients/
*/
div {
width: 400px;
height: 300px;
@linuslundahl
linuslundahl / dabblet.css
Created December 2, 2013 08:38 — forked from LeaVerou/dabblet.css
(C)Leanest CSS spinner ever
/**
* (C)Leanest CSS spinner ever
*/
@keyframes spin {
to { transform: rotate(1turn); }
}
.progress {
position: relative;
@linuslundahl
linuslundahl / drupal_table_pager.php
Created October 10, 2012 06:42 — forked from simme/drupal_table_pager.php
Drupal table with pager from db_select()
<?php
/**
* Display point award report.
*
* Generates a list of awarded points.
*
* @return array $content
*/
function game_report_page_points() {
@linuslundahl
linuslundahl / error_log
Created August 31, 2012 12:23
Send php error_log to OS X console.
$ mate /etc/php.ini
Add: error_log = /Users/USERNAME/Library/Logs/php.log
$ sudo chmod 755 ~/Library/ && sudo chmod 755 ~/Library/Logs && sudo touch ~/Library/Logs/php.log && sudo chmod 777 ~/Library/Logs/php.log
@linuslundahl
linuslundahl / siteup
Created August 31, 2012 11:53
Linode vhost script
#! /bin/bash
#
# =======================
# Linode vhost script
# =======================
function make_vhost
{
cat <<- _EOF_
<VirtualHost *:80>
@linuslundahl
linuslundahl / sass-button.sass
Created May 22, 2012 08:16
SASS with Compass button style
@mixin button($bg, $color)
background: $orange
@include background-image(linear-gradient(($bg*1.6), $bg 40%, $bg))
@include box-shadow(($bg*2) 0 1px 1px 0 inset)
@include border-radius(5px)
border: 1px solid ($bg/1.2)
color: $color
font: normal normal 300 1em/150% "Helvetica Neue", Arial, sans-serif
margin: 0 10px 0 0
padding: 5px 10px
@linuslundahl
linuslundahl / services-resource.php
Created April 11, 2012 10:04
Services resource definition
$resources['ur_segment'] = array(
'operations' => array(
'create' => array(
'callback' => '_ur_segment_create',
'help' => t('Creates a segment.'),
'args' => array(
array(
'name' => 'segment',
'optional' => FALSE,
'source' => 'data',