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
<?php | |
use Nextras\Orm\Collection\ICollection; | |
use Nextras\Orm\Entity\IEntity; | |
use Nextras\Orm\Mapper\Dbal\Mapper; | |
use Nextras\Orm\Mapper\Dbal\DbalCollection; | |
class BaseMapper extends Mapper | |
{ |
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
- Aws\Sdk({ | |
credentials: { | |
key: %s3.key%, | |
secret: %s3.secret%, | |
}, | |
version: latest, | |
region: 'eu-west-1', | |
http_handler: @Aws\Handler\GuzzleV6\GuzzleHandler, | |
}) | |
- Aws\Handler\GuzzleV6\GuzzleHandler |
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
# init & renew | |
# replace ikw.cz with domain AND admin with vesta user | |
letsencrypt certonly \ | |
--authenticator webroot \ | |
--renew-by-default \ | |
--agree-tos \ | |
--webroot-path /home/admin/web/ikw.cz/public_html \ | |
--domains ikw.cz,www.ikw.cz |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("circleci.com") { | |
.app-dominant { | |
background: #FFF; | |
} | |
.card { | |
border: 2px solid #ccc; | |
border-radius: 4px; | |
} |
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 | |
current_branch="$(git symbolic-ref HEAD 2>/dev/null)" || current_branch="(unknown)" | |
current_branch=${current_branch##refs/heads/} | |
github_username="JanTvrdik" | |
github_token="..." | |
if [[ $current_branch = "(unknown)" ]] | |
then |
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
.build-monitor header .details { | |
display: none; | |
} | |
.build-monitor .slots { | |
position: absolute; | |
left: 0; | |
right: 0; | |
top: 0; | |
-webkit-flex: none; | |
flex: none; |
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
<?php | |
class AdminerColors | |
{ | |
function head() | |
{ | |
static $colors = [ | |
'alpha-adminer.example.com' => '#3C8DBC', | |
'prod-adminer.example.com' => '#DD4B39', | |
]; |
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
[user] | |
useconfigonly = true | |
email = ... | |
name = ... | |
[core] | |
excludesfile = ~/.gitignore_global | |
fscache = true | |
editor = 'C:/Soft_x86/NPP/notepad++.exe' -multiInst -notabbar -nosession -noPlugin | |
autocrlf = Input | |
[color] |
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 kotlinx.coroutines.experimental.* | |
import kotlinx.coroutines.experimental.channels.ReceiveChannel | |
import kotlinx.coroutines.experimental.channels.consumeEach | |
import kotlinx.coroutines.experimental.channels.produce | |
import kotlin.coroutines.experimental.CoroutineContext | |
fun <E> ReceiveChannel<E>.debounce( | |
wait: Long = 50, | |
context: CoroutineContext = DefaultDispatcher | |
): ReceiveChannel<E> = produce(context) { |