Skip to content

Instantly share code, notes, and snippets.

@rsp2k
rsp2k / README.md
Created December 20, 2015 04:56 — forked from chriswessels/README.md
A guide to setting up self-hosted infrastructure for Meteor applications on Ubuntu Server 13.04.

#Meteor and Self-hosted Infrastructure

Meteor is an eye-opening JavaScript framework that runs on both the client and the server, giving developers a revolutionary take on software engineering. If you are not familiar with Meteor, I urge you to visit their website.

##An overview

In this brief gist, I am going to discuss the process of setting up a server (in my case, a VPS) to host Meteor applications.

My experience with Meteor has been brief, however it has not taken much demonstration for me to realise the significance of this stellar framework. Let's jump right in!

import time
def timing_function(some_function):
"""
Outputs the time a function takes
to execute.
"""
def my_decorator(some_function):
def wrapper():
print("Something is happening before some_function() is called.")
some_function()
print("Something is happening after some_function() is called.")
@rsp2k
rsp2k / custom_views.py
Created September 3, 2021 05:39 — forked from slav0nic/custom_views.py
Django oscar authoprize.net backend
from django.db import transaction
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.utils.translation import ugettext_lazy as _
from django.views.generic import DeleteView
from oscar.core.loading import get_model
from apps.oscar_authorize.facade import Facade
@rsp2k
rsp2k / Personal Windows 10 customization script.bat
Created December 15, 2022 18:05 — forked from jpluimers/Personal Windows 10 customization script.bat
A personal collection of Windows 10 customizations. Run as admin. Has to be run as a batch file, not in CMD.
REM ----------------------------------------------------------------------------------------------------------
REM ### Apps and app suggestions
REM ----------------------------------------------------------------------------------------------------------
REM TITLE: Turn Off Automatic Installation of Suggested Apps in Windows 10
REM LINK: https://www.tenforums.com/tutorials/68217-turn-off-automatic-installation-suggested-apps-windows-10-a.html
REM OPTIONS: 0x00000001=On, 0x00000000=Off
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /V "SilentInstalledAppsEnabled" /T "REG_DWORD" /D "0x00000000" /F 1>NUL 2>&1
@rsp2k
rsp2k / install-vsan-sdk.bash
Last active July 5, 2023 12:11
Install VMWare vSAN Management SDK
#!/bin/bash
# Install VMWare vSAN Management SDK, which needs to be downloaded from VMware and installed manually.
# ryan@supported.systems 2023-07-04
# Created for bootstrapping the Ansible vmware_cluster_vsan module on posix systems:
# https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_cluster_vsan_module.html
# The info here was helpful (thanks!):
# https://sky-jokerxx.medium.com/how-to-use-vsan-modules-for-community-vmware-with-ansible-664702e097c4
#