Skip to content

Instantly share code, notes, and snippets.

View naitsric's full-sized avatar
🎯
Focusing

Cristian Duque naitsric

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am naitsric on github.
  • I am naitsric (https://keybase.io/naitsric) on keybase.
  • I have a public key whose fingerprint is 0CEF 42B8 CA4F E63C 5AE9 D5C3 FA47 D3D0 192D 97F4

To claim this, I am signing this object:

pg_dump -d xxx --compress=6 -n public | gdrive upload - -p xxxxx $NEW_DUMP
pg_dump --compress=6 -d xxx -n public -h xx.amazonaws.com -U xxxx
pg_dump -d xxx -n public -h xxx.amazonaws.com -U xxx --verbose > masterlive.sql
gunzip -c ~/Downloads/asdasdasdasdasda.sql.gz | psql -h xxxxxxxs.amazonaws.com -p 5432 -U xxx xxxx
FROM python:3.5
MAINTAINER CristianDuque <anticris9303@gmail.com>
ENV PYTHONUNBUFFERED 1
RUN apt-get update
RUN apt-get install -y libgeos-dev && apt-get install -y supervisor && apt-get install -y nginx && apt-get install -y redis-server
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
@naitsric
naitsric / encrypt.py
Created January 23, 2017 19:31
test, encrypt and decrypt
import math
def encrypt(text):
total_sum = 0
total_cnt = 0
for c in text:
total_cnt += 1
total_sum += ord(c) ** total_cnt
print(total_sum)
@naitsric
naitsric / Hack.py
Last active January 23, 2017 19:34
# coding=utf-8
import requests
from bs4 import BeautifulSoup, NavigableString
def find_view_state(html):
params = html.split("|")
for param in params:
if '/wEP' in param:
return param
#!/usr/bin/python
import os, sys
import re
from stat import *
import xlrd, xlwt
from datetime import datetime
def walktree(top, callback):
'''recursively descend the directory tree rooted at top,
calling the callback function for each regular file'''
@naitsric
naitsric / checher.py
Created June 17, 2014 18:29
Checker 2 version
import xlrd, xlwt
import time
import datetime, time
from time import gmtime, strftime
import os, sys
from xlutils.copy import copy
import socket
target = "lol.xlsx"
result = "lol.xls"
@naitsric
naitsric / checker.py
Created June 17, 2014 18:23
Verify Files or Folders With Python
#import xlrd, xlwt
import datetime, time
from time import gmtime, strftime
import os, sys
from shutil import copyfile
#from xlutils.copy import copy
target = ""
result = ""
@naitsric
naitsric / Code.js
Created June 17, 2014 18:21
API Google Script
function testSchemas() {
var threads = GmailApp.search('from:"xxxxxx@xxx.com"');
//var threads = GmailApp.getInboxThreads(0, 2);
var label = GmailApp.getUserLabelByName("Verificado");
var ssNew = SpreadsheetApp.create("Listado de Tareas", 100, 17);
skin(ssNew);
for (var i = 0; i < threads.length; i++) {
var threads = threads[i];
@naitsric
naitsric / moduleAngulas.js
Created June 10, 2014 14:10
Modulito Angular
var angularMain = angular.module('angularMain', []);
function barrioController($scope, $http) {
$scope.formData = {};
// Cuando se cargue la página, pide del API todos los TODOs
$http.get('api/barrios')
.success(function(data) {
$scope.todos = data;
console.log(data)