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
# file: roles/common/tasks/item.yml | |
- name: be sure basic packages are installed | |
apt: pkg={{item}} state=latest update_cache=yes | |
tags: common | |
with_items: | |
- git | |
- subversion | |
- vim | |
- block: |
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 | |
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000029}, {"HIDKeyboardModifierMappingSrc":0x700000029,"HIDKeyboardModifierMappingDst":0x700000073}]}' |
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 getSubdomain = function (baseDomain) { | |
if (!baseDomain) { | |
return null; | |
} | |
var regSub = new RegExp('^((?!' + baseDomain + '|www)([^.]*))', 'g'); | |
var _subdomain = document.location.hostname.match(regSub); | |
if (_subdomain && _subdomain[0]) { | |
return _subdomain[0]; | |
} else { |
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
package data; | |
import lombok.Getter; | |
import lombok.extern.slf4j.Slf4j; | |
import reactor.core.publisher.Flux; | |
import reactor.core.publisher.Mono; | |
import reactor.netty.ByteBufFlux; | |
import reactor.netty.http.client.HttpClient; | |
import reactor.retry.Retry; | |
import settings.Settings; |
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
tasks.withType(AbstractArchiveTask) { | |
preserveFileTimestamps = false | |
reproducibleFileOrder = true | |
} | |
springBoot { | |
mainClassName = 'com.blazemeter.dagger.DaggerApplication' | |
buildInfo { | |
properties { | |
time = null |
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
import _ from 'lodash'; | |
import produce from 'immer'; | |
import { IAccount } from '../../types/account'; | |
import { IData, IModifiable, ProduceRecipe } from '../metadata'; | |
/** | |
* An account model | |
*/ | |
export class Account implements IModifiable<IAccount>, IData<IAccount> { | |
readonly data: Readonly<IAccount>; |
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 ts = require('typescript'); | |
const tsConfig = require('./tsconfig.json'); | |
const config = tsConfig.compilerOptions; | |
function compile(fileNames, options) { | |
if (fileNames.filter(Boolean).length === 0) { | |
console.log('No files'); | |
return; | |
} |
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
public static final Scheduler scheduler = Schedulers.fromExecutorService(new ThreadPoolExecutor(4, 10, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>())) |
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
<?php | |
class State { | |
public $foo = 0; | |
} | |
class Mutator { | |
public function mutateState(State $state) { | |
$state->foo = 4; | |
} |
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
FROM amazonlinux:latest | |
RUN yum -y update && yum install -y gcc python-devel zip which | |
RUN curl https://bootstrap.pypa.io/get-pip.py | python - | |
RUN pip install pipenv | |
ENV LANG en_US.UTF-8 | |
ENV LC_ALL en_US.UTF-8 | |
ENV SOURCE_DIR lambdas |