Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
noice

Pedro Guimarães 0x7067

💭
noice
  • Porto Alegre - RS, Brazil
View GitHub Profile
@0x7067
0x7067 / convert.sh
Created Feb 10, 2020
Recursively convert all PNG files in a directory to webp
View convert.sh
for i in $(find . -name "*.png" | sed 's/\.png//1'); do cwebp -q 75 $i.png -o $i.webp; done
@0x7067
0x7067 / Create color with gradient
Created Jul 11, 2019 — forked from cristianca/Create color with gradient
Create a gradient UIColor from an array of colors.
View Create color with gradient
func colorWithGradient(frame: CGRect, colors: [UIColor]) -> UIColor {
// create the background layer that will hold the gradient
let backgroundGradientLayer = CAGradientLayer()
backgroundGradientLayer.frame = frame
// we create an array of CG colors from out UIColor array
let cgColors = colors.map({$0.CGColor})
backgroundGradientLayer.colors = cgColors
@0x7067
0x7067 / eternalblue8_exploit.py
Created May 19, 2017 — forked from worawit/eternalblue8_exploit.py
Eternalblue exploit for Windows 8/2012
View eternalblue8_exploit.py
#!/usr/bin/python
from impacket import smb
from struct import pack
import os
import sys
import socket
'''
EternalBlue exploit for Windows 8 and 2012 by sleepya
The exploit might FAIL and CRASH a target system (depended on what is overwritten)
@0x7067
0x7067 / delete_all_tweets.py
Created Nov 25, 2016 — forked from davej/delete_all_tweets.py
This script will delete all of the tweets in a specified account.
View delete_all_tweets.py
# -*- coding: utf-8 -*-
"""
This script will delete all of the tweets in the specified account.
You may need to hit the "more" button on the bottom of your twitter profile
page every now and then as the script runs, this is due to a bug in twitter.
You will need to get a consumer key and consumer secret token to use this
script, you can do so by registering a twitter application at https://dev.twitter.com/apps
@requirements: Python 2.5+, Tweepy (http://pypi.python.org/pypi/tweepy/1.7.1)
View after.txt
[u'psic\xf3loga', u'hoje', u'deu', u'vontade', u'ler', u'romancezinho', u'bem', u'self', u'insert', u'esquecer', u'existo']
[]
[u'whoa', u'must', u'biggest', u'windows', u'blue', u'screen', u'death', u'ever', u'seen']
[u'whenever', u'see', u'someone', u'write', u'would']
[u'equipe', u'rocket', u'destruindo', u'padr\xf5es', u'g\xeanero', u'desde']
[u'want', u'relationship', u'even', u'though', u'women', u'shepard', u'miga', u'mina', u'\xe9', u'_azul_', u'talvez', u'atente', u'pra', u'antes', u'g\xeanero']
[u'adoro', u'\xe9', u'fucking', u'wrpg', u'ainda', u'assim', u'momento', u'b-but', u'girls', u'liara']
[]
[u'mass', u'effect']
[u'cena', u'ser', u'maravilhosa', u'nunca', u'mds', u'<3']