Skip to content

Instantly share code, notes, and snippets.

View rubemlrm's full-sized avatar
:octocat:
Focusing

rubemlrm rubemlrm

:octocat:
Focusing
View GitHub Profile
#!/bin/bash
resources=("ClusterRole" "Role" "Namespace")
for i in ${resources[@]} do;
done
@rubemlrm
rubemlrm / task.yml
Created June 29, 2021 09:10
ansible sssd task
---
- name: Install SSSD for active directory
ansible.builtin.package:
name: 'openssh-server'
state: present
with_items:
- realmd
- sssd
- oddjob
- oddjob-mkhomedir
@rubemlrm
rubemlrm / CheckNetworkMachines.pl
Created June 9, 2020 22:33
CheckNetworkMachines.pl
#!/usr/bin/perl
use warnings;
use strict;
use Net::Ping;
use autodie;
my $host;
my $my_addr="<ip>";
my $ping;
my @reportlist;
chomp(my $date = `date +%a%d%m%y%k%M`);
SELECT DISTINCT es.county_id, latitude , longitude,
IFNULL(tr_county_name.value,co.name) AS countyName,
es.name, co.name, co.code
FROM hi_establishments as es
LEFT JOIN hi_counties as co ON co.id = es.county_id
LEFT JOIN hi_translations AS tr_county_name ON tr_county_name.hi_table = 'hi_counties'
AND tr_county_name.lang = 'pt'
AND tr_county_name.field = 'name'
AND tr_county_name.row_id = co.id
WHERE valence_id = {$valenceID}
listView.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
Toast.makeText(getApplicationContext(),
"Click ListItem Number " + position, Toast.LENGTH_LONG)
.show();
switch(position) {
case CONST_FRAGMENT_1 :
//Start fragment 1
- name: Install base packages
become: true
become_user: root
become_method: sudo
package:
name: '{{ item }}'
state: present
with_items:
- 'youtube-dl'
- 'numlockx'
@rubemlrm
rubemlrm / gist:568b45e181333d306a8d21d413e31379
Created October 4, 2017 15:03
gitlab-ci multiple tasks
phpcs:
# This file is a template, and might need editing before it works on your project.
# Select image from https://hub.docker.com/_/php/
image: rubemlrm/php-docker:7.1-apache
# Select what we should cache between builds
cache:
paths:
- vendor/
@rubemlrm
rubemlrm / cloudSettings
Last active August 9, 2021 14:14
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-08-09T14:14:44.899Z","extensionVersion":"v3.4.3"}
# Apache Server Configs v2.11.0 | MIT License
# https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have
# access to the main server configuration file (which is usually called
# `httpd.conf`), you should add this logic there.
#
# https://httpd.apache.org/docs/current/howto/htaccess.html.
# ######################################################################
@rubemlrm
rubemlrm / setup.sh
Created April 20, 2016 14:53
rvm small setup
!/usr/bin/env bash
echo "welcome to ruby server conf"
echo "updating repos"
sudo apt-get update --fix-missing
echo "Installing build-essential and curl"
sudo apt-get install -y build-essential
sudo apt-get install -y curl git rsync