Skip to content

Instantly share code, notes, and snippets.

@PedroHLC
PedroHLC / slack-fullscreen.user.css
Last active December 29, 2020 22:16
Slack's second column (contact details, threads, etc) in fullscreen
/* ==UserStyle==
@name Slack fullscreen details
@namespace https://gist.github.com/PedroHLC/78f05e1ba215d00c113c6d984d3f8fb2
@homepageURL https://gist.github.com/PedroHLC/78f05e1ba215d00c113c6d984d3f8fb2
@updateURL https://gist.githubusercontent.com/PedroHLC/78f05e1ba215d00c113c6d984d3f8fb2/raw/slack-fullscreen.user.css
@version 0.9.0
@license Other
@description Slack's second column (contact details, threads, etc) in fullscreen
@author PedroHLC (https://pedrohlc.com)
==/UserStyle== */
@PedroHLC
PedroHLC / compact-jira.user.css
Last active April 7, 2021 12:28
Compact JIRA with green stories (gold for the empties)
/* ==UserStyle==
@name Compact JIRA
@namespace https://gist.github.com/PedroHLC/2c124b8ae453c6b926dfe565faa14ccd
@homepageURL https://gist.github.com/PedroHLC/2c124b8ae453c6b926dfe565faa14ccd
@updateURL https://gist.githubusercontent.com/PedroHLC/2c124b8ae453c6b926dfe565faa14ccd/raw/compact-jira.user.css
@version 0.9.6
@license Other
@description Slim, with green stories and gold for empty stories
@author PedroHLC (https://pedrohlc.com)
==/UserStyle== */
@PedroHLC
PedroHLC / github.deploybtn.js
Last active June 17, 2020 15:42
Deploy to GitHub Action throught the enviroments page in your browser
// ==UserScript==
// @name Deploy Button for GitHub Actions
// @namespace https://pedrohlc.com/
// @version 0.0.2
// @downloadURL https://gist.github.com/PedroHLC/b983396b7f6e2b2c4300af6695b02f19/raw/github.deploybtn.js
// @updateURL https://gist.github.com/PedroHLC/b983396b7f6e2b2c4300af6695b02f19/raw/github.deploybtn.meta.js
// @description Add a "Deploy Master" button on GitHub enviroments page
// @author PedroHLC
// @match github.com/*/deployments
// @grant GM_xmlhttpRequest
@PedroHLC
PedroHLC / slack.highlight.js
Last active December 29, 2020 20:05
[UserScript] Hightlights for Slack
// ==UserScript==
// @name Hightlights for Slack
// @namespace https://pedrohlc.com/
// @version 0.1.1
// @downloadURL https://gist.github.com/PedroHLC/0dc566f2cc4a9783eb0e85d37b49a7e1/raw/slack.highlight.js
// @updateURL https://gist.github.com/PedroHLC/0dc566f2cc4a9783eb0e85d37b49a7e1/raw/slack.highlight.meta.js
// @description Slack code block syntax highlighting with highlight.js!
// @author PedroHLC
// @match app.slack.com/*
// @resource css https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.1/styles/default.min.css
@PedroHLC
PedroHLC / install_littlelol.sh
Last active November 2, 2020 13:09
I don't play League of Legends, but I was challenged, and here's what I did to get it running flawless!
sudo pacman -Sy
sudo powerpill -Su dxvk-mingw-git wine-tkg-git-leagueoflegends winetricks-git
export WINEPREFIX="$HOME/.lol"
export WINE=/usr/bin/wine
export WINEARCH=win32
winetricks d3dcompiler_43 d3dx9
setup_dxvk install --symlink
const linux = @cImport({
@cInclude("linux/kvm.h");
});
const sys = @cImport({
@cInclude("sys/ioctl.h");
@cInclude("sys/stat.h");
@cInclude("fcntl.h");
});
const std = @import("std");
const assert = std.debug.assert;
/* ONE LINE TOOLBAR */
#navigator-toolbox {
display: flex;
flex-direction: row-reverse;
justify-content: flex-end;
}
#titlebar {
min-width: 40px !important;
flex: 0;
@PedroHLC
PedroHLC / shingekinowall.sh
Last active March 31, 2020 20:11
Automatically downloads wallpapers from https://t.me/shingekinowall
#!/usr/bin/env sh
set -o errexit
_local="$HOME/.local/bin"
[ -n `echo $PATH | grep "${_local}"` ] || \
export PATH="$PATH:${_local}"
which telegram-download 1>2 2>/dev/null || \
pip install --user telegram-upload
@PedroHLC
PedroHLC / ava-redirect-pdf.js
Created October 31, 2019 15:53
In AVA, redirects to real PDF instread of embedding it.
// ==UserScript==
// @name AVA redirect to PDF
// @namespace http://pedrohlc.com/
// @version 0.1
// @description AVA inpdf sucks!
// @author PedroHLC
// @match https://ava.ead.ufscar.br/mod/resource/view.php?id=*
// @grant none
// ==/UserScript==
@PedroHLC
PedroHLC / run_guest.sh
Last active August 28, 2019 20:18
Script used in UFSCar for running guest computers using vfio passthrough
#!/usr/bin/env sh
# ======================================================================================
# Maintaned by Pedro H Lara Campos <[email protected]>
# Contributors:
# Marcos Laerte
# Paulo Matias
# Version: 2019.08.28-6
# --------------------------------------------------------------------------------------
: ${PSEUDO_RUN:=0}