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
[global_config] | |
borderless = True | |
scroll_tabbar = True | |
homogeneous_tabbar = False | |
inactive_color_offset = 0.8505747126436781 | |
suppress_multiple_term_dialog = True | |
[keybindings] | |
split_horiz = <Primary><Alt>o | |
split_vert = <Primary><Alt>e | |
full_screen = <Primary><Super>Up |
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
/*! @license | |
* Shaka Player | |
* Copyright 2016 Google LLC | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
goog.provide('shaka.text.FeatTextDisplayer'); | |
goog.require('goog.asserts'); |
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
/*! @license | |
* Shaka Player | |
* Copyright 2016 Google LLC | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
goog.provide('shaka.text.CanvasTextDisplayer'); | |
goog.require('goog.asserts'); |
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 | |
# source http://mindspill.net/computing/linux-notes/bash-script-to-check-ssh-connection/ | |
ssh -q -o BatchMode=yes -o ConnectTimeout=10 example.com exit | |
if [ $? -ne 0 ] | |
then | |
# Do stuff here if example.com SSH is down | |
echo 'Can not connect to example.com' | mail -s "example.com down" whoever@wherever |
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 | |
namespace App\Providers; | |
use DB; | |
use App\Setting; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ |
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
//Please mind that in newer version laravel, thing may change | |
//It work at least for 5.x version | |
use Symfony\Component\HttpFoundation\Request as SymfonyRequest; | |
$key = base64_decode('HoEXdquDDDXR20pZy7QleR7FTGZZXix1JeHwDv5Hhh8='); | |
$sr = new SymfonyRequest; | |
$sr->initialize([], [], [], ['laravel_session' => 'eyJpdiI6IjhOcFROekxpamU1U0oyYjIzZkw2TlE9PSIsInZhbHVlIjoiZUo0TmJTZURuS2RTVXc1SVY0cWU3XC9BcVwva2NnUFAzUmI0K2NwTXlzd3BibEpncFwvdzZKNEZpMTlmaWxLZHRmTGd5cXZPTWszS1BuNG5vOGRVWkVKSFE9PSIsIm1hYyI6Ijg3MzFhMTAzZDUwZjdmZjY4MDZkYmY5ZDQ3ZDA1ZTYxOWEwYmNiYTBhNmI0ZTNhY2Q2NzMzY2YzMTIzMjdhYTQifQ==']); |
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
function getScrollbarWidth() { | |
var outer = document.createElement("div"); | |
outer.style.visibility = "hidden"; | |
outer.style.width = "100px"; | |
outer.style.msOverflowStyle = "scrollbar"; // needed for WinJS apps | |
document.body.appendChild(outer); | |
var widthNoScroll = outer.offsetWidth; | |
// force scrollbars |