Skip to content

Instantly share code, notes, and snippets.

@aucampia
aucampia / README.md
Created March 6, 2020 13:33
podman-rootfs

...

xhost +local:root

sudo \rm -vrf ~/.local/var/rpods/centos7
mkdir -vp ~/.local/var/rpods/centos7

podman container rm -vf rpod-tmp
podman container create --name rpod-tmp docker.io/centos:7
@aucampia
aucampia / README.md
Last active February 7, 2020 14:04
csvkit venv
## Remove existing venv
\rm -rv ~/.local/venvs/csvkit 

## Recreate venv
mkdir -p ~/.local/venvs/csvkit
python3 -m virtualenv --no-site-packages ~/.local/venvs/csvkit
 
## Install csvkit in the venv
~/.local/venvs/csvkit/bin/pip3 install csvkit
@aucampia
aucampia / content.txt
Created December 19, 2019 18:56
Microsoft’s Ready do Contribute to OpenJDK
Subject: Microsoft’s Ready do Contribute to OpenJDK
Hi OpenJDK Community,
In the past week Microsoft formally signed the Oracle Contributor Agreement, in which Oracle Inc. promptly acknowledged and welcomed us to the project. On behalf of the Microsoft Java Engineering Team, I’d like to say that we are thrilled to officially join the OpenJDK project and be ready to work with you.
As many of you may know, Microsoft and its subsidiaries are heavily dependent on Java in many aspects, and also offers Java runtimes in its Microsoft Azure cloud to its customers. Microsoft recognizes the immense value that Oracle’s successful and effective stewardship of the OpenJDK project has bought Java and the wider software ecosystem and we look forward to playing our part in contributing back!
The team will initially be working on smaller bug fixes and backports so that we can learn how to be good citizens within OpenJDK. For example, we already understand that discussing changes first before posting patches is preferred a
@aucampia
aucampia / README.md
Last active November 28, 2019 14:44
`buildah bud` with `Z` flag not working

buildah bud with Z flag not working

commands:

{
mkdir -vp /var/tmp/zae9ujei

cat << EOF > /var/tmp/zae9ujei/Dockerfile
FROM docker.io/alpine:latest
@aucampia
aucampia / keybase.md
Created May 30, 2019 12:30
keybase.md

Keybase proof

I hereby claim:

  • I am aucampia on github.
  • I am iwana (https://keybase.io/iwana) on keybase.
  • I have a public key ASALiydQ_q0UAY06xvzBPwZ0ijLQW2nQrfyUYMCTn4HpsQo

To claim this, I am signing this object:

@aucampia
aucampia / README.asciidoc
Created October 21, 2016 16:10
ansible-include_role-issue-201610-000

…​

$ ansible-playbook main.yml
 [WARNING]: Host file not found: /etc/ansible/hosts

 [WARNING]: provided hosts list is empty, only localhost is available
2015-09-21T15:37:16 ./arcsnoop.sh:17620 declare -- script_dirname="."
2015-09-21T15:37:16 ./arcsnoop.sh:17620 declare -- script_basename="arcsnoop.sh"
2015-09-21T15:37:16 ./arcsnoop.sh:17620 declare -a argv='([0]="-n" [1]="mongod" [2]="-v" [3]="-v" [4]="-v" [5]="-f" [6]="data" [7]="-l" [8]="miss" [9]="-u" [10]="-1" [11]="-t" [12]="-s")'
2015-09-21T15:37:16 ./arcsnoop.sh:17620 declare -- OPTERR=""
2015-09-21T15:37:16 ./arcsnoop.sh:17620 declare -- option="?"
2015-09-21T15:37:16 ./arcsnoop.sh:17620 declare -- OPTIND="14"
2015-09-21T15:37:16 ./arcsnoop.sh:17620 declare -- pid=""
2015-09-21T15:37:16 ./arcsnoop.sh:17620 declare -- execname="mongod"
2015-09-21T15:37:16 ./arcsnoop.sh:17620 declare -- ncores="17"
2015-09-21T15:37:16 ./arcsnoop.sh:17620 declare -- loc="miss"
@aucampia
aucampia / errors.txt
Last active September 19, 2015 22:02
passenger issues
==> /var/log/httpd/error_log <==
[Sat Sep 19 23:56:01.767712 2015] [ssl:info] [pid 5317] [client 105.237.188.85:48965] AH01964: Connection to child 3 established (server dev.null:443)
[Sat Sep 19 23:56:01.970573 2015] [core:info] [pid 5317] [client 105.237.188.85:48965] AH00129: Attempt to serve directory: /var/www/sites/toqu.ml/gollum/
==> /var/log/httpd/access_log <==
105.237.188.85 - - [19/Sep/2015:23:56:01 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0"
@aucampia
aucampia / content
Created March 9, 2015 12:54
Problems with transitive deps
iwana@iwana-nb.concurrent.co.za:~/projects/gitlab.com/cs-csa/mobicents-sctp-osgi
$ bsdtar -tvf interface/target/sctp-interface-1.6.0_0-SNAPSHOT.jar
drwxrwxrwx 0 0 0 0 Mar 9 14:48 META-INF/
-rw-rw-rw- 0 0 0 520 Mar 9 14:48 META-INF/MANIFEST.MF
drwxrwxrwx 0 0 0 0 Mar 9 14:48 META-INF/maven/
drwxrwxrwx 0 0 0 0 Mar 9 14:48 META-INF/maven/za.co.concurrent.osgi-bundles.mobicents-sctp/
drwxrwxrwx 0 0 0 0 Mar 9 14:48 META-INF/maven/za.co.concurrent.osgi-bundles.mobicents-sctp/sctp-interface/
-rw-rw-rw- 0 0 0 179 Mar 9 14:48 META-INF/maven/za.co.concurrent.osgi-bundles.mobicents-sctp/sctp-interface/pom.properties
-rw-rw-rw- 0 0 0 3414 Mar 9 14:48 META-INF/maven/za.co.concurrent.osgi-bundles.mobicents-sctp/sctp-interface/pom.xml
drwxrwxrwx 0 0 0 0 Mar 9 14:48 org/
@aucampia
aucampia / iperf.cxx
Created February 23, 2015 09:31
Illustration of linux perf for profiling
#include <string>
#include <iostream>
#include <chrono>
#include <thread>
size_t x = 0;
void do_a()
{
for ( size_t i = 0; i < 10000000; i++ )