Skip to content

Instantly share code, notes, and snippets.

@kepi
kepi / terraform.debug
Created January 13, 2024 11:00
debug from terraform apply when creating virtual network resource
2024-01-13T11:57:06.486+0100 [INFO] Terraform version: 1.6.6
2024-01-13T11:57:06.486+0100 [DEBUG] using github.com/hashicorp/go-tfe v1.36.0
2024-01-13T11:57:06.486+0100 [DEBUG] using github.com/hashicorp/hcl/v2 v2.19.1
2024-01-13T11:57:06.486+0100 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2024-01-13T11:57:06.486+0100 [DEBUG] using github.com/zclconf/go-cty v1.14.1
2024-01-13T11:57:06.486+0100 [INFO] Go runtime version: go1.21.5
2024-01-13T11:57:06.486+0100 [INFO] CLI args: []string{"terraform", "apply"}
2024-01-13T11:57:06.487+0100 [DEBUG] Attempting to open CLI config file: /home/ansible/.terraformrc
2024-01-13T11:57:06.487+0100 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2024-01-13T11:57:06.487+0100 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
@kepi
kepi / rofihelp.txt
Created September 18, 2021 17:37
rofi --help
rofi usage:
rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
${DISPLAY}
-h,-help This help message.
@kepi
kepi / org-archive-subtree-hierarchical.el
Last active March 10, 2024 13:24
Hierarchical archiving for Org-mode
;; org-archive-subtree-hierarchical.el
;;
;; version 0.2
;; modified from https://lists.gnu.org/archive/html/emacs-orgmode/2014-08/msg00109.html
;; modified from https://stackoverflow.com/a/35475878/259187
;; In orgmode
;; * A
;; ** AA
;; *** AAA
@kepi
kepi / mySurfingKeys.js
Created May 21, 2016 16:11
my Surfingkeys Settings
// an example to create a new mapping `ctrl-y`
mapkey('<Ctrl-y>', 'Show me the money', function() {
});
// an example to replace `u` with `?`, click `Default mappings` to see how `u` works.
map('?', 'u');
// an example to remove mapkey `Ctrl-i`
unmap('<Ctrl-i>');
#!/bin/bash
# (/usr)/lib/systemd/system-sleep/45fix-usb-wakup
# Disable wakup from USB devices
#
# This is just modification of pm-utils script for systemd sleep hook
# from https://gist.github.com/rutsky/1ed8e9779f0b2941c5a6
[[ "$1" = "pre" ]] || exit 0
@kepi
kepi / ukol.php
Created December 18, 2015 16:54
Programáckej úkol
<?php
$pole_jak_svin = Array(76,101,105,97,32,79,114,103,97,110,97);
function c($x)
{
$z = Array();
foreach($x as $y) {
$z[] = $y/3;
}
return $z;
@kepi
kepi / cust_cz_us
Last active February 2, 2021 14:06
Custom cz_us keyboard - Work in progress. >>>> Klasická us klávesnice, ale namísto čísel jsou české znaky. Se shiftem se píšou anglické speciální znaky. Čísla lze psát buď přes altgr nebo na numerické klávesnici.
default
xkb_symbols "basic" {
include "us(basic)"
name[Group1]="Czech (custom US)";
key <TLDE> { [ equal, plus, asciitilde, grave ] };
key <AE01> { [ uring, exclam, 1, dead_tilde ] };
key <AE02> { [ ecaron, at, 2, dead_caron ] };
key <AE03> { [ scaron, numbersign, 3, dead_circumflex ] };