Skip to content

Instantly share code, notes, and snippets.

View djom202's full-sized avatar

Jonathan Olier djom202

View GitHub Profile

Gomosoft

AUTO DESPLIEGUE DE CODIGO DESDE GITHUB

Con este pequeño código haremos un autodespliegue de nuestro repositorio en nuestro servidor. Debemos tener instalando Node.js con Npm (Instalar nodejs y npm), también es necesario GIT (Instalar Git) previamente. Luego podemos seguir con las instruciones.

Instruciones:

#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
@djom202
djom202 / filter.js
Created February 20, 2015 20:51
Advance Search
.filter('search_process', function() {
return function(list, search, state, date1, date2) {
console.log(search+ " " +state+ " " +date1+ " " +date2);
var result = [];
var find = false;
if(search == null && state == null && date1 == null && date2 == null){
return list;
}
@djom202
djom202 / style.css
Created March 11, 2015 16:11
DSS (Don't Show Scrollbar)
::-webkit-scrollbar {
display: none;
}
@djom202
djom202 / create_phpmyadmin.sh
Created March 11, 2015 21:47
Crear acceso en la raiz para Phpmyadmin en linux
sudo ln -s /usr/share/phpmyadmin /var/www/html
@djom202
djom202 / wordpress.sh
Created March 11, 2015 21:53
Instalando Wordpress en Linux
#!/bin/bash
clear
echo 'Eliminando Wordpress'
sudo rm -R wp wordpress
echo 'Instalando Wordpress'
wget http://wordpress.org/latest.tar.gz
tar xzvf latest.tar.gz
sudo chmod -R 777 wordpress
@djom202
djom202 / bottom_skype.html
Created March 12, 2015 22:53
Boton de Skype
<style>
#SkypeButton_Call_soluntechSkype_1_paraElement img {
margin-left: 0 !important;
}
</style>
<div id="SkypeButton_Call_soluntechSkype_1">
<script type="text/javascript">
Skype.ui({
"name": "call",
@djom202
djom202 / install_lampserver.sh
Created March 17, 2015 16:49
Install Lamp Server on ubuntu
sudo apt-get install php5 mysql-server apache2
sudo apt-get install lamp-server^
sudo apt-get install phpmyadmin
sudo ln -s /usr/share/phpmyadmin /var/www/
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->