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 | |
while read LINE; do | |
TIME="$(echo "$LINE"|awk '{print $1}')" | |
FIXED_TIME="$(date -d "$TIME" '+[%d/%b/%Y:%H:%M:%S %z]')" | |
echo -n "$FIXED_TIME " | |
echo "$LINE"|sed -re 's/^[^ ]+ //' | |
done |
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 response : MatrixSyncResponseDTO = await this._client.sync({ | |
filter: { | |
presence: { | |
limit: 0 | |
}, | |
account_data: { | |
limit: 0 | |
}, | |
room: { | |
account_data: { |
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 | |
# Origin: https://gist.github.com/thejhh/7e505fdc56d08253cdaf7de5f25838db | |
# USAGE: git-archive BRANCH [...BRANCH_N] | |
set -e | |
#set -x | |
DATE="$(date '+%Y%m%d-%H%M%S')" | |
BRANCH_NAME=$1 |
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
// Copyright (c) 2020 Sendanor. All rights reserved. | |
import Request from "../../core/Request"; | |
import UserService, {UserModel} from "./UserService"; | |
export interface ListDTO<T> { | |
pageNumber : number; | |
pageSize : number; | |
content : Array<T>; |
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
// Copyright (c) 2020 Sendanor. All rights reserved. | |
export interface JsonSerializable { | |
toJSON () : JsonAny; | |
} | |
export type JsonAny = string | number | boolean | null | JsonArray | JsonObject | JsonSerializable; | |
export type JsonObjectOf<T extends JsonAny> = { [name: string]: T | undefined }; | |
export type JsonObject = { [name: string]: JsonAny | undefined }; | |
export type JsonArrayOf<T extends JsonAny> = Array<T>; |
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
// Copyright (c) 2020 Sendanor. All rights reserved. | |
import Ansible, {AnsibleTask as Task} from "../utils/Ansible"; | |
import Build from "../utils/Build"; | |
import Tag from "../types/Tag"; | |
import Play from "../types/Play"; | |
import {FileTaskState} from "../types/FileTask"; | |
enum InstallWpVariable { |
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
// Copyright 2020 Jaakko Heusala <jheusala@iki.fi> | |
// Licence: MIT | |
import {filter, forEach, has} from "../../modules/lodash"; | |
export interface ObserverCallback<EventName extends keyof any> { | |
(event: EventName) : void; | |
} | |
export interface ObserverDestructor { |
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 | |
uglifyjs order-export.js --compress --mangle > min.js | |
sed -e 's/^function e(/function(/' -e 's/ /%20/g' min.js > min2.js | |
echo "javascript:($(cat min2.js))()" |
NewerOlder