- You have Ghostscript installed, right? Otherwise
sudo apt-get install ghostscript - This is important and installs the headers (
iapi.hetc) which are required but don't come with the default Ghostscript package:sudo apt-get install libgs-dev - I also needed
sudo apt-get install gs-esp - For me the pre compiled version of ImageMagick never accepted Ghostscript, so let's remove it:
sudo apt-get --purge remove imagemagick - Get the source of ImageMagick, untar it,
cd ImageMagick-xx ./configure --with-gslib=yes[and what else you need]- Confirm in the output near the bottom
gslib yes yesand notgslib yes no makemake install- Run
convert -list configure | grep DELEGATES=>DELEGATES bzlib djvu freetype gs jpeg jng jp2 lcms png tiff x11 xml zlib
I hereby claim:
- I am leomelzer on github.
- I am leomelzer (https://keybase.io/leomelzer) on keybase.
- I have a public key whose fingerprint is B830 BC00 A09B EA9E 22D1 BA1F 6CA2 10A5 16B7 7B28
To claim this, I am signing this object:
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 | |
| # Source: https://gist.github.com/ryin/3106801 | |
| # Script for installing tmux on systems where you don't have root access. | |
| # tmux will be installed in $HOME/local/bin. | |
| # It's assumed that wget and a C/C++ compiler are installed. | |
| # exit on error | |
| set -e | |
| TMUX_VERSION=2.1 |
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
| """Count words.""" | |
| def count_words(s, n): | |
| """Return the n most frequently occuring words in s.""" | |
| # TODO: Count the number of occurences of each word in s | |
| words = s.split(" ") | |
| # set comprehension so we only have unique values | |
| word_frequencies = {word: words.count(word) for word in words} | |
| word_frequency_tuples = [(word, count) for word, count in word_frequencies.items()] |
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/local/bin/python3 | |
| import csv | |
| import argparse | |
| from os import path | |
| def combine_suppressions(outfilename='suppressions.csv'): | |
| suppressions = set() | |
| suppression_map = { | |
| 'suppression_blocks.csv': 2, |
Net Promoter or Net Promoter Score (NPS) is a management tool that can be used to gauge the loyalty of a firm's customer relationships. It serves as an alternative to traditional customer satisfaction research and claims to be correlated with revenue growth. NPS has been widely adopted with more than two thirds of Fortune 1000 companies using the metric.
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
| const fetch = require("node-fetch"); | |
| const cheerio = require("cheerio"); | |
| const diff = require("diff"); | |
| const colors = require("colors"); | |
| const inputSlug = process.argv[2]; | |
| const notImplemented = [ | |
| "[rel=amphtml]", | |
| "[property='og:image']", |
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
| var t = require('../test-lib/test.js'); | |
| var assert = require('assert'); | |
| var _ = require('@sailshq/lodash'); | |
| var apos; | |
| describe('Express', function() { | |
| this.timeout(t.timeout); | |
| it('express should exist on the apos object', function(done) { |
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
| # This is a multi-stage build to not spill the contents of the deploy_key | |
| FROM mhart/alpine-node:10 as base | |
| # We need git and openssh to resolve `git+ssh` links in package.json | |
| RUN apk update \ | |
| && apk add git openssh | |
| WORKDIR /usr/src | |
| COPY package*.json ./ |
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
| { | |
| "version": 2, | |
| "name": "jetztein", | |
| "alias": "jetztein.de", | |
| "builds": [{ "src": "package.json", "use": "@now/static-build" }], | |
| "regions": ["bru"], | |
| "routes": [ | |
| { "src": "^/static/(.*)", "dest": "/static/$1" }, | |
| { "src": "^/favicon.ico", "dest": "/favicon.ico" }, | |
| { "src": "^/asset-manifest.json", "dest": "/asset-manifest.json" }, |
