I hereby claim:
- I am tdchien on github.
- I am chientd (https://keybase.io/chientd) on keybase.
- I have a public key ASCa5fOkJU0xUjPsFHxE3f-vGyxEg7Sor-cba2tQjpyOcwo
To claim this, I am signing this object:
#!/bin/sh | |
# This script must be executed in the repo where | |
# the *.ts files are. | |
# It will concatenate the segments into one temp | |
# file which ffmpeg will reencode the audio track. | |
# By default the ouptup filename is output.mp4 | |
# but can be changed by providing the name as parameter. | |
# | |
# ffmpeg is required |
<?php | |
namespace App\Libraries; | |
/** | |
* Class able to convert a flat array with parent ID's to a nested tree | |
*/ | |
class FlatToTreeConverter | |
{ | |
/** |
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
ens5: | |
dhcp4: true | |
match: | |
macaddress: 06:9e:15:46:xx:yy | |
set-name: ens5 | |
ens6: |
I hereby claim:
To claim this, I am signing this object:
function checkUnread() { | |
console.log('checkUnread run'); | |
var msg = document.getElementById("message-tab"); | |
var img = msg.querySelector(".tab-red-dot"); | |
if ((img == null) || (img == undefined)) { | |
// rambox.clearUnreadCount(); | |
document.title = originalTitle; | |
return; | |
} | |
var src = img.attributes["src"]; |
More recent versions of PHP are built with VC11, VC14 or VC15 (Visual Studio 2012, 2015 or 2017 compiler respectively) and include improvements in performance and stability.
TS refers to multithread capable builds. NTS refers to single thread only builds. Use case for TS binaries involves interaction with a multithreaded SAPI and PHP loaded as a module into a web server. For NTS binaries the widespread use case is interaction with a web server through the FastCGI protocol, utilizing no multithreading (but also for example CLI).
@echo off | |
SET gbPath=d:\programs\git\git-bash.exe | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\git_bash" /t REG_SZ /v "" /d "Open Git bash here" /f | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\git_bash" /t REG_EXPAND_SZ /v "Icon" /d "%gbPath%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\git_bash\command" /t REG_SZ /v "" /d "%gbPath%" /f | |
@reg add "HKEY_CLASSES_ROOT\Directory\background\shell\git_bash" /t REG_SZ /v "" /d "Open Git bash here" /f | |
@reg add "HKEY_CLASSES_ROOT\Directory\background\shell\git_bash" /t REG_EXPAND_SZ /v "Icon" /d "%gbPath%,0" /f |
@echo off | |
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f |
{ | |
"color_scheme": "Packages/Agila Theme/Agila Dracula.tmTheme", | |
"default_line_ending": "unix", | |
"detect_indentation": true, | |
"detect_slow_plugins": false, | |
"drag_text": false, | |
"draw_white_space": "all", | |
"fallback_encoding": "UTF-8", | |
"font_size": 11, | |
"highlight_line": false, |
public function boot(DispatcherContract $events) | |
{ | |
parent::boot($events); | |
$path = storage_path().'/logs/query.log'; | |
\Event::listen('illuminate.query', function($sql, $bindings, $time) use($path) { | |
// Uncomment this if you want to include bindings to queries | |
//$sql = str_replace(array('%', '?'), array('%%', '%s'), $sql); | |
//$sql = vsprintf($sql, $bindings); | |
$time_now = date('Y-m-d H:i:s'); |