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
getUnixTime: function(){ | |
return (new Date()).getTime(); | |
} |
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
curl -s -S -X POST --data-urlencode "payload={\"text\":\"domain changed\"}" 'https://hooks.slack.com/services/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' > /dev/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
RewriteEngine On | |
# Redirect If Not Secure | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L] |
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
ps aux | grep httpd | awk '{sum += $6}END{print sum/1000}' |
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
// ========================================================================== | |
// Foundation | |
// ========================================================================== | |
@import "foundation/_variables" | |
@import "foundation/_reset" | |
@import "foundation/_base" | |
// ========================================================================== | |
// Component | |
// ========================================================================== |
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
/** | |
* transitionEndのイベント | |
* | |
* 使えない場合はsetTimeout | |
*/ | |
$.fn.extend({ | |
transitionEnd: function() { | |
var style = document.createElement('div').style; | |
var canUse = "transition" in style || "WebkitTransition" in style; | |
var defer = new $.Deferred(); |
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
# https://httpd.apache.org/docs/current/ja/mod/core.html#files | |
# ~ で正規表現が使える | |
<Files ~ "\.json"> | |
Order Deny,Allow | |
Deny from All | |
</Files> |
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
// Goutte is good | |
// | |
// https://github.com/FriendsOfPHP/Goutte | |
// | |
// * install * | |
// composer require fabpot/goutte | |
use Goutte\Client; | |
$client = new Client(); |
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 App = () => { | |
return ( | |
<div> | |
<h2>hoge</h2> | |
</div> | |
) | |
} |
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
ALTER TABLE tablename AUTO_INCREMENT = 1; |
NewerOlder