- Environment Setup
- Hello World
- File org
- Go Packages
- Import Statements
- Variable Declarations
- Custom Type Declarations
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
Name: HammerDB | |
Version: 3.3 | |
Release: 1%{?dist} | |
Summary: HammerDB util | |
Group: Database | |
License: GPL | |
URL: https://hammerdb.com | |
Source: https://github.com/TPC-Council/%{name}/releases/download/v%{version}/%{name}-%{version}-Linux.tar.gz | |
Packager: Packager Name | |
#AutoReqProv: no |
Created a config file with defaults and added:
logging:
level: debug
console: true
lang: es
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
;;; melancholy-theme.el --- Emacs theme with a dark background. | |
;; Copyright (C) 2014 , tonyskapunk | |
;; Author: tonyskapunk | |
;; https://github.com/tonyskapunk | |
;; Version: 0.1 | |
;; Package-Requires: ((emacs "24")) | |
;; Created with emacs-theme-generator, https://github.com/mswift42/theme-creator. |
- -(hyphen or minus)
- –(en dash)
- —(em dash)
Setup Dev env:
docker \
run \
--detach \
--name mattermost-preview \
--publish 8065:8065 \
mattermost/mattermost-preview
Reasons why kthresher does not do "anything" by default.
- Main purpose is to run it through a cronjob to remove kernels/headers (cadidates for auto-removal)
- When a configuration is put in place the behavior of kthresher is modified so it achieves what's defined in the config
Examples of the change of behavior running kthresher
- Without any additional config, will print the help to understand what it does
- With a config in place will perform that action, e.g. purge kernels
I can easily set a default action, for instance print the available kernels, if any, like what -s
does.
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
import re | |
import apt | |
from json import dumps | |
from distutils.version import LooseVersion | |
def cmp_to_key(mycmp): | |
'Convert a cmp= function into a key= function' | |
class K: | |
def __init__(self, obj, *args): |
Create env with docker:
docker run --rm --name buster --tty --detach debian:buster
docker exec buster bash -c 'apt-get update && apt-get install bash -y'
docker exec -ti buster /bin/bash
Create a script with the trap function in it
NewerOlder