Skip to content

Instantly share code, notes, and snippets.

View r1w1s1's full-sized avatar
:octocat:

Ricardson (r1w1s1) r1w1s1

:octocat:
View GitHub Profile
@r1w1s1
r1w1s1 / vagrant_guest_slackware_support.md
Last active April 13, 2016 18:29
Vagrant's Guest Slackware support for "hostname" and "network"

I'm using Vagrant 1.7.4 on Mac OS X(host)

/opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/guests/linux/cap/change_host_name_.rb

module VagrantPlugins
  module GuestLinux
    module Cap

Keybase proof

I hereby claim:

  • I am ricardson on github.
  • I am ricardson (https://keybase.io/ricardson) on keybase.
  • I have a public key ASAP3JxYsP1OtYXMK0n00l8v2CEwf-_I_VDqf6cIkZxvkQo

To claim this, I am signing this object:

#Redirecting to SSL using Apache’s htaccess

Just edit the .htacess file and add the below lines.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ http://www.test.com/$1 [L,R=301]
Vagrant.configure(2) do |config|
config.ssh.insert_key = false
config.vm.box = "fedora/23-cloud-base"
config.vm.network "forwarded_port", guest: 80, host: 80
config.vm.hostname = "webserver"
end
http://0.0.0.0
fastcgi / 127.0.0.1:9000 php
header / -Server
gzip
root /srv
https://www.dropbox.com/sh/yxvt5um437gspr0/AAAwOZ2uh8PD5kNSW3jeOjKEa?dl=0
1 - Baixar/Instalar os 3 arquivos do link acima, seguindo a ordem numérica.
2 - Depois executar o aquivo 2 (Blackberry Google ID) e fazer o registro na Play Store.
3 - Abra a Play Store e seja feliz! :)
FROM alpine:3.4
MAINTAINER Ricardson Williams <ricardsonwilliams@gmail.com>
RUN \
apk add --no-cache \
tar \
which \
bash \
curl \

I use most Google Apps like Drive, Docs, Gmail...

1 - Install epel and nux repositories

sudo yum -y install epel-release && sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

1.1 Update the whole system

FROM centos:7
MAINTAINER Ricardson Williams <ricardsonwilliams@gmail.com>
RUN \
yum -y update \
&& yum -y install \
tar \
which \
&& yum clean all \
stop all containers:
sudo docker kill $(sudo docker ps -q)
remove all containers
sudo docker rm $(sudo docker ps -a -q)
remove all docker images
sudo docker rmi $(sudo docker images -q)
remove all dangling (unused) images