Skip to content

Instantly share code, notes, and snippets.

View hlissner's full-sized avatar
🛠️
Chipping away at Doom v3.0

Henrik Lissner hlissner

🛠️
Chipping away at Doom v3.0
View GitHub Profile
@kylef
kylef / Toggle Mute (Skype)
Created May 31, 2009 13:11
Applescript to toggle mute on Skype
tell application "Skype"
if (send command "GET MUTE" script name "MuteToggler") is equal to "MUTE ON" then
send command "SET MUTE OFF" script name "MuteToggler"
else
send command "SET MUTE ON" script name "MuteToggler"
end if
end tell
@lantrix
lantrix / IMStatus.scpt
Created January 3, 2011 12:55
Applescript to tell Adium, Skype and iChat to change their status simultaneously
-- IMStatus
-- version 2.0, Lantrix (http://techdebug.com)
-- idea conceived from script by Jason Kenison "theWebGuy" Blog at:
-- http://www.jasonkenison.com/blog.html?id=22
(*
Copyright (c) 2008, TechDebug.com
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
@ar1a
ar1a / lazyload.sh
Last active May 7, 2019 22:12
Lazy load function for zsh
#!/usr/bin/env zsh
# usage: lazyload <name> <path> [source ...] -- callback
lazyload() {
local name="$1"; shift
local spath="$1"; shift
local sources=()
while [[ $# -gt 0 ]]; do
case "$1" in
@prenagha
prenagha / Create Gist.scpt
Created January 13, 2014 15:17
Launchbar action to create public gist
--
-- gist support for launchbar
-- 1. install gist client "sudo gem install gist"
-- https://github.com/defunkt/gist
-- 2. login "gist --login"
--
-- use from launchbar as file action, string/search action, or
-- plain action (will take text from clipboard)
-- then will put gist url as launchbar result
-- from there you can Copy it or hit Enter to open in browser
@jassinm
jassinm / .ycm_extra_conf.py
Last active April 7, 2020 04:05
c++11 youcompleteme
import os
import ycm_core
from clang_helpers import PrepareClangFlags
# Set this to the absolute path to the folder (NOT the file!) containing the
# compile_commands.json file to use that instead of 'flags'. See here for
# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
# Most projects will NOT need to set this to anything; you can just change the
# 'flags' list of compilation flags. Notice that YCM itself uses that approach.
compilation_database_folder = ''
@k-takata
k-takata / gist:5124445
Last active July 17, 2020 16:50
Build The Silver Searcher

Build The Silver Searcher

the silver searcher

For Win32/64 using MSYS2

Install Packages

Install the following packages using pacman -S package-name:

@JeroenDStout
JeroenDStout / rain_world_pearls.md
Last active September 12, 2021 22:52 — forked from aytch/rain_world_pearls.md
The Mythology of Rain World

Overview

Pearls

  • Wastelands, Cyan - Five Pebble's Mistake
  • Industrial, Blue - The Mask Factory
  • Shore (Moon), Yellow - Sliver of Straw's News
  • Shore (Bridge), Purple - Iterators and Water
  • Sky Islands, Dark Blue - {Random chatlog}
  • Sky Islands, Dark Purple - {Random chatlog}
@jordonbiondo
jordonbiondo / imenu-use-packge.el
Last active December 15, 2022 10:45
have imenu include use-package
;; in action: http://i.imgur.com/Tt2M0LC.gif
(add-to-list 'imenu-generic-expression
'("Used Packages"
"\\(^\\s-*(use-package +\\)\\(\\_<.+\\_>\\)" 2))
;; I also highly recommend imenu-anywhere to make developing your config even easier
@mjlbach
mjlbach / gccEmacs.md
Last active December 6, 2023 10:34
Installing gccEmacs (native-comp) with Nix

WARNING: THIS GIST IS OUT OF DATE AND NO LONGER RELEVANT

  • Native-comp was enabled by default in nixpgks
  • Pgtk is not enabled by default, for that you can either override the derivation or use emacsPgtk from the nix-community emacs overlay if you don't want to build it yourself

Nix

Adding the overlay and configuring cachix

@lucasad
lucasad / urlencode.zsh
Created September 7, 2013 09:40
ZSH urlencode
urlencode() {
setopt localoptions extendedglob
input=( ${(s::)1} )
print ${(j::)input/(#b)([^A-Za-z0-9_.\!~*\'\(\)-])/%${(l:2::0:)$(([##16]#match))}}
}