Skip to content

Instantly share code, notes, and snippets.

@pkfrom
pkfrom / iCloud_Windows.md
Last active June 23, 2019 08:29
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
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
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 ""

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);
@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
@pkfrom
pkfrom / remove_DS_Store.md
Created January 21, 2016 15:16
Remove .DS_Store files from a Git repository

Remove existing files from the repository:

find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch

Add the line

.DS_Store
@pkfrom
pkfrom / upstream.sh
Last active January 21, 2016 11:39
How to update a GitHub forked repository
# Add the remote, call it "upstream":
git remote add upstream https://github.com/whoever/whatever.git
# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:
git fetch upstream
# Make sure that you're on your master branch:
@pkfrom
pkfrom / Preferences.sublime-settings
Last active January 19, 2016 00:19
Preferences.sublime-settings
{
"bold_folder_labels": true,
"caret_style": "phase",
"fade_fold_buttons": false,
//"font_face": "Source Code Pro",
"font_face": "Tahoma",
"font_size": 10,
"highlight_line": true,
//"line_padding_bottom": 1,
//"line_padding_top": 1
@pkfrom
pkfrom / List_of_ENV_in_Windows.md
Last active January 11, 2024 15:12
List of Environment Variables in Windows Operating System.

List of Environment Variables in Windows Operating System

Windows XP Environment Variables

Environment Variable Path
%ALLUSERSPROFILE% C:\Documents and Settings\All Users
%APPDATA% C:\Documents and Settings{username}\Application Data
%COMMONPROGRAMFILES% C:\Program Files\Common Files
%COMMONPROGRAMFILES(x86)% C:\Program Files (x86)\Common Files
<meta http-equiv="refresh" content="0; url=https://facebook.com/intimeseyebrows" />