Skip to content

Instantly share code, notes, and snippets.

Avatar

Julio Napurí julionc

View GitHub Profile
@julionc
julionc / puppeteer-bot.js
Created May 19, 2019 — forked from nicoandmee/puppeteer-bot.js
disguisePage - undetectable puppeteer
View puppeteer-bot.js
const WEBGL_RENDERERS = ['ANGLE (NVIDIA Quadro 2000M Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (NVIDIA Quadro K420 Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (NVIDIA Quadro 2000M Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (NVIDIA Quadro K2000M Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (Intel(R) HD Graphics Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Family Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (ATI Radeon HD 3800 Series Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (AMD Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (Intel(R) HD Graphics Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Family Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Family Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics 4000 Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics 3000 Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Mobile Intel(R) 4 Seri
@julionc
julionc / keybase.md
Created Dec 10, 2014
GitHub identity
View keybase.md

Keybase proof

I hereby claim:

  • I am julionc on github.
  • I am julionc (https://keybase.io/julionc) on keybase.
  • I have a public key whose fingerprint is C521 522A 7ED2 E37F F3B4 40E5 26B3 1D45 7BFD 4016

To claim this, I am signing this object:

@julionc
julionc / ruby_setup.md
Last active Aug 18, 2017
Deploy Ruby On Rails on Ubuntu 14.04
View ruby_setup.md

Deploy Ruby On Rails on Ubuntu 14.04

Server: Nginx with Phusion Passenger

Ruby Version: 2.1.3

User System: deploy

User System

@julionc
julionc / 00.howto_install_phantomjs.md
Last active Oct 14, 2020
How to install PhantomJS on Debian/Ubuntu
View 00.howto_install_phantomjs.md

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@julionc
julionc / archlinux_install.sh
Last active Feb 12, 2018
Things to do after install ArchLinux (2012.12.01)
View archlinux_install.sh
#!/usr/bin/env bash
# Things to do after install ArchLinux (2012.12.01)
pacman --noconfirm -S sudo
# Enabled archlinuxfr repo
arch=$(uname -m)
sudo cp /etc/pacman.conf /etc/pacman.conf.bak
echo "" >> /etc/pacman.conf
echo "[archlinuxfr]" >> /etc/pacman.conf
@julionc
julionc / gist:4158704
Created Nov 28, 2012
Redirect to Www for Heroku With SSL
View gist:4158704
# Taken from http://blog.bigbinary.com/2012/10/12/redirect-to-www-heroku-ssl.html
Bigbinary::Application.routes.draw do
constraints(:host => /^bigbinary.com/) do
root :to => redirect("http://www.bigbinary.com")
match '/*path', :to => redirect {|params| "http://www.bigbinary.com/#{params[:path]}"}
end
end
@julionc
julionc / time.php
Created Jul 13, 2012
Simple script for basic measuring time - PHP
View time.php
<?php
/*
* Simple script for basic measuring time
*
* See: https://groups.google.com/d/topic/phpperu/UAoqzKt2Cdc/discussion
*/
$before = microtime(true);
for ($i=0 ; $i < 1000000; $i++) {
@julionc
julionc / MY_Controller.php
Created Feb 8, 2012
[es] Ejemplo de MY_Controller.php usando ion_auth como librería de Auth
View MY_Controller.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Admin_Controller extends CI_Controller {
protected $the_user;
public function __construct() {
parent::__construct();
@julionc
julionc / slideshare-dl.py
Created Sep 17, 2011
slideshare-dl is a small command-line program for downloading slides from SlideShare.net
View slideshare-dl.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
slideshare-dl.py
~~~~~~~~~~~~~~~~
slideshare-dl is a small command-line program
for downloading slides from SlideShare.net
@julionc
julionc / ubuntu_install.sh
Created Aug 29, 2011
Things to do after install Ubuntu 11.4 (Natty)
View ubuntu_install.sh
#!/usr/bin/env bash
# Things to do after install Ubuntu 11.4 (Natty)
# Enabled partner repo
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
STOP="deb "
REPO="partner"
sudo sed -i "/^# $STOP.*$REPO/ s/^# //" /etc/apt/sources.list
# Repos
You can’t perform that action at this time.