Konfigurasi Sublime Text 3 Favorit
Dikumpulkan dengan penuh ❤︎︎ oleh Ian Mustafa.
Bisa diakses melalui Ctrl+Shift+P (atau ⌘+Shift+P di Mac).
{Dikumpulkan dengan penuh ❤︎︎ oleh Ian Mustafa.
Bisa diakses melalui Ctrl+Shift+P (atau ⌘+Shift+P di Mac).
{| # .bash_profile is executed for login shells, | |
| # .bashrc is executed for interactive non-login shells. | |
| # We want the same behaviour for both, so we source .bashrc from .bash_profile. | |
| # Also, when .bash_profile exists, bash ignores .profile, so we have to source | |
| # it explicitly. | |
| if [ -f "$HOME/.profile" ]; then | |
| . "$HOME/.profile" | |
| fi |
| <key name="Palette4" modified="2016-08-07 14:21:13" build="160724"> | |
| <value name="Name" type="string" data="DarkConEmu"/> | |
| <value name="ExtendColors" type="hex" data="01"/> | |
| <value name="ExtendColorIdx" type="hex" data="0f"/> | |
| <value name="TextColorIdx" type="hex" data="0f"/> | |
| <value name="BackColorIdx" type="hex" data="0d"/> | |
| <value name="PopTextColorIdx" type="hex" data="0d"/> | |
| <value name="PopBackColorIdx" type="hex" data="0d"/> | |
| <value name="ColorTable00" type="dword" data="001e1e1e"/> | |
| <value name="ColorTable01" type="dword" data="00cc7a00"/> |
| Few day ago we showed you how to install Webmin on Ubuntu 14.10. This brief tutorial is going to show you how to install the same Webmin on a CentOS 7 machine. | |
| For those who don’t know, Webmin is a web-based tool to mange every aspect of your Unix-like systems. From creating new accounts to managing file permissions to installing applications and services, Webmin allows you to perform all these tasks easily from any modern web browser. | |
| Instead of using the command line console or terminal, new systems administrators could install Webmin and perform all system management from via a web browser without sacrificing time and efforts. Webmin also enables remotely management of your servers. | |
| Before you continue with the installation, please make sure you have root level permissions to your system. If you don’t have root access the installation may fail. | |
Since I wrote this originally, Docker on Windows has become a first-class supported tool, with a Windows Installer and well-documented installation processes from docker and from Microsoft.
Today, I actually install docker using boxstarter scripts where I can Enable-WindowsOptionalFeature -Online -FeatureName containers -All and then choco upgrade -y docker-desktop as well as installing tooling for VS Code code --install-extension "ms-azuretools.vscode-docker".
I've left the rest of these notes here as a historical record, more than anything else. You should not expect the script below to work, but you certainly don
TLDR: RSVP at https://www.meetup.com/Docker-London/events/234774339/, make sure you have a Docker Hub account, and bring your laptop fully charged with Docker set-up. See below for some further instructions and details.
Create a Docker Hub account here at https://hub.docker.com. You will need a Docker Hub account to access the course materials.
Set-up Docker on your laptop (you will need to bring your computer): Linux users: we need you to install Docker Engine and Docker compose. Make sure you have Docker compose version 1.6 or higher by running docker-compose version from the command prompt. Mac users: install Docker for Mac or if you have an older Mac, Docker Toolbox.
Windows users: if you have Windows 10 pro install Docker for Windows, otherwise install Docker Toolbox. If you want to try the new Windows containers, go through the setup steps in the Windows Container lab. It is essential to run this command in Powershell before coming to the event:
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o pipefail | |
| set -o nounset | |
| # set -o xtrace | |
| echo "0.- Reestablecer el contexto" | |
| sudo restorecon -Rv /var/www/html | |
| echo "1.- Cambiar propietario del webroot de Apache" |
This process requires that you are able to ssh OR log in locally using the root user account and that no services be running as users out of /home on the target machine.
The examples are from a default installation with no customization-you NEED to know what you're working with for volumes/partitions to not horribly break things.
By default, CentOS 7 uses XFS for the file system and Logical Volume Manager (LVM), creating 3 partitions: /,/home and swap.
NOTE: If you want to be sure that nothing is writing to /home you can either modify the host to boot into single-user mode OR try to use the
systemctl isolate runlevel1.target command to switch (not tested! should work).
| #!/usr/bin/env python | |
| import os,re, datetime | |
| d = '/var/lib/pacman/local' | |
| packages = os.listdir(d) | |
| packages.sort() | |
| packages.remove('ALPM_DB_VERSION') | |
| pkgname_search = re.compile('^(.*?)-[0-9]') |