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
| @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
| using UnityEngine; | |
| using System.Collections; | |
| /// <summary> | |
| /// Override the texture of each of the parts with your texture. | |
| /// </summary> | |
| public class OverrideControllerTexture : MonoBehaviour | |
| { | |
| #region Public variables | |
| [Header("Variables")] |
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
| #!bash.exe | |
| export SSH_AUTH_SOCK=/tmp/.ssh-socket | |
| echo ; | |
| echo Starting connection with ssh-agent... | |
| ssh-add -l 2>&1 >/dev/null | |
| if [ $? = 2 ]; then | |
| rm -f /tmp/.ssh-script /tmp/.ssh-agent-pid /tmp/.ssh-socket | |
| # Exit status 2 means couldn't connect to ssh-agent; start one now | |
| echo Creating new ssh-agent... | |
| ssh-agent -a $SSH_AUTH_SOCK > /tmp/.ssh-script |
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
| // MIT License, Copyright William Hilton <wmhilton@gmail.com> | |
| // Implement the proposed W3C Quota Management API (circa 2017) | |
| navigator.storageQuota = { | |
| get supportedTypes () { | |
| let types = [] | |
| if (navigator.webkitTemporaryStorage) types.push('temporary') | |
| if (navigator.webkitPersistentStorage) types.push('persistent') | |
| return types | |
| }, | |
| queryInfo (type) { |
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\] "; |
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
| import Gallery from './COA/COAGallery.svelte'; | |
| /** | |
| * C.O.A. Gallery Custom Element v1 Component Class | |
| */ | |
| class COAGallery extends HTMLElement { | |
| /** | |
| * This defines the attributes to watch in the custom element to trigger the `attributeChangedCallback` method | |
| */ | |
| static get observedAttributes() { |
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
| // sass dependencies: `npm i -D sass` | |
| const util = require('util'); | |
| const sass = require('sass'); | |
| const renderSass = util.promisify(sass.render); | |
| // postcss dependencies: `npm i -D autoprefixer postcss precss` | |
| const autoprefixer = require('autoprefixer'); | |
| const postcss = require('postcss'); | |
| const precss = require('precss'); | |
| const postcssProcessor = postcss([precss, autoprefixer]); |
OlderNewer