# 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.lapis { | |
position: absolute; | |
cursor: move; | |
} | |
html{ | |
background-color: black; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]<a href='#'>BR LOCAL KB</a>[/code]</comments><description>User: fernaj33" & vbNewLi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------# | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
NewerOlder