Skip to content

Instantly share code, notes, and snippets.

View jjcodes78's full-sized avatar
🎯
Focusing

Jorge Gonçalves Junior jjcodes78

🎯
Focusing
View GitHub Profile
setTimeout(function(){
document.getElementsByClassName('_2S1VP')[0].innerHTML=" Eu tô pesquisando...";
document.getElementsByClassName('_2Fofa')[0].click();
document.getElementsByClassName('b71 emojik wa')[0].click();
document.getElementsByClassName('_2lkdt')[0].click();
}, 1000);
setTimeout(function(){
document.getElementsByClassName('_2S1VP')[0].innerHTML=" Meu 'bot' ta...";
document.getElementsByClassName('_2Fofa')[0].click();
document.getElementsByClassName('b71 emojik wa')[0].click();
@jjcodes78
jjcodes78 / fix-phantomjs.md
Created April 14, 2018 19:35 — forked from neuro-sys/fix.md
How to Fix PhantomJS to work with GhostDriver

Copy paste the line below to your terminal:

https://gist.githubusercontent.com/neuro-sys/3bf00b6cf28a93e07e44/raw/e8976da93a55e5ef7c5e8dc99c00772fffb06f6c/replacestring.c
gcc replacestring.c -oreplacestring
./replacestring "$(strings /usr/bin/phantomjs | grep "platform: ghostdriver")" " " < /usr/bin/phantomjs > phantomjs && chmod a+x phantomjs
sudo cp phantomjs /usr/bin/phantomjs

Alright, there's a bug in a recent version of PhantomJS which renders it unable to run with GhostDriver. The error is like this:

@jjcodes78
jjcodes78 / dyldlib_FIX.md
Last active February 27, 2018 20:15
dyld JPEG Library fix on OSX

Recompile formula from source

brew reinstall php71 --build-from-source

Downgrade jpeg formula

brew switch jpeg 8d
<?php
/**
* Created by PhpStorm.
* User: Jorge
* Date: 05/10/2017
* Time: 18:30
*/
// Classe que extende a classe utilitária BASE
// Status de Ordens de Serviço
@jjcodes78
jjcodes78 / binput
Last active August 24, 2017 15:35
Laravel Blade Form Input Snippet
<div class="form-group @if($errors->has('$nome$')) has-error @endif">
<label for="$nome$" class="input-control">$label$</label>
<input type="text" name="$nome$" class="form-control" $op$ />
<span class="help-block">{{ $errors->first('$nome$') }}</span>
</div>
@jjcodes78
jjcodes78 / laravel_ci_deploy.sh
Last active March 29, 2018 01:25
Laravel CI deployment script
#!/usr/bin/env bash
#---------------------------------------------------------------
# Continuous Integration / Deployment (CI/CD)
# Deployment Shell Script
# Build for deploy Laravel applications after CI check
# Author: Jorge -JJSQUADY- Junior
# July, 2017
#
# Transfer this file to server
# and run it: bash <name_of_this_script>
@jjcodes78
jjcodes78 / circle.yml
Last active July 7, 2017 10:13
Laravel continuous integration config file with Laravel Dusk (browser tests) for Circle CI
machine:
php:
version: 7.1.3
node:
version: 8.1.0
dependencies:
override:
- npm install
- composer install --no-interaction
@jjcodes78
jjcodes78 / Setup commands script
Last active July 3, 2017 17:37
Laravel Framework configuration script with Laravel Dusk (browser tests) for Codeship CI
# We support all major PHP versions. Please see our documentation for a full list.
# https://documentation.codeship.com/basic/languages-frameworks/php/
#
# By default we use the latest PHP version from the 5.5 release branch, but Laravel
# requires at least version 5.6.4
#
phpenv local 7.1
#
# Install extensions via PECL
#pecl install -f memcache
@jjcodes78
jjcodes78 / README.md
Created June 29, 2017 08:37 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

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/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@jjcodes78
jjcodes78 / composer.json
Created June 23, 2017 21:28
Laravel composer
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.4.*",
"laravel/tinker": "~1.0"