git remote -v
should give something like
origin git@github.com:/.git (fetch)
// adding a debounce function in order to prevent the resize | |
// code from being called too often. | |
// @see http://stackoverflow.com/a/9828919 | |
// @see https://davidwalsh.name/javascript-debounce-function | |
// Returns a function, that, as long as it continues to be invoked, will not | |
// be triggered. The function will be called after it stops being called for | |
// N milliseconds. If `immediate` is passed, trigger the function on the | |
// leading edge, instead of the trailing. | |
var debounce = function (func, wait, immediate) { | |
var timeout; |
git remote -v
should give something like
origin git@github.com:/.git (fetch)
<?php | |
$entity_type = 'node'; | |
$bundle = 'page'; | |
$field_name = 'field_description'; | |
$fsc = FieldStorageConfig::loadByName($entity_type, $field_name); | |
$fc = FieldConfig::loadByName($entity_type, $bundle, $field_name); | |
$display = entity_get_display($entity_type, $bundle, 'default'); | |
$form_display = entity_get_form_display($entity_type, $bundle, 'default'); |
{ | |
"title": "Metrics", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "collectd_type = \"memory\" and type_instance = \"used\"", | |
"alias": "Used", | |
"color": "#EF843C", | |
"id": 0, |
#!/bin/bash | |
ftypes=$(find . -type f | grep -E ".*\.[a-zA-Z0-9]*$" | sed -e 's/.*\(\.[a-zA-Z0-9]*\)$/\1/' | sort | uniq) | |
for ft in $ftypes | |
do | |
echo -n "$ft " | |
find . -name "*${ft}" -exec ls -l {} \; | awk '{total += $5} END {print total}' | |
done |
Host some-name | |
Hostname server-address(ip or hostname) | |
User username | |
ForwardAgent yes | |
# The first parameter is the port which you will access from | |
# your local computer. The second is the IP & Port on the remote | |
# server that you want to access | |
LocalForward 8085 127.0.0.1:80 |
nslookup -type=soa domain.name
dig +short NS domain.name
input { | |
file { | |
type => "ossec" | |
path => "/var/ossec/logs/alerts/alerts.log" | |
sincedb_path => "/opt/logstash/" | |
codec => multiline { | |
pattern => "^\*\*" | |
negate => true | |
what => "previous" | |
} |
https://getcomposer.org/doc/articles/troubleshooting.md#xdebug-impact-on-composer https://github.com/Homebrew/homebrew-php/issues/2536#issuecomment-178798390
Comment out the line enable xdebug in /usr/local/etc/php/5.6/conf.d/ext-xdebug.ini
[xdebug]
;zend_extension="/usr/local/opt/php56-xdebug/xdebug.so"
#!/bin/bash | |
adduser yusuf | |
usermod -aG sudo yusuf | |
echo 'yusuf ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/custom && chmod 0440 /etc/sudoers.d/custom |