See all open ports of a host
$ nmap thehost.com
See all the open ports with service versions
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: samueldebruyn/debian-git | |
pipelines: | |
default: | |
- step: | |
script: | |
- apt-get update | |
- apt-get -qq install git-ftp | |
- git ftp init --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://youtftpsite.com/ftp-path/ | |
# for the second push run this command instead of init |
<?php | |
//Adding custom class to posts is easy with the post_class filter | |
add_filter('post_class', 'custom_content_class'); | |
function custom_content_class($classes) { | |
$classes[] = 'custom_class'; | |
return $classes; | |
} |
Backup: sudo tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/boot --one-file-system / | |
Restore: sudo tar -xvpzf /path/to/tar/file -C / --numeric-owner |
.gist table{table-layout:auto}</style><script src="/user/themes/drminsky/dist/js/vendor/lazysizes.min.js" async></script><script src="/system/assets/jquery/jquery-2.x.min.js"></script><script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script><script>(function(e,a,i,s,o,t,n){e['GoogleAnalyticsObject']=o;e[o]=e[o]||function(){(e[o].q=e[o].q||[]).push(arguments)},e[o].l=1*new Date();t=a.createElement(i),n=a.getElementsByTagName(i)[0];t.async=1;t.src=s;n.parentNode.insertBefore(t,n)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','UA-26639219-1','auto');ga('send','pageview');window.addEventListener('load',function(){window.cookieconsent.initialise({'palette':{'popup':{'background':'#4A4A4A','text':'#E2E2E2'},'button':{'background':'#F32ED4','text':'#fff','border':'#f1d600'}},'position':'bottom','theme':'classic','content':{'message':' En cumplimiento con Ley 34/2002 de servicios de la sociedad de la información, le recordamos que al na |
set nocompatible | |
set autoindent | |
set clipboard=unnamedplus " using the X Window clipboard | |
" colors | |
colorscheme codedark " color scheme | |
syntax enable | |
set background=dark | |
set t_Co=256 |
[user] | |
name = my name | |
email = example@gmail.com | |
[alias] | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
version: '2' | |
services: | |
drupal: | |
image: custom-drupal | |
build: . | |
ports: | |
- "8080:80" | |
volumes: | |
- drupal-modules:/var/www/html/modules |
find . -type f -iname "*.png" -print0 | xargs -I {} -0 optipng -o5 -quiet -keep -preserve -log optipng.log "{}" |
#!/bin/bash | |
# Creates a backup of a WordPress instalation, files and database with WP-CLI | |
# Go to the root directory | |
cd htdocs | |
# Backup files of the root site | |
tar --exclude='./.git' -czvf "backup-$(date +%Y%m%d%H%M%S).tar.gz" . |