Skip to content

Instantly share code, notes, and snippets.

View matbrgz's full-sized avatar
🏠
Working from home

Matheus Breguêz matbrgz

🏠
Working from home
View GitHub Profile
@matbrgz
matbrgz / facebook-mass-delete-group-members.js
Created December 13, 2016 19:23 — forked from mayukojpn/facebook-mass-delete-group-members.js
This javascript removes all users from a facebook group. It works with the new facebook layout. Paste this in the javascript console. Script tested in Firefox. Known issues: 1. when facebook responds slowly, the script might experience hickups.. 2. occasionially, the error 'this user is not a member of the group' pops up.. IMPORTANT: add your ow…
var deleteAllGroupMembers = (function () {
var deleteAllGroupMembers = {};
// the facebook ids of the users that will not be removed.
// IMPORTANT: add your own facebook id here so that the script will not remove yourself!
var excludedFbIds = ['1234','11223344']; // make sure each id is a string!
var usersToDeleteQueue = [];
var scriptEnabled = false;
var processing = false;
deleteAllGroupMembers.start = function() {
@matbrgz
matbrgz / hack.md
Created October 8, 2017 06:50
Advertise your Discord server...everywhere!

Free people for your Discord server!

Analytics (1005 views in an August week)

Server owners hate me! But today you'll see this one crazy and simple trick to increase your Discord server's size IMMEDIATELY! Wanna reach the same size as the Café does? Advertise as much as you can!

Found more? Ask austinhuang#1076 for edits. No server owners that hate me kthx By the way...

  1. IT IS NOT SUGGESTED TO ADVERTISE IN THE COMMENT BOX IN THIS GIST or register a GitHub account just for commenting here. IF YOU HAVE TO DO SO, PLEASE ADVERTISE RESPONSIBLY. For a long time, I have been tolerant enough and allow you to advertise here. Please don't challenge my limits. Don't spam. Don't stick your damn finger at Ctrl+V. 1 comment per server. No bumps. Or I'll let a script do the job for me (That is, delete every single comment, past and future).
  2. To add your listing server into this list your server must meet
@matbrgz
matbrgz / frontendDevlopmentBookmarks.md
Created November 29, 2017 03:21 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@matbrgz
matbrgz / wp.sh
Created March 17, 2018 22:35 — forked from bgallagh3r/wp.sh
Wordpress: Bash Install Script -- Downloads latest WP version, updates wp-config with user supplied DB name, username and password, creates and CHMOD's uploads dir, copies all the files into the root dir you run the script from, then deletes itself!
#!/bin/bash -e
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Database Name: "
read -e dbname
echo "Database User: "
read -e dbuser
echo "Database Password: "
#!/bin/bash
# Author: MatheusRV
# Source:
# License:
# Instructions:
#Bash Config
#vi .bash_aliases.
#export PATH=~/.composer/vendor/bin:$PATH.
Please review the setup details for notifications.
You will want to add things like:
These links:
<li><a href='{!! url('user/notifications') !!}'><span class='fa fa-envelope-o'></span> Notifications</a></li>
<li><a href='{!! url('admin/notifications') !!}'><span class='fa fa-envelope-o'></span> Notifications</a></li>
@matbrgz
matbrgz / UnisexBathroom.py
Created April 27, 2018 02:18
Problema do Banheiro Unissex - 3 Cenários utilizando semáforos
from multiprocessing import Process, Queue
import threading
import random
import time
from time import sleep
import os
# constantes
MALE = 1
FEMALE = 0
composer create-project laravel/laravel sacsis2018
composer require "grafite/builder"
php artisan vendor:publish --provider="Yab\CrudMaker\CrudMakerProvider"
php artisan vendor:publish --provider="Yab\FormMaker\FormMakerProvider"
php artisan grafite:starter
php artisan grafite:socialite
php artisan crudmaker:new Orador --ui=bootstrap --migration --schema="id:increments,name:string,company:string,cpf:integer,rg:integer,cellphone:integer,facebook:string,twitter:string,linkedin:string,avatar:string" --relationships="hasMany|App\Palestra|palestra,hasMany|App\Workshop|workshop"
php artisan crudmaker:new Participante --ui=bootstrap --migration --schema="id:increments,name:string,company:string,institution:string,entryYear:integer,cpf:integer,rg:integer,cellphone:integer,facebook:string,twitter:string,linkedin:string,avatar:string,organizer:string" --relationships="hasMany|App\Palestra|palestra,hasMany|App\Workshop|workshop"
You will need to run:
composer require laravel/socialite
Then follow the directions regarding socialite on: https://laravel.com/docs/
Please review the setup details for socialite including your provider details.
#!/bin/bash -e
sudo apt install ssh
service ssh status
sudo service ssh start
sudo systemctl enable ssh
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic edge