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
| function getLocalStorage(name){ | |
| name = btoa(name); | |
| var now = parseInt(new Date() / 1000); | |
| var expires = localStorage.getItem(name+"_expire"); | |
| if(localStorage.getItem(name) === null){ return ""; } | |
| if(!expires){ try { return atob(localStorage.getItem(name)); } catch(err){ return localStorage.getItem(name); } } | |
| else if(now >= expires){ localStorage.removeItem(name+"_expire"); localStorage.removeItem(name); return ""; } | |
| else{ try {return atob(localStorage.getItem(name));} catch(err){return localStorage.getItem(name);} } | |
| } |
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
| <?php | |
| define('MAILGUN_URL', 'https://api.mailgun.net/v3/DOMAIN_NAME'); | |
| define('MAILGUN_KEY', 'KEY'); | |
| function sendmailbymailgun($to,$toname,$mailfromnane,$mailfrom,$subject,$html,$text,$tag,$replyto){ | |
| $array_data = array( | |
| 'from'=> $mailfromname .'<'.$mailfrom.'>', | |
| 'to'=>$toname.'<'.$to.'>', | |
| 'subject'=>$subject, | |
| 'html'=>$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
| // ==UserScript== | |
| // @name Linked In Browser (No Login) | |
| // @namespace http://egli.me/ | |
| // @version 0.1 | |
| // @description Allows you to browse linked in without being logged in. | |
| // @author Smugzombie | |
| // @match https://www.linkedin.com/in/* | |
| // @grant none | |
| // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
| // ==/UserScript== |
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
| function rotate () { | |
| # minimum file size to rotate in MBi: | |
| local MB="$1" | |
| # filename to rotate (full path) | |
| local F="$2" | |
| local msize="$((1024*1024*${MB}))" | |
| test -e "$F" || return 2 | |
| local D="$(dirname "$F")" | |
| local E=${F##*.} |
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
| import subprocess | |
| def getSSID(): | |
| return str(subprocess.check_output(["/sbin/iwgetid -r"], shell = True).rstrip()) | |
| def main(): | |
| print getSSID() | |
| main() |
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
| // ==UserScript== | |
| // @name Clicktime Monitor | |
| // @namespace gist.github.com/smugzombie/13d5f60899d7aa0ee33bf9614ebb8520 | |
| // @version 0.1 | |
| // @description Monitors Your Login Status Within Clicktime to prevent filling out a days worth of time and it not saving | |
| // @author Ron Egli | |
| // @match https://app.clicktime.com/App/DayView/* | |
| // @grant none | |
| // ==/UserScript== |
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
| <div class='row'> | |
| <div class="col-lg-12"> | |
| <ul class="nav nav-pills" style="border-bottom: 1px solid #007bff;"> | |
| <li class="nav-item"> | |
| <a class="nav-link active makeshift-tab" id='profile_pill' onclick='changePills(this.id)' href="#">User Profile</a> | |
| </li> | |
| <li class="nav-item"> | |
| <a class="nav-link makeshift-tab" id='contacts_pill' onclick='changePills(this.id)' href="#">Contacts</a> | |
| </li> | |
| <li class="nav-item"> |
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 | |
| open https://www.youtube.com/watch?v=dQw4w9WgXcQ | |
| osascript -e 'tell app "System Events" to display dialog "Never gonna give you up" buttons {"OK"} with title "Rick Astley Says" with icon 0'; | |
| osascript -e 'tell app "System Events" to display dialog "Never gonna let you down" buttons {"OK"} with title "Rick Astley Says" with icon 0'; | |
| osascript -e 'tell app "System Events" to display dialog "Never gonna run around and desert you" buttons {"OK"} with title "Rick Astley Says" with icon 0'; | |
| osascript -e 'tell app "System Events" to display dialog "Never gonna make you cry" buttons {"OK"} with title "Rick Astley Says" with icon 0'; | |
| osascript -e 'tell app "System Events" to display dialog "Never gonna say goodbye" buttons {"OK I get it"} with title "Rick Astley Says" with icon 0'; | |
| osascript -e 'tell app "System Events" to display dialog "Never gonna tell a lie" buttons {"No really"} with title "Rick Astley Says" with icon 0'; | |
| osascript -e 'tell app "System Events" to display dialog "And hurt you" buttons {" |
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
| <?php | |
| // Used for testing ratelimiting of auto submission contact scripts | |
| // Generates believable email addresses using the top email services around the world | |
| $attack_url = "http://example.com/php/contact-form-process.php"; // Url of the form submission page | |
| $attack_quantity = 200; // Amount of posts to make in one call | |
| $attack_wait = 5; // Seconds to wait between posts | |
| $domains = array("aol.com", "att.net", "comcast.net", "facebook.com", "gmail.com", "gmx.com", "googlemail.com", "google.com", "hotmail.com", "hotmail.co.uk", "mac.com", "me.com", "mail.com", "msn.com", "live.com", "sbcglobal.net", "verizon.net", "yahoo.com", "yahoo.co.uk", "email.com", "fastmail.fm", "games.com", "gmx.net", "hush.com", "hushmail.com", "icloud.com","iname.com", "inbox.com", "lavabit.com", "love.com", "outlook.com", "pobox.com", "protonmail.com", "rocketmail.com", "safe-mail.net", "wow.com", "ygm.com", "ymail.com", "zoho.com", "yandex.com", "bellsouth.net", "charter.net", "cox.net", "earthlink.net", "juno.com", "btinternet.co |
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
| package main | |
| // Ghetto Cat Facts | |
| // Allows random catfacts to be added to slack conversations without | |
| // Ron Egli - github.com/smugzombie | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "io/ioutil" | |
| "encoding/json" |