Skip to content

Instantly share code, notes, and snippets.

View ti24horas's full-sized avatar

Rafael Nicoletti ti24horas

View GitHub Profile
[kubernetes-members]
localhost ansible_connection=local
cat: playbook.: No such file or directory
[root@k8s-node-150-1 ~]# cat inventory.ini playbook.
playbook.retry playbook.yaml
[root@k8s-node-150-1 ~]# cat inventory.ini playbook.yaml
[kubernetes-members]
localhost ansible_connection=local
- hosts: kubernetes-members
tasks:
internal class ConfigurableLoggerFiltering : IFilterLoggerSettings
{
private CancellationTokenSource cts;
private IChangeToken token;
private List<(string category, LogLevel level)> levels = new List<(string category, LogLevel level)>();
public ConfigurableLoggerFiltering()
{
this.Reload();
}
@ti24horas
ti24horas / gist:5716265
Created June 5, 2013 18:58
CardboardFish Sample send message
public string SendSms(SmsMessage msg)
{
var ss = new SendSMS();
ss.setURL(this.hosts.Current);
ss.initialise(this.username, this.password);
// this.sourceAddress=38062493106 is set in the constructor. The number is inject from app config
var result = ss.sendSMS(msg.ToNumber, this.sourceAddress, msg.Message);
if (result < 0)
{
@ti24horas
ti24horas / asynctask.java
Created October 5, 2012 15:21
Exemplo async task java
abstract class Task extends Handler implements Runnable{
public abstract void executeTask();
public Task(int beginMessage, int endMessage){
}
public bool setRunning(){
}
public void run(){
if(this.getRunning())