This file contains hidden or 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/bash | |
WATERMARK="$HOME/Pictures/watermark/watermark.jpg" | |
echo "*****************************************" | |
echo "* Image Resize and Watermarking Script *" | |
echo "* By Gilbert Mendoza - SavvyAdmin.com! *" | |
echo "*****************************************" | |
echo " " | |
for each in ~/Pictures/temp/*{.jpg,.jpeg,.png} |
This file contains hidden or 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 | |
# https://freeboard.io/board/A1wZfc | |
output=$(speedtest-cli --simple) | |
ping_data=$(echo $output | cut -d" " -f2) | |
download_data=$(echo $output | cut -d" " -f5) | |
upload_data=$(echo $output | cut -d" " -f8) |
This file contains hidden or 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
cd ./bassi/ && zip -r ../bassi.mbz * |
This file contains hidden or 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
__author__ = 'teopost' | |
import argparse | |
import mechanize | |
import re | |
import urllib | |
from lxml import html |
This file contains hidden or 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
__author__ = 'teopost' | |
import httplib2 | |
from sys import argv, exit | |
from json import dumps | |
# is magnet link given in command line? |
This file contains hidden or 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
__author__ = 'teopost' | |
import urllib | |
import json | |
import datetime | |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>UTExportedTypeDeclarations</key> | |
<array> | |
<dict> | |
<key>UTTypeConformsTo</key> | |
<array> | |
<string>public.plain-text</string> |
This file contains hidden or 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
# Method 1 | |
sudo nmap -sP 192.168.1.2-255 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}' | |
# Method 2 | |
arp -na | grep -i b8:27:eb | |
# Method 3 | |
for i in $(jot - 1 254); do ping -t 1 192.168.1.$i && arp -a | cut -f 2,4 -d " " | tr [:lower:] [:upper:] | grep B8:27:EB; done | |
# Method 4 |
This file contains hidden or 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
/* https://stackoverflow.com/questions/148648/oracle-is-there-a-tool-to-trace-queries-like-profiler-for-sql-server */ | |
SELECT | |
S.LAST_ACTIVE_TIME, | |
S.MODULE, | |
S.SQL_FULLTEXT, | |
S.SQL_PROFILE, | |
S.EXECUTIONS, | |
S.LAST_LOAD_TIME, | |
S.PARSING_USER_ID, | |
S.SERVICE |
This file contains hidden or 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
-- vai qui: https://www.oraclerecipes.com/monitoring/find-blocking-sessions/ | |
COLUMN username FORMAT a10 HEADING 'Holding|User' | |
COLUMN session_id HEADING 'SID' | |
COLUMN mode_held FORMAT a20 HEADING 'Mode|Held' | |
COLUMN mode_requested FORMAT a20 HEADING 'Mode|Requested' | |
COLUMN lock_id1 FORMAT a20 HEADING 'Lock|ID1' | |
COLUMN lock_id2 FORMAT a20 HEADING 'Lock|ID2' | |
COLUMN type HEADING 'Lock|Type' |