Skip to content

Instantly share code, notes, and snippets.

View bsides's full-sized avatar
👋

Rafael Pereira bsides

👋
  • Dreamdev
  • São Paulo, Brazil
  • X @bsides
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bsides on github.
  • I am bsides (https://keybase.io/bsides) on keybase.
  • I have a public key ASCe6m8-50baBjJz1AAtlW6vh_25WYNYVrp4x9_6Uq8mWgo

To claim this, I am signing this object:

@bsides
bsides / GuildWars2-BUTTONSendToWiki.ahk
Created November 9, 2023 20:03
Guild Wars 2 - send item in current mouse cursor to wiki page
#IfWinActive ; Only applies to active window
Home::ExitApp ; Pressing HOME closes the script
; ^RButton:: ; Control + Right Mouse Click
; +RButton:: ; Shit + Right Mouse Click
; {
; SetKeyDelay 75, 25
; SendInput {Enter}
; Sleep 100
@bsides
bsides / gist:8d47087d392238cadd5a03599319b761
Created July 3, 2020 11:46 — forked from johanmeiring/gist:3002458
"git lg" alias for pretty git log
# From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
@bsides
bsides / Autohotkey New Windows Terminal.ahk
Created June 17, 2020 19:33 — forked from sharunkumar/Autohotkey New Windows Terminal.ahk
Autohotkey script for hooking win+` to open and toggle to the new windows terminal. Terminal will be spawned if it isn't opened already.
#SingleInstance, force
global PreviousActiveWindow
; Requires windows terminal preview: https://www.microsoft.com/en-us/p/windows-terminal-preview/9n0dx20hk701
#`::
DetectHiddenWindows, On
if (WinExist("ahk_class CASCADIA_HOSTING_WINDOW_CLASS")) {
if(WinActive("ahk_class CASCADIA_HOSTING_WINDOW_CLASS")) {
@bsides
bsides / terminal-keybind.ahk
Created June 17, 2020 19:33 — forked from atruskie/terminal-keybind.ahk
AutoHotkey script to bind Win+~ keyboard shortcut to Windows Terminal
#NoEnv
#SingleInstance force
SendMode Input
DetectHiddenWindows, on
SetWinDelay, 0
#`::
terminal := WinExist("ahk_exe WindowsTerminal.exe")
if (terminal)
{

Patch notes para maio

Nova Unique Raid

A nova Unique Raid, White Witch Forest, será adicionada. Essa raid ganhará uma versão lendária no futuro também.

Com a preview dessa Raid, foram reveladas 3 armas novas, elas são:

Glacier Shield

@bsides
bsides / machine.js
Created January 8, 2020 11:55
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@bsides
bsides / machine.js
Created December 20, 2019 13:54
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@bsides
bsides / background.html
Created June 18, 2019 23:31 — forked from srsudar/background.html
Pasting from the system clipboard using a Chrome extension.
<!DOCTYPE html>
<html>
<head>
<script src="background.js"></script>
</head>
<body>
<textarea id="sandbox"></textarea>
</body>
@bsides
bsides / flattenArray.js
Last active April 19, 2019 10:54
Flattening array of arrays in any depth
let givenMessyArray = [[1,2,[3]],4]
console.log(givenMessyArray)
//-> [ [ 1, 2, [ 3 ] ], 4 ]
// In ES6 it's as easy as
console.log(
givenMessyArray.flat(2)
)
//-> [ 1, 2, 3, 4 ]