This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
resources=("ClusterRole" "Role" "Namespace") | |
for i in ${resources[@]} do; | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Install SSSD for active directory | |
ansible.builtin.package: | |
name: 'openssh-server' | |
state: present | |
with_items: | |
- realmd | |
- sssd | |
- oddjob | |
- oddjob-mkhomedir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Install base packages | |
become: true | |
become_user: root | |
become_method: sudo | |
package: | |
name: '{{ item }}' | |
state: present | |
with_items: | |
- 'youtube-dl' | |
- 'numlockx' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2021-08-09T14:14:44.899Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. | |
# ###################################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/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 |
NewerOlder