Skip to content

Instantly share code, notes, and snippets.

Avatar

Sergio N. EOM

View GitHub Profile
View Mejora-Codigo-HTML-con-el-buscaro-de-google
<html>
<head>
<title>Non-alcoholic Pina Colada</title>
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Recipe",
"name": "Non-alcoholic Pina Colada",
"image": [
"https://example.com/photos/1x1/photo.jpg",
@ecarlson94
ecarlson94 / README.md
Last active Nov 26, 2022
WSL Configuration
View README.md

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
jult / install_ispcfg_for_deb9.sh
Last active Aug 14, 2018 — forked from jniltinho/install_ispconfig_nginx_debian.sh
ISPconfig 3.x install with NGINX 1.13.x + PHP 7.1 on Debian 9 x64 (Stretch) server
View install_ispcfg_for_deb9.sh
#!/bin/bash
## Install ISPConfig + NGINX + PHP 7.1 on Debian 9 x64 (Stretch)
## Filesystem ext4
## Run as root
## Based on: https://www.howtoforge.com/tutorial/perfect-server-debian-jessie-nginx-bind-dovecot-ispconfig-3.1/
## and: https://www.howtoforge.com/tutorial/perfect-server-debian-9-stretch-apache-bind-dovecot-ispconfig-3-1/
## ! For Postfix config see https://www.howtoforge.com/tutorial/perfect-server-debian-9-stretch-apache-bind-dovecot-ispconfig-3-1/
# Check if user has root privileges
@dusta
dusta / Deploy_on_cPanel.md
Last active Aug 1, 2022 — forked from oodavid/README.md
Deploy your site with git on cPanel
View Deploy_on_cPanel.md

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
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 16.04.md

Production LAMP server setup on Ubuntu 16.04

Introduction

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
theorigin / SQLServer-APIPost.sql
Last active Jan 17, 2023
SQL Server code to POST to an API
View SQLServer-APIPost.sql
DECLARE @Object AS INT;
DECLARE @ResponseText AS VARCHAR(8000);
DECLARE @Body AS VARCHAR(8000) =
'{
"what": 1,
"ever": "you",
"need": "to send as the body"
}'
EXEC sp_OACreate 'MSXML2.XMLHTTP', @Object OUT;
@Linnk
Linnk / nginx_cakephp.dev.conf
Created Sep 2, 2015
NGINX configuration file for CakePHP projects with subdirectory
View nginx_cakephp.dev.conf
# 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:
#
# example.com/ —> ~/cakephp.dev/app/webroot/index.php
@EOM
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
<?php
/**
* Application level Controller
*/
App::uses('Controller', 'Controller');
// Controller Ejemplo
class AppController extends Controller {
public function index(){
@punkdata
punkdata / cloud-config.yaml
Last active Aug 8, 2018
CoreOS cloud-config.yaml Example
View cloud-config.yaml
#cloud-config
hostname: <your hostname>
ssh_authorized_keys:
- ssh-rsa < your Public SSH key AAAAB3NzaC1... >
coreos:
etcd:
addr: $private_ipv4:4001