These are possible steps to reset a csync2 cluster that has been seriously fubared. This is an apocalyptic approach and should only be used when more surgical fixes (like correcting an individual conflict) aren't workable.
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
| UNITY_MATRIX_IT_MV[0].xyz = ??? | |
| UNITY_MATRIX_IT_MV[1].xyz = Camera Up | |
| UNITY_MATRIX_IT_MV[2].xyz = Camera Forward | |
| float3 forward = -normalize(UNITY_MATRIX_V._m20_m21_m22); | |
| cameraFwd = -unity_MatrixInvV._m02_m12_m22; | |
| float3 up = normalize(UNITY_MATRIX_V._m10_m11_m12); | |
| float3 right = normalize(UNITY_MATRIX_V._m00_m01_m02); | |
| float3 cameraUp = unity_CameraInvProjection[1].xyz; |
- For your local dev, create a
Dockerfilethat is based on your production image and simply installxdebuginto it. Exemple:
FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
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) by Thomas Konings | |
| Random Name Generator for Javascript | |
| */ | |
| function capFirst(string) { | |
| return string.charAt(0).toUpperCase() + string.slice(1); | |
| } | |
| function getRandomInt(min, max) { |
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
| @mixin equal-grid-columns($columns, $gap, $el) { | |
| @include clearfix; | |
| > #{$el} { | |
| float: left; | |
| width: (100% / $columns); | |
| $halfGap: ($gap / 2); | |
| padding: 0 $halfGap; | |
| margin-top: $gap; | |
| @for $i from 1 through $columns { |
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
| <?xml version="1.0"?> | |
| <ruleset name="MyStandard"> | |
| <description>PSR2 with tabs instead of spaces.</description> | |
| <arg name="tab-width" value="4"/> | |
| <rule ref="PSR2"> | |
| <exclude name="Generic.WhiteSpace.DisallowTabIndent"/> | |
| </rule> | |
| <rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/> | |
| <rule ref="Generic.WhiteSpace.ScopeIndent"> | |
| <properties> |
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
| - name: ensure github.com is a known host | |
| lineinfile: | |
| dest: /root/.ssh/known_hosts | |
| create: yes | |
| state: present | |
| line: "{{ lookup('pipe', 'ssh-keyscan -t rsa github.com') }}" | |
| regexp: "^github\\.com" |
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 | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |
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
| # prompt examples: | |
| # [3 jobs master virtualenv] ~/code/myproject/foo | |
| # [1 job my-branch virtualenv] ~/code/bar/ | |
| # [virtualenv] ~/code/ | |
| # ~ | |
| # Very, very fast, only requiring a couple of fork()s (and no forking at all to determine the current git branch) | |
| if [[ "$USER" == "root" ]] | |
| then | |
| export PS1="\e[1;31m\]\u \[\e[1;33m\]\w\[\e[0m\] "; |
