This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./letsencrypt-auto certonly -a webroot \ | |
--renew-by-default --text \ | |
--email hostmaster@${domain} \ | |
--webroot-path=/home/${domain}y/wwwroot/ \ | |
-d ${domain} \ | |
-d www.${domain} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if `type emerge >/dev/null 2>&1`; then | |
up() { | |
case $@ in | |
fixdeps) | |
sudo revdep-rebuild -pqi | |
;; | |
config) | |
sudo dispatch-conf | |
;; | |
pretend) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/sbin/runscript [15/3092] | |
# Copyright 1999-2009 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
GREEN="\033[0;32m" | |
YELLOW="\033[0;33m" | |
RED="\033[0;31m" | |
COLORRESET="\033[0m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
EV_DIRECTORY="/Users/manu/Pictures/daily" | |
EV_BASE=`basename $EV_DIRECTORY` | |
function everyday_newpics { | |
# go to where the deed is done | |
cd $EV_DIRECTORY | |
# echo some information about the process |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isRetina(){ | |
return (('devicePixelRatio' in window && devicePixelRatio > 1) || | |
('matchMedia' in window && matchMedia("(-moz-device-pixel-ratio:1.0)").matches)) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# tools needed: optipng, libjpeg for libtrans and gifsicle | |
MEDIAFOLDER=~/Development/octopress/source/media | |
MEMORYFILE=$MEDIAFOLDER/.optimized | |
for img in $MEDIAFOLDER/*.{png,jpg,jpeg,gif}; do | |
if [ `grep $img $MEMORYFILE 2>/dev/null | wc -l` -eq 0 ]; then | |
if [[ $img =~ \.png$ ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Forget compatibility with Vi. Who cares. | |
set nocompatible | |
" Set encoding | |
set encoding=utf-8 | |
" searching | |
set hlsearch | |
set incsearch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# intended use as alfred extension | |
# if used otherwise take care of the {query} parameter string | |
# | |
# Edit paths for lefolder and | |
# | |
# at first, check if ~/Pictures/lescreenshots exists, if not create | |
# grabs a screenshot or takes a existing image as input | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# we like colours | |
set -g default-terminal "screen-256color" | |
# change activator to ctrl+z | |
unbind C-b | |
set-option -g prefix C-z | |
bind C-z send-prefix | |
# history | |
set -g history-limit 1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
(c) 2011 Fabian Franke | |
Licence: Creative Commons Attribution-ShareAlike 3.0 | |
Two variants: | |
with seperate flash user | |
1. disable flash plugin in chrome | |
2. create new chrome user/profile with flash enabled | |
3. edit theFlashChromeUser to your new flash user |
NewerOlder