$ mkdir <repo-name>.git
$ cd <repo-name>.git
$ git init --bare
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 | |
# Dumps MySQL database to a file, uploads to S3 and rotates out old backups. | |
# Set correct dates | |
NOWDATE=`date +%Y-%m-%d` | |
LASTDATE=$(date +%Y-%m-%d --date='1 week ago') | |
DESTINATION=/var/backup | |
DB= |
#Password-less SSH
Generate keys on local machine:
$ ssh-keygen
Create ~/.ssh
directory on remote machine.
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
charset utf-8; | |
gzip_disable "msie6"; | |
gzip_types text/plain text/css application/x-javascript application/xml text/javascript; | |
# www.example.com | |
server { | |
listen 80; | |
server_name *.example.com; | |
rewrite ^(.*) http://example.com$1 permanent; |
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
The MIT License (MIT) | |
Copyright (c) Richard Käll <[email protected]> (richardkall.se) | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
App.Adapter = DS.RESTAdapter.extend | |
serializer: DS.RESTSerializer.extend | |
extract: (loader, json, type, record) -> | |
root = @rootForType(type) | |
// Embed JSON data in a new object with root element | |
newJSON = {} | |
newJSON[root] = json | |
json = newJSON | |
// |
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
# Using .rsync-filter | |
$ rsync -avz --delete --exclude-from=".rsync-filter" -e "ssh" --rsync-path="sudo rsync" project/* [email protected]:/project | |
# Using pattern | |
$ rsync -avz --exclude=".DS_Store" -e "ssh" --rsync-path="sudo rsync" project/* [email protected]:/project |
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
# Node Version Manager | |
# Implemented as a POSIX-compliant function | |
# Should work on sh, dash, bash, ksh, zsh | |
# To use source this file from your bash profile | |
# | |
# Implemented by Tim Caswell <[email protected]> | |
# with much bash help from Matthew Ranney | |
{ # this ensures the entire script is downloaded # |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECow | |
LjA4MjM1Mjk0MzcyIDAuMDgyMzUyOTQzNzIgMC4wODIzNTI5NDM3MgAQAYAC0hAREhNa | |
JGNsYXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFy |
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
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin'); | |
module.exports = (env = { production: false }) => ({ | |
module: { | |
rules: [ | |
{ | |
test: /\.css$/, | |
use: [ | |
...(env.production |
OlderNewer