Skip to content

Instantly share code, notes, and snippets.

View imcsk8's full-sized avatar
🎯
Focusing

Iván Chavero imcsk8

🎯
Focusing
View GitHub Profile
@imcsk8
imcsk8 / gist:78efd778b36bc6f3a29a872655643c79
Created January 30, 2020 22:02
CentOS 8 aarch64 rootfs creation
$ mkdir repos
$ cat <<EOF>> repos/centos.repo
[main]
arch=aarch64
basearch=aarch64
[centos8-base]
name=CentOS-8-Base
baseurl=http://mirror.centos.org/centos/8/BaseOS/aarch64/os/
gpgcheck=0
@imcsk8
imcsk8 / programmers_day.c
Created September 13, 2018 22:41
Programmers day code
/**
*
* Fun code for programmers day
* Programmers day is the 256th day of the year
* https://en.wikipedia.org/wiki/Day_of_the_Programmer
* Iván Chavero <[email protected]>
*
**/
#include <stdio.h>
@imcsk8
imcsk8 / wp-permissions-script
Created July 17, 2017 18:10 — forked from macbleser/wp-permissions-script
WordPress Permissions Configuration Script
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro
#
WP_OWNER=changeme # &lt;-- wordpress owner
WP_GROUP=changeme # &lt;-- wordpress group
WP_ROOT=/home/changeme # &lt;-- wordpress root directory
# Bugzilla Script to close ALL EOL Bugs
# Author : Chandan Kumar <[email protected]>
#
# How to Run this script:
# $ python close_eol_bugs.py
import bugzilla
import getpass
BZ_URL = "https://bugzilla.redhat.com"
$use_subnets_value = hiera('CONFIG_USE_SUBNETS')
$use_subnets = $use_subnets_value ? {
'y' => true,
default => false,
}
Exec { timeout => hiera('DEFAULT_EXEC_TIMEOUT') }
$neutron_db_host = hiera('CONFIG_MARIADB_HOST_URL')
$neutron_db_name = hiera('CONFIG_NEUTRON_L2_DBNAME')
@imcsk8
imcsk8 / openstack-cubieboard
Last active December 27, 2015 15:18
notas de instalación de openstrack en cubieboard
Instalaciṕn de fedora en cubietruck
http://permalink.gmane.org/gmane.comp.hardware.netbook.arm.sunxi/3966
problemas de openstack en ARM:
el template de packstack trata de instalar qemu-kvm
el paquete openstack-nova-compute tiene como dependencia qemu-kvm y python-libguestfs
@imcsk8
imcsk8 / imcsk8
Created September 12, 2012 22:43
rake db:migrate problem
/var/lib/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb
module ActiveRecord
module ConnectionAdapters # :nodoc:
module DatabaseStatements
# Converts an arel AST to SQL
def to_sql(arel, binds = [])
if arel.respond_to?(:ast)
visitor.accept(arel.ast) do <<<<<<----------