Skip to content

Instantly share code, notes, and snippets.

View VIRUXE's full-sized avatar

Flávio Pereira VIRUXE

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 July 27, 2020 08:25
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)
Last active March 10, 2018 13:24 — forked from nirgeier/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() {
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
@tabarra
tabarra / admins.json
Last active September 27, 2024 04:47
Temporary admins file for txAdmin, please add it to txData/admins.json. The password is masterpassword123.
[
{
"name": "txmaster",
"master": true,
"password_temporary": true,
"password_hash": "$2a$12$JterWfFQx1abyi.OBKTIW.mOiHl7wrlyaTnz21SmygI20qO2xIdu2",
"providers": {},
"permissions": []
}
]
@xXTurnerLP
xXTurnerLP / tp.lua
Last active February 25, 2024 19:42
FiveM Precise waypoint teleport script. Always teleports at the top most level, so if you mark a building it will teleport to the top of that building (No permissions, client side)
RegisterCommand("tp", function(source, args, rawCommand)
local waypointBlip = GetFirstBlipInfoId(GetWaypointBlipEnumId())
local blipPos = GetBlipInfoIdCoord(waypointBlip) -- GetGpsWaypointRouteEnd(false, 0, 0)
local z = GetHeightmapTopZForPosition(blipPos.x, blipPos.y)
local _, gz = GetGroundZFor_3dCoord(blipPos.x, blipPos.y, z, true)
SetEntityCoords(PlayerPedId(), blipPos.x, blipPos.y, z, true, false, false, false)
FreezeEntityPosition(PlayerPedId(), true)
@userMacieG
userMacieG / engine.lua
Last active March 22, 2024 12:19
Turn engine on and off via key (ox_lib)
lib.onCache('ped', function(value)
SetPedConfigFlag(value, 241, true) -- PED_FLAG_DISABLE_STOPPING_VEHICLE_ENGINE
SetPedConfigFlag(value, 429, true) -- PED_FLAG_DISABLE_STARTING_VEHICLE_ENGINE
end)
lib.addKeybind({
name = 'engine',
description = 'Engine',
defaultKey = 'Y',
onPressed = function(self)