Add the pre-push
file into your .git/hooks/
folder.
https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook
See https://github.com/RobertShippey/MCU/blob/master/MCU.csv |
Add the pre-push
file into your .git/hooks/
folder.
https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook
#!/bin/bash | |
# Configs | |
VSYSTEM=qemu # Either 'qemu' or 'kvm' | |
INCLUDES='less,vim,sudo,openssh-server,acpid' | |
MIRROR="http://ftp.br.debian.org/debian" | |
ARCH=686 | |
clean_debian() { | |
[ "$MNT_DIR" != "" ] && chroot $MNT_DIR umount /proc/ /sys/ /dev/ /boot/ |
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
15-Love #1 | |
5 Ronin #1 (of 5) | |
A + X #1 | |
A-Babies vs. X-Babies #1 | |
AVX: Consequences #1 (of 5) | |
AVX: VS. #1 (of 6) | |
Age of Apocalypse #1 | |
Age of Apocalypse: Sinister Bloodlines | |
Age of X Universe #1 (of 2) | |
Age of X: Alpha #1 |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: SystemEmail | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Send email | |
# Description: Sends an email at system start and shutdown | |
### END INIT INFO |
# | |
# Slightly tighter CORS config for nginx | |
# | |
# A modification of https://gist.github.com/1064640/ to include a white-list of URLs | |
# | |
# Despite the W3C guidance suggesting that a list of origins can be passed as part of | |
# Access-Control-Allow-Origin headers, several browsers (well, at least Firefox) | |
# don't seem to play nicely with this. | |
# |
############################################################################### | |
# The MIT License | |
# | |
# Copyright 2012-2014 Jakub Jirutka <[email protected]>. | |
# | |
# 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 |