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
echo 1 > /sys/block/sda/device/rescan | |
# Reference: http://blog.gurudelleccelsopicco.org/2009/09/online-lun-expansion-and-partition-resizing-without-reboot-under-linux/ |
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
. . . | |
mount -o bind,rw,acl /var/www/[page-directory] /var/vsftpd/[user]/www |
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
:: List available shadows | |
diskshadow | |
list shadows all | |
:: Create a symbolic link to shadow | |
mklink /d C:\SHADOW01 \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\ |
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
. . . | |
/dev/foo1 /foo ocfs2 _netdev 0 0 | |
# _netdev | |
# Ensures that the OCFS2 volume is not mounted before the networking | |
# structure is up, and ensures that there is an unmount before shutting down | |
# the network. | |
# http://pic.dhe.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=%2Fliaag%2Focfs2%2Fl0wocf00_ocfs2_mounting_shared_devices.htm |
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
# Get deployed containers | |
docker ps -a | |
# Get container details (FULL-ID, IP etc) | |
docker inspect [ID] | less | |
# Get a bash session on container | |
lxc-attach -n [FULL-ID] /bin/bash | |
# Remove untagged images |
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
dock_attach() { | |
lxc-attach -n $(sudo docker inspect $1 | grep '"ID"' | sed 's/[^0-9a-z]//g') /bin/bash | |
} | |
alias dock-attach=dock_attach | |
#Ref: https://github.com/dotcloud/docker/issues/1228#issuecomment-31872991 |
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
systeminfo | find /i "original" |
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
last | grep "wtmp" |
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
<VirtualHost *:443> | |
# (...) | |
SSLProtocol ALL -SSLv2 -SSLv3 | |
SSLHonorCipherOrder On | |
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS | |
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains" | |
# (...) | |
# References: | |
# - https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/ |
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
#!/usr/bin/python -u | |
# Copyright (c) 2010-2011 OpenStack, LLC. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
OlderNewer