This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This file was auto-generated by openapi-typescript. | |
* Do not make direct changes to the file. | |
*/ | |
export type paths = Record<string, never>; | |
export type webhooks = Record<string, never>; | |
export interface components { | |
schemas: { | |
// KEEP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update_go() { | |
local LATEST | |
local GOBIN | |
local PATHRC | |
LATEST="$(curl -sL "https://golang.org/dl/?mode=json" | jq -r .[0].version)" | |
GOBIN='${HOME}/go/bin' | |
PATHRC="${HOME}/.bashrc.d/pathrc" | |
curl -sLo go.tar.gz "https://dl.google.com/go/$LATEST.linux-amd64.tar.gz" | |
rm -rf "${HOME}/go" | |
tar -C "${HOME}" -xzf go.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"os" | |
"path/filepath" | |
"regexp" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
CURRENT_LEVEL=$(pkexec --user root mate-power-backlight-helper --get-brightness) | |
if [ $1 == "get" ]; then | |
echo -e "\nCurrent Level: $CURRENT_LEVEL\n" | |
exit 0 | |
elif [ -z $1 ] || [ -z $2 ]; then | |
echo -e "\nUSAGE: change-backlight <inc|dec|set|get> [<val>]\n" | |
exit 0 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dnf-history-search () { | |
if [ -z $1 ]; then | |
echo -e "\nSpecify search term\n" | |
return 0 | |
fi | |
HISTORY=$(sudo dnf history | awk 'NR<=2 { next } { print $1 }') | |
for item in $HISTORY | |
do | |
ITEM=$(sudo dnf history info $item | grep $1) | |
if ! [ -z "$ITEM" ]; then |