Skip to content

Instantly share code, notes, and snippets.

View r0x0d's full-sized avatar
:shipit:
Working from home

Rodolfo Olivieri r0x0d

:shipit:
Working from home
View GitHub Profile
@r0x0d
r0x0d / file1.js
Last active January 29, 2020 22:33
export const someImportantMethod = () => {}
export const someImportantMethodWithHOF = (shitYouMayUse, fn) => {fn(shitYouMayUse)}
[global]
### Display ###
# Which monitor should the notifications be displayed on.
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
// Esse código pode ser executado através do DevTools do seu navegador, basta entrar no site https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Guide/Introduction
// e apertar as teclas CTRL + SHIFT + I
const superAwesomeTitle = document.getElementById("O_que_você_realmente_já_deveria_saber")
superAwesomeTitle.textContent // "O que você realmente já deveria saber?"
@r0x0d
r0x0d / get-password
Created November 23, 2021 11:15
An small script to get passwords from bitwarden cli. Yes, I'm lazy.
#!/bin/bash
QUERY="$1"
bw list items --search $QUERY | jq -r '.[].login.password' | xargs echo -n | xclip -sel clip
@r0x0d
r0x0d / single-dwm
Created November 23, 2021 11:16
Script that turnoff the other monitors in my setup
#!/bin/sh
xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-3-1 --off --output DP-3-2 --off --output DP-3-3 --off && exit
@r0x0d
r0x0d / multi-dwm
Created November 23, 2021 11:16
Script that turnon the other monitors in my setup
#!/bin/sh
xrandr --output eDP-1 --primary --mode 1920x1080 --pos 3840x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-3-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-3-2 --off --output DP-3-3 --mode 1920x1080 --pos 1920x0 --rotate normal && exit
@r0x0d
r0x0d / gist:3ddf135cada771abfd2af02b1c2c4106
Created November 23, 2021 11:21 — forked from abadger/gist:2e9bdb59ee7d42dfc0d612dcef07d67d
Convert2rhel unit testing discussion 11-10-2021
* Integration tests
* DevDocTest
* Hackathon that made the new CI framework work with testing_farm (and
Artemis) and pakit. These are used in Fedora and RHEL
* https://packit.dev/docs/testing-farm/
* Developers should be able to write these but now that we have a QE team then
they can write them
* We might re-evaluate having the developers write these in the future.
* Runs the whole conversion:
* Set up the system
@r0x0d
r0x0d / vimrc
Last active January 12, 2022 18:43 — forked from gamozolabs/vimrc
" An example for a vimrc file.
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last change: 2019 Jan 26
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
" for Amiga: s:.vimrc
" for MS-DOS and Win32: $VIM\_vimrc
" for OpenVMS: sys$login:.vimrc
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..819a550
--- /dev/null
+++ b/config.h
@@ -0,0 +1,71 @@
+/* See LICENSE file for copyright and license details. */
+
+/* interval between updates (in ms) */
+const unsigned int interval = 1000;
@r0x0d
r0x0d / dapply
Created November 24, 2021 00:05 — forked from cam8001/dapply
Apply a patch directly from a URL without downloading it first.
#!/bin/bash
# Downloads and applies a patch from Drupal.org.
if [ -z "$1" ]
then
echo "You need to supply a URL to a patch file."
exit
fi
URL=$1;