This file contains 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
<snippet> | |
<content><![CDATA[ | |
/** | |
* Set ${1:property} | |
* | |
* @param ${2:type} \$$1 | |
* | |
* @return ${3:Type} | |
*/ | |
public function set${1/^([a-z])/\u$1/g}(\$$1) |
This file contains 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
# Add this repo to the /etc/apt/source.list file | |
deb ftp://ftp.debian.org/debian stable contrib non-free | |
# And run these commands | |
sudo apt-get update | |
sudo apt-get install ttf-mscorefonts-installer |
This file contains 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
<snippet> | |
<content><![CDATA[ | |
<trans-unit> | |
<source>${1:Source}</source> | |
<target>${2:Target}</target> | |
</trans-unit> | |
]]></content> | |
<tabTrigger>transunit</tabTrigger> | |
<scope>text.xliff</scope> | |
</snippet> |
This file contains 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 | |
### BEGIN INIT INFO | |
# Provides: xvfbd | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: X Virtual Framebuffer | |
# Description: X Virtual Framebuffer | |
### END INIT INFO |
This file contains 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
--- | |
- name: install dependencies | |
apt: > | |
pkg={{ item }} | |
state=present | |
sudo: yes | |
with_items: | |
- libsqlite3-dev | |
- name: gem |
This file contains 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 | |
path = require('path'), | |
_ = require('lodash'), | |
gulp = require('gulp'), | |
gulpUtil = require('gulp-util'), | |
log = gulpUtil.log, | |
colors = gulpUtil.colors, | |
glob = require('glob'), | |
fs = require('fs'), | |
gulpNotify = require('gulp-notify'), |
This file contains 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/sh | |
set -e | |
IP=`sudo docker inspect -f '{{ .NetworkSettings.IPAddress }}' ${1}` | |
HOST=$2 | |
[ -z "$HOST" ] && exit 1; | |
sudo sed -i "s/.*\s${HOST}$/${IP} ${HOST}/" /etc/hosts |
This file contains 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/sh | |
URL="https://file.io" | |
DEFAULT_EXPIRE="14d" # Default to 14 days | |
if [ $# -eq 0 ]; then | |
echo "Usage: file.io FILE [EXPIRE]" | |
echo " Example: file.io path/to/my/file 1w" | |
echo " This example upload your file for 1 download and expires until 7 days if not downloaded." | |
echo "\nSee documentation at https://www.file.io/#one" |
This file contains 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 | |
# Script to simplify the release flow. | |
# 1) Fetch the current release version | |
# 2) Increase the version (major, minor, patch) | |
# 3) Add a new git tag | |
# 4) Push the tag | |
# Parse command line options. | |
while getopts ":Mmpd" Option |
This file contains 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 | |
apt-get update | |
apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - |