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
defaults write com.apple.Safari WebKitMediaPlaybackAllowsInline -bool false | |
defaults write com.apple.SafariTechnologyPreview WebKitMediaPlaybackAllowsInline -bool false | |
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2AllowsInlineMediaPlayback -bool false | |
defaults write com.apple.SafariTechnologyPreview com.apple.Safari.ContentPageGroupIdentifier.WebKit2AllowsInlineMediaPlayback -bool false |
Install the requirements
sudo apt-get install sysstat
Install the agent from Datadog "from source". You'll get a command to run on the Pi that looks like this:
DD_API_KEY=0123456789abcdef0123456789abcdef sh -c "$(curl -L https://raw.githubusercontent.com/DataDog/dd-agent/master/packaging/datadog-agent/source/setup_agent.sh)"
Run that and wait for it to install and the agent to start running.
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 | |
set -e | |
function usage() { | |
cat << EOF | |
USAGE: | |
./shaper start <interface> <bw as XXX kbit> | |
./shaper clear <interface> | |
./shaper show <interface> | |
EOF |
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
public static Observable<Response> getData() { | |
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); | |
StrictMode.setThreadPolicy(policy); | |
final OkHttpClient client = new OkHttpClient(); | |
final Request request = new Request.Builder() | |
.url("https://github.com/ar-android/panfic/raw/master/Panfic/gen/com/ocit/data.json") | |
.get() | |
.addHeader("cache-control", "no-cache") |
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
{ | |
"dependencies": { | |
"Microsoft.AspNetCore.Mvc": "1.0.0", | |
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0", | |
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0", | |
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0", | |
"Microsoft.Extensions.Configuration.FileExtensions": "1.0.0", | |
"Microsoft.Extensions.Configuration.Json": "1.0.0", | |
"Microsoft.Extensions.Logging": "1.0.0", | |
"Microsoft.Extensions.Logging.Console": "1.0.0", |
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
param($websiteName, $packOutput, $slot) | |
#fix for the script provided here https://msdn.microsoft.com/en-us/Library/vs/alm/Build/azure/deploy-aspnet5?f=255&MSPPError=-2147217396 | |
$website = $null; | |
$baseUrl = $websiteName; | |
if($slot -eq $null){ | |
$website = Get-AzureWebsite -Name $websiteName | |
} else { | |
$baseUrl += "-" + $slot | |
$website = Get-AzureWebsite -Name $websiteName -Slot $slot | |
} |
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
class Specification: | |
def __and__(self, other): | |
return And(self, other) | |
def __or__(self, other): | |
return Or(self, other) | |
def __xor__(self, other): | |
return Xor(self, other) |
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
private static Pair<String, CodecCapabilities> getMediaCodecInfoInternal(CodecKey key, | |
MediaCodecListCompat mediaCodecList) { | |
String mimeType = key.mimeType; | |
int numberOfCodecs = mediaCodecList.getCodecCount(); | |
boolean secureDecodersExplicit = mediaCodecList.secureDecodersExplicit(); | |
// Note: MediaCodecList is sorted by the framework such that the best decoders come first. | |
Log.e("!!!", " --------- secure explicit? : " + secureDecodersExplicit); | |
for (int i = 0; i < numberOfCodecs; i++) { | |
MediaCodecInfo info = mediaCodecList.getCodecInfoAt(i); |
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 | |
# Determines who is logged in and then kills SEP and relaunches sans reboot. | |
# Get logged in user from /dev/console | |
loggedInUser=`ls -l /dev/console | awk '{ print $3 }'` | |
if [ "$loggedInUser" != "admin" ] | |
then | |
launchctl unload /Library/LaunchDaemons/com.symantec.Sched501-1.plist |