Skip to content

Instantly share code, notes, and snippets.

@pkfrom
pkfrom / Vagrantfile
Created February 29, 2016 15:46
Vagrantfile DO
Vagrant.configure('2') do |config|
config.ssh.private_key_path = 'sshkey/id_rsa'
config.vm.box ='ubuntu/trusty64'
config.vm.network "forwarded_port", guest: 80, host: 8080
provider_is_do = (!ARGV.nil? && ARGV.join('').include?('provider=digital_ocean'))
config.vm.provision 'shell', inline: <<-SHELL
sudo apt-get update

Using Let’s Encrypt (public beta) with Vesta Control Panel

Install the Let’s Encrypt ACME Client

Follow the instructions at https://letsencrypt.readthedocs.org. Assuming you installed as root, the client will be now be located at /root/letsencrypt.

Request a Certificate

By default:

  • The beta client will use the test infrastructure to issue a certificate, and thus won’t be trusted by browsers;
  • The client uses a temporary web server to authenticate the host which will conflict with the existing web server(s);
root_pass="root"
ragnarok_db="ragnarok"
ragnarok_user="ragnarok"
ragnarok_pass="ragnarok"
echo ""
echo "[+] Installing depencies..."
echo ""
apt-get install git make gcc libmysqlclient-dev zlib1g-dev libpcre3-dev
echo ""
sudo apt-get -y update
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get -y update
apt-cache policy docker-engine
@pkfrom
pkfrom / iCloud_Windows.md
Last active March 9, 2025 19:13
How to change your Windows iCloud Drive Folder

How to change your Windows iCloud Drive Folder

I'll assume this is about iCloudDrive for Windows (you don't mention that explicitly in your question). If that's the case,

follow these steps:

  • Disable iCloud Drive from the Control Panel (please really do this, otherwise it will mess things up)
  • Move (not copy) your iCloudDrive directory C:\Users\<username>\iCloudDrive to the new location.
  • Open a command prompt and type: mklink /J "C:\Users\<username>\iCloudDrive" "<new destination>" This creates a junction (sort of a shortcut, but more powerfull) from the old location to the new location.
  • Reboot your computer and everything should be fine