Skip to content

Instantly share code, notes, and snippets.

View gnumoksha's full-sized avatar
🐚
available only on my shell phone

Tobias Sette gnumoksha

🐚
available only on my shell phone
View GitHub Profile
@gnumoksha
gnumoksha / mse.vbs
Created November 13, 2013 14:47
Obtém informações do Microsoft Security Essentials e exibe de uma forma compreensível ao Zabbix
' Obtém informações do Microsoft Security Essentials
' e exibe de uma forma compreensível ao Zabbix
' execute com: cscript.exe //nologo mse.vbs
' Este post foi de grande ajuda:
' http://serverfault.com/questions/230368/timestamp-of-last-definition-update-for-microsoft-security-essentials-via-script
' Tobias 12/11/13
set objetoShell = CreateObject( "WScript.Shell" )
set objetoFS = CreateObject("Scripting.FileSystemObject")
#!/usr/bin/env python
import sys
# http://www.python.org.br/wiki/PythonNoLugarDeShellScript
from subprocess import Popen, PIPE
class Cmd(object):
def __init__(self, cmd):
self.cmd = cmd
def __call__(self, *args):
#!/bin/bash
# Copyright (C) 2013 Tobias <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@gnumoksha
gnumoksha / telegram-cli_example_usage.md
Last active December 5, 2021 14:24
Telegram-cli example usage

Install the required packages

apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev make git -y

Compile

cd /usr/src
git clone --recursive https://github.com/vysheng/tg.git
@gnumoksha
gnumoksha / auto_sync_git.sh
Created June 20, 2016 19:39
Does the git pull of all subdirectories
#!/bin/bash
# This script syncs (i.e. makes git pull) on a specified directory or, se no
# parameter was specified, in all the subdirectories that are git projects.
#
# Usage:
# ./auto_sync_git.sh directory_of_my_project
# ./auto_sync_git.sh
# An alias to the git binary

Keybase proof

I hereby claim:

  • I am gnumoksha on github.
  • I am gnumoksha (https://keybase.io/gnumoksha) on keybase.
  • I have a public key ASCgFWYMc3PEX06aMq2v0Kd6KPY_naq4ZOg-WWpBTEJHFgo

To claim this, I am signing this object:

Verifying that "gnumoksha.id" is my Blockstack ID. https://onename.com/gnumoksha
@gnumoksha
gnumoksha / keybase.md
Created March 14, 2019 07:23
keybase 02

Keybase proof

I hereby claim:

  • I am gnumoksha on github.
  • I am gnumoksha (https://keybase.io/gnumoksha) on keybase.
  • I have a public key ASC4MqcMxqoFlZfcAbb4Z0ByiTrgsmZxs5pIFs5ibsEpXAo

To claim this, I am signing this object:

@gnumoksha
gnumoksha / openpgp.txt
Created March 14, 2019 23:17
Identidade Vinculada do OpenKeychain
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:713beb28e0c16bad0359da1ce724f606efff66f7]
@gnumoksha
gnumoksha / Client.php
Last active June 10, 2020 21:35
Wrap some of Guzzle's behaviours using only PSR-7, PSR-17 and PSR-18 interfaces.
<?php
declare(strict_types=1);
namespace Libs\Tools\Http;
use Http\Client\Common\Plugin\CookiePlugin;
use Http\Client\Common\Plugin\RedirectPlugin;
use Http\Client\Common\PluginClient;
use Http\Message\CookieJar;