Skip to content

Instantly share code, notes, and snippets.

View fernandodev's full-sized avatar
💭
⭐️ ⭐️ ⭐️ ⭐️

Fernando Martínez fernandodev

💭
⭐️ ⭐️ ⭐️ ⭐️
View GitHub Profile
@fernandodev
fernandodev / happynel.md
Last active August 10, 2022 15:45
Teste Ruby on Rails

HappyNel

Dashboard de enquete de satisfação

Requerimentos

  1. > Rails 4

How to recover lost M$ Word password

After a lot of investiment researching and building scripts to crack an old word file I've lost the password, finally I found the final guide for it:

In Short

$ python3 office2hashcat.py wordfile.doc > hashcat.txt
- (void)logPropertiesFromObject:(id)object {
NSLog(@"----------------------------------------------- Properties for object %@", object);
NSMutableString *result = [@"{\n" mutableCopy];
@autoreleasepool {
unsigned int numberOfProperties = 0;
objc_property_t *propertyArray = class_copyPropertyList([object class], &numberOfProperties);
for (NSUInteger i = 0; i < numberOfProperties; i++) {
objc_property_t property = propertyArray[i];
NSString *name = [[NSString alloc] initWithUTF8String:property_getName(property)];
function turbo_xcode
sudo launchctl remove com.fireeye.xagt
sudo pkgutil --only-files --files com.fireeye.xagt | tr '\n' '\0' | xargs -n 1 -0 sudo rm -f
sudo pkgutil --only-files --files com.fireeye.hx-agent | tr '\n' '\0' | xargs -n 1 -0 sudo rm -f
sudo pkgutil --only-dirs --files com.fireeye.xagt | tail -r | tr '\n' '\0' | xargs -n 1 -0 sudo rmdir
sudo pkgutil --only-dirs --files com.fireeye.hx-agent | tail -r | tr '\n' '\0' | xargs -n 1 -0 sudo rmdir
sudo pkgutil --forget com.fireeye.xagt
sudo pkgutil --forget com.fireeye.hx-agent
sudo pkgutil --only-files --files com.trendmicro.tmsm.application.trendMicroSecurity.tmcoreinst.pkg | tr '\n' '\0' | xargs -n 1 -0 sudo rm -f
[
{
"name": "Dwarf Cat",
"thumb": "http://i.amz.mshcdn.com/8blgBZexhvyxgW2ozZVDsGcabSM=/950x534/2012%2F12%2F04%2F9d%2F15bestcatme.aH8.jpg",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vel velit est. Sed vulputate neque ipsum, ut tincidunt nulla elementum non. Suspendisse potenti. Etiam id euismod turpis. Aliquam id efficitur velit, vitae ornare lectus. Cras ut auctor ipsum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;"
},
{
"name": "Gray Girl Cat",
"thumb": "http://static1.squarespace.com/static/53864718e4b07a1635424cdd/t/56bdfb3d04426232bfc1b8a9/1455291208397/party+cat",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vel velit est. Sed vulputate neque ipsum, ut tincidunt nulla elementum non. Suspendisse potenti. Etiam id euismod turpis. Aliquam id efficitur velit, vitae ornare lectus. Cras ut auctor ipsum. Vestibulum ante ipsum primis in faucibus orci luctus et ultri
{
"account_id": "57cx91",
"access_token": "A32B19AAF010281CD1DDF12D"
}
@fernandodev
fernandodev / hmacsha512.java
Created June 25, 2015 17:56
Android - Encrypt passwords with HMAC SHA512
/**
* You have to use: compile 'commons-codec:commons-codec:1.4'
* as dependency
*/
public static String HMACSHA512(String value, String securityHmac) throws UnsupportedEncodingException,
NoSuchAlgorithmException, InvalidKeyException {
SecretKeySpec key = new SecretKeySpec((securityHmac).getBytes("UTF-8"), "HmacSHA512");
Mac mac = Mac.getInstance("HmacSHA512");
mac.init(key);
@fernandodev
fernandodev / clear_cache.sh
Created February 3, 2016 15:42
Remove all unnecessary files from OSX [Developer Edition]
#!/bin/sh
rm -rf ~/Library/Developer/XCode/DerivedData/*
rm -rf "~/Library/Developer/XCode/iOS Device Logs/*"
rm -rf "~/Library/Logs/*"
rm -rf ~/.Trash/*
@fernandodev
fernandodev / MTLJSONAdapter.swift
Last active December 28, 2015 11:09
A simple useful extension to transform easier dictionaries in models using mantle
/*
The MIT License (MIT)
Copyright (c) contact@fernandodev.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION W