Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am deogracia on github.
* I am deogracia (https://keybase.io/deogracia) on keybase.
* I have a public key whose fingerprint is 6B6A 5376 18E2 5069 1706 25E9 885C 82AF F1CC 6F78
To claim this, I am signing this object:
@deogracia
deogracia / gist:dfe70743121c6c8b5ea7
Last active August 29, 2015 14:08
rvm issue 3105
vagrant@debian7-64bits:~$ LANG=C curl -sSLO https://rvm.io/mpapis.asc
vagrant@debian7-64bits:~$ LANG=C gpg2 --import mpapis.asc
gpg: key D39DC0E3: "Michal Papis (RVM signing) <[email protected]>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
vagrant@debian7-64bits:~$ LANG=C gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 BF04FF17
gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
gpg: requesting key BF04FF17 from hkp server keys.gnupg.net
gpgkeys: HTTP fetch error 6: Couldn't resolve host 'keys.gnupg.net'
@deogracia
deogracia / gist:5cc1f8c8ebfab488df70
Created April 24, 2015 13:16
Sample and incomplete init.d script using rvm wrapper
#! /bin/sh
### BEGIN INIT INFO
# Provides: redmine-unicorn
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Init Redmine with Unicorn
# Description: Start Redmine Unicorn.
# This script is not part of a package.
@deogracia
deogracia / gist:3a2cc046b550fbadcc3e
Created March 10, 2016 12:46
[CHAKRAOS] gcc-gcj : build failed
/usr/bin/grep -E -v '^[ ]*#(#| |$)' libstdc++-symbols.ver.tmp | \
/tmp/ccrbuild-1000/gcc-gcj/gcc-gcj/src/gcc-4.9.2/build/./gcc/xgcc -B/tmp/ccrbuild-1000/gcc-gcj/gcc-gcj/src/gcc-4.9.2/build/./gcc/ -B/usr/x86_64-unknown-linux-gnu/bin/ -B/usr/x86_64-unknown-linux-gnu/lib/ -isystem /usr/x86_64-unknown-linux-gnu/include -isystem /usr/x86_64-unknown-linux-gnu/sys-include -E -P -include ../config.h - > libstdc++-symbols.ver || (rm -f libstdc++-symbols.ver ; exit 1)
rm -f libstdc++-symbols.ver.tmp
/bin/sh ../libtool --tag CXX --mode=link /tmp/ccrbuild-1000/gcc-gcj/gcc-gcj/src/gcc-4.9.2/build/./gcc/xgcc -shared-libgcc -B/tmp/ccrbuild-1000/gcc-gcj/gcc-gcj/src/gcc-4.9.2/build/./gcc -nostdinc++ -L/tmp/ccrbuild-1000/gcc-gcj/gcc-gcj/src/gcc-4.9.2/build/x86_64-unknown-linux-gnu/libstdc++-v3/src -L/tmp/ccrbuild-1000/gcc-gcj/gcc-gcj/src/gcc-4.9.2/build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/tmp/ccrbuild-1000/gcc-gcj/gcc-gcj/src/gcc-4.9.2/build/x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -B
@deogracia
deogracia / chakra.json
Created May 9, 2016 20:46
packer 0.10.1 validate error
{
"variables": {
"iso_url": "",
"iso_checksum_url": "https://mirrors.kernel.org/archlinux/iso/2016.05.01/sha1sums.txt",
"iso_checksum_type": "sha1",
"ssh_timeout": "20m"
},
"builders": [
{
@deogracia
deogracia / vagrant up output log
Created September 3, 2018 21:36
vagrant issue #10170
INFO global: Vagrant version: 2.1.4
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_LOG="info"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.1.4/gems/vagrant-2.1.4/bin/vagrant"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
WARN global: resolv replacement has not been enabled!
INFO manager: Registered plugin: help command
@deogracia
deogracia / github_action.yml
Created October 19, 2020 21:16
windows: install go on github's windows host
name: Checks on_push
on:
push:
branches:
- "*"
tags:
- "!v*.*.*"
jobs:
@deogracia
deogracia / generate.bash
Created February 7, 2021 10:08
undelete files from a deleted directory, s3 bucket with versioning enabled
# taken from https://superuser.com/a/1019940
MY_BUCKET=yourbucket-name
MY_PREFIX=my-directory
echo '#!/usr/bin/env bash' > undeleteScript.sh && aws --output text s3api list-object-versions --bucket ${MY_BUCKET} --prefix ${MY_PREFIX} | grep -E "^DELETEMARKERS" | awk '{FS = "[\t]+"; print "aws s3api delete-object --bucket ${MY_BUCKET} --key \42"$3"\42 --version-id "$5";"}' >> undeleteScript.sh