Skip to content

Instantly share code, notes, and snippets.


Sergio N. EOM

View GitHub Profile
View Mejora-Codigo-HTML-con-el-buscaro-de-google
<title>Non-alcoholic Pina Colada</title>
<script type="application/ld+json">
"@context": "",
"@type": "Recipe",
"name": "Non-alcoholic Pina Colada",
"image": [
ecarlson94 /
Last active Nov 26, 2022
WSL Configuration

Installing WSL (windows subsystem for linux)

Running the azure-team terraform make file to create your infrastructure may not work on a Windows machine. If you cannot get it to run, install a linux distribution where you will exectute the tf files. Setting up a distribution with all of the right dependencies does involve a bit of setup to get it configured properly. The following is a list of steps you'll need to complete:

Install WSL

jult /
Last active Aug 14, 2018 — forked from jniltinho/
ISPconfig 3.x install with NGINX 1.13.x + PHP 7.1 on Debian 9 x64 (Stretch) server
## Install ISPConfig + NGINX + PHP 7.1 on Debian 9 x64 (Stretch)
## Filesystem ext4
## Run as root
## Based on:
## and:
## ! For Postfix config see
# Check if user has root privileges
dusta /
Last active Aug 1, 2022 — forked from oodavid/
Deploy your site with git on cPanel

Deploy your site with git on cPanel

The most important: You must have shell access!

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
  • your (PHP) scripts are served from /var/www/html/
mcnamee / bitbucket-pipelines.yml
Last active Jan 11, 2023
Bitbucket Pipelines - Deploy via FTP to shared hosting
View bitbucket-pipelines.yml
# Installation ---
# 1. In Bitbucket, add FTP_USERNAME, FTP_PASSWORD and FTP_HOST as environment variables.
# 2. Commit this file (bitbucket-pipelines.yml) to your repo (in the repo root dir)
# 3. From Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:Init (this will
# push everything and initialize GitFTP)
# Usage ---
# - On each commit to master branch, it'll push all files to the $FTP_HOST
# - You also have the option to 'init' (see 'Installation' above) - pushes everything and initialises
# - Finally you can also 'deploy-all' (from Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:deploy-all)
View Production LAMP server setup on Ubuntu

Production LAMP server setup on Ubuntu 16.04


Summary of the steps to get a Ubuntu 16.04 production server running with LAMP, multiple virtual hosts and Let's Encrypt SSL.

Initial setup

theorigin / SQLServer-APIPost.sql
Last active Jan 17, 2023
SQL Server code to POST to an API
View SQLServer-APIPost.sql
DECLARE @ResponseText AS VARCHAR(8000);
"what": 1,
"ever": "you",
"need": "to send as the body"
EXEC sp_OACreate 'MSXML2.XMLHTTP', @Object OUT;
Linnk /
Created Sep 2, 2015
NGINX configuration file for CakePHP projects with subdirectory
# NGINX Configuration for CakePHP projects with url subdirectories.
# In a classic-default-generic CakePHP project you can have as many
# independent applications as you want just by copying the app/
# directory. Apache and the .htaccess files will make the magic, but
# in a nginx server you will need a touch to your virtualhost conf.
# So, in order to make this:
# —> ~/
EOM / CustomPaginationForJOIN-in-CakePHP
Last active Aug 29, 2015
Personalizar los datos del paginador de CakePHP con la union de datos por medio de JOINS muy simple de implementar
View CustomPaginationForJOIN-in-CakePHP
* Application level Controller
App::uses('Controller', 'Controller');
// Controller Ejemplo
class AppController extends Controller {
public function index(){
punkdata / cloud-config.yaml
Last active Aug 8, 2018
CoreOS cloud-config.yaml Example
View cloud-config.yaml
hostname: <your hostname>
- ssh-rsa < your Public SSH key AAAAB3NzaC1... >
addr: $private_ipv4:4001