This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="application/javascript"> | |
alert("HELLO") | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdio.h" | |
#include "stdlib.h" | |
#include "string.h" | |
// Atraves de la tecnica de la burbuja | |
int main(int argc, char const *argv[]) { | |
char busqueda[30]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x = document.getElementsByTagName("td"); | |
var y = document.getElementById("ctl00_mainCopy_Lbl_Promedio"); | |
var number = 8; | |
y.innerHTML = "7.85"; | |
x[203].innerHTML = "8"; | |
x[191].innerHTML = "8"; | |
var elem = document.getElementById('ctl00_mainCopy_grvEstatus_alumno'); | |
elem.parentNode.removeChild(elem); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream app_server { | |
server 127.0.0.1:9000 fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name <server name>; | |
return 301 https://$server_name$request_uri; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This runs on 9000 port | |
NAME="appname" | |
VIRTUALENV="virtualenv folder" | |
DJANGO_DIR="django root folder" | |
USER=root | |
GROUP=sudo | |
NUM_WORKERS=5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Gunicorn daemon for Django project" | |
start on (local-filesystems and net-device-up IFACE=eth0) | |
stop on runlevel [!12345] | |
script | |
/home/django/pinchefv2/deploy/gunicorn_start | |
end script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name subdomain1.domain.com; | |
location / { | |
proxy_pass http://localhost:{YOUR_PORT}; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Spotify | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D2C19886 | |
echo deb http://repository.spotify.com stable non-free | tee /etc/apt/sources.list.d/spotify.list | |
# System Monitor Indicator | |
add-apt-repository ppa:fossfreedom/indicator-sysmonitor | |
# Diodon Indicator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
factorial = 1 | |
number = raw_input("Insert a number\n") | |
if number is '': | |
print("No ingresaste Nada") | |
elif number.isspace(): |