Skip to content

Instantly share code, notes, and snippets.

View thekad's full-sized avatar
🏠
Working from home

Jorge Gallegos thekad

🏠
Working from home
View GitHub Profile
@thekad
thekad / foo.bash
Created September 22, 2023 21:56
#!/bin/bash
#
# Copyright (C) 2021-2023 Red Hat, Inc.
#
# Author: Frederic Lepied <flepied@redhat.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
[ kad@kenpachi tmp ] ~> touch me
[ kad@kenpachi tmp ] ~> stat --format='AT:%x
> MT:%y
> CT:%z' me
AT:2020-03-26 08:55:42.370841049 -0700
MT:2020-03-26 08:55:42.370841049 -0700
CT:2020-03-26 08:55:42.370841049 -0700
[ kad@kenpachi tmp ] ~> mkdir new
[ kad@kenpachi tmp ] ~> mv me new/
[ kad@kenpachi tmp ] ~> stat --format='AT:%x
apiVersion: authorization.openshift.io/v1
groupNames:
- system:authenticated:oauth
kind: ClusterRoleBinding
metadata:
annotations:
openshift.io/reconcile-protect: "false"
creationTimestamp: 2019-12-18T22:34:24Z
labels:
azure.openshift.io/owned-by-sync-pod: "true"
#!/bin/bash
function run-mutt() {
local account=$1
local muttFile="$(realpath ${HOME}/.mutt/account-${account}.rc)"
echo "Launching mutt @${account}"
tilix \
--title="$(which mutt) @${account}" \
--action="app-new-session" \
#!/usr/bin/perl
use PerlIO::gzip;
$filename = 'YOUR_FILENAME.gz';
$limit = 1000000;
$fileno = 1;
$line = 0;
while (<>) {
blinker==1.4
click==5.1
Jinja2==2.8
Markdown==2.6.3
MarkupSafe==0.23
pilkit==1.1.13
Pillow==3.0.0
sigal==1.0.0
### Keybase proof
I hereby claim:
* I am thekad on github.
* I am kad (https://keybase.io/kad) on keybase.
* I have a public key whose fingerprint is 48D6 ACF1 5803 8D24 D5FE 3B61 3225 AFFE 165F 30F3
To claim this, I am signing this object:
In [11]: x
Out[11]: <pygments.lexers.RstLexer>
In [12]: x.name
Out[12]: 'reStructuredText'
In [13]: lexers.get_lexer_by_name(x.name)
---------------------------------------------------------------------------
ClassNotFound Traceback (most recent call last)
<ipython-input-13-1e0731e95ff2> in <module>()
@thekad
thekad / -
Created November 4, 2013 22:22
pulp-admin content list --repoid mapr-ecosystem-all-x86_64
mapr-hbase-internal-0.94.3.17136-1.noarch.rpm,be3eef798483d588124cb3823a8e6eff796748f0c381cbe8babc8148806f6bcd
mapr-hbase-master-0.94.3.17136-1.noarch.rpm,aae9f00a4563fa6f3f3a3c72f6e8dcea7761c920b9918fee8f60c25dafebc798
mapr-hbase-regionserver-0.94.3.17136-1.noarch.rpm,3caadc311461e2f324813b6db48bf865bd0522e80464aabd2446f6fa400d679f
mapr-patch-2.1.1.17042EMC-sp16.x86_64.rpm,14d31eea481a6703178f7d07f14298149f95a5318b97197eacfc19603b7be67f
mapr-patch-2.1.3.20987.GA1-4.x86_64.rpm,77c52333c67891ec91ae6f11ed80ac40c12f2a87a28be48f89dd7f173ef733fd
mapr-hbase-0.94.12.22578.GA-1.noarch.rpm,6bb0aaa4faa879901c4978d7dffa0ca572cdb53aa6e886b44556908812ce6780
mapr-hbase-internal-0.94.12.22578.GA-1.noarch.rpm,3daa3a49879a4a167b6a4139fe0a360d6757c7c4cf88f13aeacb218db12837ef
mapr-hbase-master-0.94.12.22578.GA-1.noarch.rpm,f77016ed513d2edaaf7532931c889cf52790f2be374ed5d2caa2517819710033
mapr-hbase-regionserver-0.94.12.22578.GA-1.noarch.rpm,9a368707dddaedb69b068fb8d4527d
1: 0
2: 14178431955039102644307275309657008810
3: 28356863910078205288614550619314017620
4: 42535295865117307932921825928971026430
5: 56713727820156410577229101238628035240
6: 70892159775195513221536376548285044050
7: 85070591730234615865843651857942052860
8: 99249023685273718510150927167599061670
9: 113427455640312821154458202477256070480
10: 127605887595351923798765477786913079290