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/bash | |
# Generates a self signed ssl that actually works | |
DOMAIN1=$1 | |
DOMAIN2=$4 | |
IP_ADDRESS=$2 | |
SSL_PATH=$3 | |
CNF_PATH="$SSL_PATH/$DOMAIN1.cnf" | |
KEY_PATH="$SSL_PATH/$DOMAIN1.key" | |
CRT_PATH="$SSL_PATH/$DOMAIN1.crt" |
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
function importRegex(url, regexInput) { | |
var output = ''; | |
var fetchedUrl = UrlFetchApp.fetch(url, {muteHttpExceptions: true}); | |
if (fetchedUrl) { | |
var html = fetchedUrl.getContentText(); | |
if (html.length && regexInput.length) { | |
output = html.match(new RegExp(regexInput, 'i'))[1]; | |
} | |
} | |
// Grace period to not overload |
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/bash | |
clipboard="message=" | |
clipboard+=$(pbpaste) | |
curl -s \ | |
--form-string "token=" \ | |
--form-string "user=" \ | |
--form-string "$clipboard" \ | |
https://api.pushover.net/1/messages.json |
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://property.phila.gov/?p=341148200 | |
http://property.phila.gov/?p=592073500 | |
http://property.phila.gov/?p=422023800 | |
http://property.phila.gov/?p=112136000 | |
http://property.phila.gov/?p=452311500 | |
http://property.phila.gov/?p=111083800 | |
http://property.phila.gov/?p=364423400 | |
http://property.phila.gov/?p=202215038 | |
http://property.phila.gov/?p=11378300 | |
http://property.phila.gov/?p=871265700 |
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
#! /usr/bin/python | |
# required library to create a matrix | |
import numpy | |
# random int library | |
from random import randint | |
from pprint import pprint |
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
data =xlsread('data.xlsx'); | |
vec1 = data (:,1); | |
vec2 = data (:,2); | |
mean_vec1 = mean(vec1) | |
hold on | |
find(vec1); | |
find(vec2); | |
hold on; |
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
def nl2lb(value): | |
return value.replace('\n', '<div class="line-break"></div>') | |
# Or even simpler | |
def nl2br(value): | |
return value.replace('\n', '<br>') |
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 | |
sudo newfs_msdos -v EFI -F 32 /dev/rdisk0s1 | |
sudo mkdir /Volumes/EFI | |
sudo mount -t msdos /dev/disk0s1 /Volumes/EFI | |
sudo rm -rf /Volumes/EFI/EFI | |
sudo cp -R /EFI /Volumes/EFI | |
sudo diskutil unmount /Volumes/EFI |
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
<?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>ACPI</key> | |
<dict> | |
<key>DSDT</key> | |
<dict> | |
<key>Debug</key> | |
<false/> |
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
cd ~/Library/Containers | |
rm -rf com.microsoft.Excel com.microsoft.Office365ServiceV2 com.microsoft.Outlook com.microsoft.Powerpoint com.microsoft.Word com.microsoft.netlib.shipassertprocess com.microsoft.onenote.mac | |
rm -rf UBF8T346G9.ms UBF8T346G9.Office UBF8T346G9.OfficeOsfWebHost |
NewerOlder