Skip to content

Instantly share code, notes, and snippets.

View VIRUXE's full-sized avatar

Flávio Pereira VIRUXE

  • United Kingdom
View GitHub Profile
@Misiur
Misiur / PawnALS
Last active January 4, 2016 17:09
Sublime snippet for PAWN ALS functions
<snippet>
<content><![CDATA[
stock ${1:Prefix}_${2:Function}(${3:Tag:}${4:arg_1}${5:[optional]}${6:, }${7:Tag:}${8:arg_2}${9:[optional]}${10:, }${11:Tag:}${12:arg_3}${13:[optional]})
{
${2}(${4}${6}${8}${10}${12});
return 1;
}
#if defined _ALS_${2}
#undef ${2}
#else
@nirgeier
nirgeier / Delete all facebook members (all the one visible on a given page)
Last active January 3, 2025 13:27
Delete all facebook group members on a given page. Usage: Copy this script, open developers console (F12) in chrome (win) and paste this script. The script will delete all the members that you can see in the given page. Once the script is done you should see a blank members page,
/**
* This script will delete all group members which are displayed in a given page.
*
* @author: Nir Geier
*
* Usage:
* Load as many users as you need, then open console and paste this script in teh console.
* Once the script finished executing you will be see blank members page, reload the next
* page and start the process again.
*
@mayukojpn
mayukojpn / facebook-mass-delete-group-members.js
Last active November 8, 2018 05:11 — forked from michaelv/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() {
@rafa-munoz
rafa-munoz / Delete all facebook members (all the one visible on a given page) Delete all facebook group members on a given page. Usage: Copy this script, open developers console (F12) in chrome (win) and paste this script. The window will reload when it's finished
/**
* This script will remove all group members displayed.
*
* @author: Nir Geier
*
* Usage:
* Load as many users as you need, then open console and paste this script in the
* console.
*
* Once the script finished executing, the page will autoreload.
@robrotheram
robrotheram / migrate.php
Last active January 11, 2017 19:19
migrate for flaurm version 0.2 and 0.3
<?php
// Configs for phpbb database
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "phpbbDatabase";
$fileName = "flaurm.sql";
$phpprefix = "phpbb_";
//Sets the inital id for the new users posts and discussions set if you know you have more then 1000 users change.
$id = 1000;
@StubbornlyDesigned
StubbornlyDesigned / facebook-mass-delete-group-members.js
Last active February 22, 2016 04:04 — forked from mayukojpn/facebook-mass-delete-group-members.js
This script goes through and removes all members from a Facebook group. Replace the ID in the second line with your own Facebook ID!!! Then navigate to the members tab of your group and copy/paste the entire code into the javascript console. Script tested in Chrome. Removes 10 members a minute!
var deleteAllGroupMembers = (function () {
var excludedFbIds = ['100005315525880']; /*########## Replace number between single quotes with your own Facebook ID. DO NOT REMOVE THE SINGLE QUOTES! ##########*/
var deleteAllGroupMembers = {};
var usersToDeleteQueue = [];
var scriptEnabled = false;
var processing = false;
var memberCount = document.getElementsByClassName('_5bv4')[0].lastChild;
deleteAllGroupMembers.start = function() {
This file has been truncated, but you can view the full file.
/*
Just to begin with, i've never taken any credit of parts that were created by Astro (Denver) aka
Denver the creator of PEN1.
Valhalla Gaming Comunity has indeed paid me for this very script you are about to read, where they
only paid for the systems and parts that were created by me.
They received this script a few months ago, and their server owner is trying to rip me off.
Due to this fact + i'm not scripting anymore, i release this script so that everyone can use it.
Credits to Astro.
Credits to Tratulla for his 2 .ini Functions.
@SunShineSilver-mdA
SunShineSilver-mdA / Table_Ped_Models_and_Types.lua
Created October 30, 2019 19:59
GTA5(Lua) Tables for Ped Models & Ped Model Types
tbl_PedModelTypes={--[[line count: 24]]
{"a_c","Animal Character"},
{"a_f_m","Actor/Ambient Female Middleage"},
{"a_f_o","Actor/Ambient Female Old"},
{"a_f_y","Actor/Ambient Female Young"},
{"a_m_m","Actor/Ambient Male Middleage"},
{"a_m_o","Actor/Ambient Male Old"},
{"a_m_y","Actor/Ambient Male Young"},
{"g_f_y","Gang Female Young"},
{"g_m_m","Gang Male Middleage"},
@nathanctech
nathanctech / proxy-nginx-fxserver.md
Created May 1, 2020 14:23
FXServer Reverse Proxy

Proxying FiveM Connections using Nginx

As of server version 2377, support was added to FiveM to run a custom streaming proxy similar to cfx.re, but proxying the data connection (UDP) as well. This can be accomplished very easily with nginx acting as a proxy, and you can combine the caching proxy with it.

Requirements

  • Nginx 1.17+ (1.16 absolute minimum, guide tested on 1.17)
  • Server with reasonable network bandwidth (500mbps uplink strongly suggested)
  • FXserver version 2377 or later
  • SSL certificate for the domain you're using (highly recommended)
local scopes = {}
AddEventHandler("playerEnteredScope", function(data)
local playerEntering, player = data["player"], data["for"]
if not scopes[player] then
scopes[player] = {}
end
scopes[player][playerEntering] = true