Skip to content

Instantly share code, notes, and snippets.

View keepjhonnying's full-sized avatar
🎛️
Jhonnying...

B. JIF keepjhonnying

🎛️
Jhonnying...
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<style>
.lapis {
position: absolute;
cursor: move;
}
html{
background-color: black;
@keepjhonnying
keepjhonnying / emailRegex.js
Created February 23, 2023 00:18
Melhor regex para validação de padrão de endereço de e-mail
const emailRegexp = /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;
/*
Essa expressão regular é utilizada para validar se uma string é um endereço de email válido.
Aqui está a explicação dos diversos elementos da expressão:
^ - Âncora para o início da string.
( - Grupo de captura.
( - Grupo de captura aninhado.
@keepjhonnying
keepjhonnying / leGist.txt
Last active November 30, 2021 16:07
Util
## GIT ##
git remote set-url origin "https://(username)@github.com/(username)/(nome do repositório).git"
git push -u origin main
#KILL process by pid withot know pid
sudo kill $(ps aux | grep caffeinate | grep -v grep | awk '{print $2}')
#Caffeinate at mac startup
#/Library/LaunchDaemons/caffeinate.plist
#sudo launchctl load -w /Library/LaunchDaemons/caffeinate.plist
@keepjhonnying
keepjhonnying / install-mongodb-mac-os-x.md
Created November 25, 2021 15:19 — forked from Sydney-o9/install-mongodb-mac-os-x.md
Install MongoDB on Mac OS X without brew

1. Download latest source

# Get latest from MongoDB website
$ curl -O https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.4.6.tgz
$ tar -zxvf mongodb-osx-x86_64-3.4.6.tgz
$ mkdir -p mongodb
$ cp -R -n mongodb-osx-x86_64-3.4.6/ mongodb
$ sudo mv mongodb /usr/local
@keepjhonnying
keepjhonnying / replace_smartobject_image.js
Created February 8, 2021 07:04 — forked from laryn/replace_smartobject_image.js
Photoshop script to replace a smart object within a PSD with selected image(s) and save result as a JPG. (Transformations to the smart object will be applied to new images).
// Replace SmartObject’s Content and Save as JPG
// 2017, use it at your own risk
// Via @Circle B: https://graphicdesign.stackexchange.com/questions/92796/replacing-a-smart-object-in-bulk-with-photoshops-variable-data-or-scripts/93359
// JPG code from here: https://forums.adobe.com/thread/737789
#target photoshop
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
var theName = myDocument.name.match(/(.*)\.[^\.]+$/)[1];
var thePath = myDocument.path;
@keepjhonnying
keepjhonnying / post_xml.vb
Created February 5, 2020 12:36
Post XML with VB.NET
Using wc As New System.Net.WebClient()
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
Dim CredSnowAuth As String = GlobalVariables.user & ":" & GlobalVariables.pass
Dim SnowAuth As String = "Basic " & Convert.ToBase64String(Encoding.UTF8.GetBytes(CredSnowAuth))
wc.Headers.Add("Authorization", SnowAuth)
wc.Headers.Add("Content-Type", "application/xml; charset=utf-8")
wc.UploadString("https://instance.service-now.com/api/now/table/incident", "POST", "<?xml version='1.0' encoding='UTF-8'?><request><entry><contact_type>phone</contact_type><assignment_group>ca28ffb14f7dfb405e20f9b7c210c73f</assignment_group><caller_id>fb7df8491bda73cc42c1ea8dee4bcb6e</caller_id><u_on_behalf_of>d602ac7a1be93b4042c1ea8dee4bcbd5</u_on_behalf_of><u_notify_by>Call</u_notify_by><service_offering>012988064fbdfb405e20f9b7c210c7b0</service_offering><cmdb_ci>9559d08e4fb13f405e20f9b7c210c7fc</cmdb_ci><comments>[code]&lt;a href='#'&gt;BR LOCAL KB&lt;/a&gt;[/code]</comments><description>User: fernaj33" & vbNewLi
http://t2.pow7.com/announce
http://thetracker.org:80/announce
http://torrentsmd.com:8080/announce
http://tracker.bittor.pw:1337/announce
http://tracker.dutchtracking.com:80/announce
@keepjhonnying
keepjhonnying / whatsapp_phone_enumerator_floated_div.js
Created May 12, 2017 21:26
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - [email protected]
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part
of your contact list. At the end a table is displayed containing phonenumbers, profile pics,
about texts and online statuses. The online statuses are being updated every
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### Ubuntu Main Repos
deb http://by.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://by.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
###### Ubuntu Update Repos
@keepjhonnying
keepjhonnying / osx-for-hackers.sh
Created October 16, 2015 10:54 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'