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
@implementation CMFWallpaper | |
+ (void)setImage:(UIImage *)image { | |
NSAssert([PHPhotoLibrary authorizationStatus] == PHAuthorizationStatusAuthorized, @"access to photos is needed to set the wallpaper"); | |
NSString *path; | |
#if TARGET_OS_SIMULATOR | |
path = @"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibrary.framework"; | |
#else | |
path = @"/System/Library/PrivateFrameworks/PhotoLibrary.framework"; |
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 | |
while true; do | |
docker stats --no-stream --format "{{.MemPerc}}," $1 >> memory_usage.csv; | |
done |
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 | |
set -e | |
set -o pipefail | |
DROPLET_NAME=my-ghost-publication | |
DOMAIN="" | |
SUBDOMAIN="" | |
IMAGES_DIR="" | |
THEMES_DIR="" | |
KEYS_DIR="~/.create-ghost-publication/keys" |
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
FROM nvidia/cuda:10.2-devel-ubuntu18.04 | |
RUN apt-get update && apt-get install -qy freeglut3-dev libegl1-mesa-dev libglew-dev pkg-config unzip wget yasm | |
# Get the Video Codec SDK Samples (an updated set of samples can be found using NVIDIA's site at https://developer.nvidia.com/nvidia-video-codec-sdk/download) | |
RUN cd /tmp && \ | |
wget https://github.com/NVIDIA/video-sdk-samples/archive/master.zip && \ | |
unzip master.zip && \ | |
rm master.zip && \ | |
mv video-sdk-samples-master /usr/src/app |
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
FROM swift:5.3-amazonlinux2 | |
RUN yum -y install zip openssl-devel |