Skip to content

Instantly share code, notes, and snippets.

View bekcpear's full-sized avatar
:octocat:

Ryan Tsien bekcpear

:octocat:
View GitHub Profile
#!/usr/bin/env bash
#
set -e
PROFILE_PATH="$1"
: "${REPO:=${2:-/var/db/repos/gentoo}}"
if [[ ! $PROFILE_PATH =~ ^/ ]]; then
PROFILE_PATH="${REPO%%/}/profiles/${PROFILE_PATH}"
fi
" Vim color file
"
" Author: Tomas Restrepo <tomas@winterdom.com>
" https://github.com/tomasr/molokai
"
" Modified by: Ryan Tsien <i@bitbili.net>
"
" Note: Based on the Monokai theme for TextMate
" by Wimer Hazenberg and its darker variant
" by Hamish Stuart Macpherson
# https://github.com/drduh/config/blob/master/gpg.conf
# https://www.gnupg.org/documentation/manuals/gnupg/GPG-Configuration-Options.html
# https://www.gnupg.org/documentation/manuals/gnupg/GPG-Esoteric-Options.html
# Use AES256, 192, or 128 as cipher
personal-cipher-preferences AES256 AES192 AES
# Use SHA512, 384, or 256 as digest
personal-digest-preferences SHA512 SHA384 SHA256
# Use ZLIB, BZIP2, ZIP, or no compression
personal-compress-preferences ZLIB BZIP2 ZIP Uncompressed
# Default preferences for new keys
declare -a _KNOWN_SUFFIXES=([0]=".bmp" [1]=".eps" [2]=".gif" [3]=".ico" [4]=".jpeg" [5]=".jpg" [6]=".pdf" [7]=".png" [8]=".tif" [9]=".tiff" [10]=".webp" [11]=".abap" [12]=".asc" [13]=".ash" [14]=".ampl" [15]=".mod" [16]=".g4" [17]=".apib" [18]=".apl" [19]=".dyalog" [20]=".asp" [21]=".asax" [22]=".ascx" [23]=".ashx" [24]=".asmx" [25]=".aspx" [26]=".axd" [27]=".dats" [28]=".hats" [29]=".sats" [30]=".as" [31]=".adb" [32]=".ada" [33]=".ads" [34]=".agda" [35]=".als" [36]=".apacheconf" [37]=".vhost" [38]=".cls" [39]=".applescript" [40]=".scpt" [41]=".arc" [42]=".ino" [43]=".asciidoc" [44]=".adoc" [45]=".asc" [46]=".aj" [47]=".asm" [48]=".a51" [49]=".inc" [50]=".nasm" [51]=".aug" [52]=".ahk" [53]=".ahkl" [54]=".au3" [55]=".awk" [56]=".auk" [57]=".gawk" [58]=".mawk" [59]=".nawk" [60]=".bat" [61]=".cmd" [62]=".befunge" [63]=".bison" [64]=".bb" [65]=".bb" [66]=".decls" [67]=".bmx" [68]=".bsv" [69]=".boo" [70]=".b" [71]=".bf" [72]=".brs" [73]=".bro" [74]=".c" [75]=".cats" [76]=".h" [77]=".idc" [78]=".w" [79]=".cs" [80]=
  1. [Compilation] Continue to push the minimum framework content to the official repository to meet the goal of "successful compilation on RISC-V" (including cross-compilation).
  • minimal support for generating stubs related, patch_branches and l
#!/bin/bash
#
# @VARIABLE: LOGLEVEL
# #DEFAULT: 2
# @INTERNAL
# @DESCRIPTION:
# Used to control output level of messages. Should only be setted
# by shell itself.
# 0 -> DEBUG; 1 -> INFO; 2 -> NORMAL; 3 -> WARNNING; 4 -> ERROR
@bekcpear
bekcpear / pb.sh
Created January 28, 2022 20:44
A script to upload contents to pb.
#!/bin/bash
#
# Author: cwittlut <i@bitbili.net>
#
# TODO port to wayland clipboard
set -e
PB_URL="https://fars.ee/"
#!/usr/bin/env bash
#
# @cwittlut old username: @bekcpear
#
set -e
LOCK_FILE="${1:-package-lock.json}"
TMP_LOCK="/tmp/package-lock.json-$(uuidgen)"
DISTDIR="/var/cache/distfiles"
# @bekcpear
name: repoman
on:
pull_request_target:
branches:
- master
paths-ignore:
- '.github/**'
- 'metadata/**'
#!/usr/bin/env bash
# author: @Bekcpear
#
set -e
LISTFILE="${HOME}/.gnupg/gentooDevKeysLists/list"
PROXYC="proxychains -q "
if [[ "${1}" != "updateList" ]]; then
source "${LISTFILE}"