Install the OpenSSL on Debian based systems
sudo apt-get install openssl| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
I recently had the following problem:
We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like
ssh -L 3306:localhost:3306 remotehost
When speaking of the Icecast protocol here, actually it's just the HTTP protocol, and this document will explain further how source clients need to send data to Icecast.
Since Icecast version 2.4.0 there is support for the standard HTTP PUT method.
The mountpoint to which to send the data is specified by the URL path.
Pull the VideoLAN Docker container and run it in interactive mode with bash:
(The -v ~/docker:/root/shared maps /root/shared in the container to ~/docker on your machine to easily obtain the build results, so make sure ~/docker exists.)
docker pull registry.videolan.org:5000/vlc-debian-win64
docker run -v ~/docker:/root/shared -it registry.videolan.org:5000/vlc-debian-win64 /bin/bash| # these are reconstructed from a shell session without runnig them, so make | |
| # sure you check that it's a sane thing to do before running it, I make no | |
| # guarantees of fitness, and accept no liability. Run at your own risk. | |
| sudo launchctl remove com.snap.SnapCameraRemover | |
| rm -r ~/Library/Caches/Snap/ | |
| rm -r ~/Library/Caches/com.snap.SnapCamera/ | |
| rm -r ~/Library/Preferences/Snap/ | |
| rm ~/Library/Preferences/com.snap.SnapCamera.plist | |
| rm ~/Library/Preferences/com.snap.Snap\ Camera.plist | |
| sudo rm -rf /Applications/Snap\ Camera.app/ |
| - (void)moveToURL:(NSURL *)url completionHandler:(void (^ __nullable)(NSError * __nullable))completionHandler | |
| { | |
| NSError *error = nil; | |
| NSURL *adjustedURL = nil; | |
| if (![[url pathExtension] isEqualToString:@"testextension"]) { | |
| adjustedURL = [url URLByAppendingPathExtension:@"testextension"]; | |
| } |
| // | |
| // Debug.swift | |
| // | |
| // Created by Craig Hockenberry on 3/15/17. | |
| // Updated by Craig Hockenberry on 2/20/24. | |
| // Usage: | |
| // | |
| // SplineReticulationManager.swift: | |
| // |
| #include "H264_Decoder.h" | |
| H264_Decoder::H264_Decoder(h264_decoder_callback frameCallback, void* user) | |
| :codec(NULL) | |
| ,codec_context(NULL) | |
| ,parser(NULL) | |
| ,fp(NULL) | |
| ,frame(0) | |
| ,cb_frame(frameCallback) | |
| ,cb_user(user) |
| # Generate a BaseSystem.dmg with 10.13 Install Packages | |
| hdiutil attach /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/highsierra | |
| hdiutil create -o /tmp/HighSierraBase.cdr -size 7316m -layout SPUD -fs HFS+J | |
| hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
| asr restore -source /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase | |
| cp -R /Volumes/highsierra/Packages /Volumes/OS\ X\ Base\ System/System/Installation | |
| hdiutil detach /Volumes/OS\ X\ Base\ System/ | |
| hdiutil detach /Volumes/highsierra/ | |
| mv /tmp/HighSierraBase.cdr.dmg /tmp/BaseSystem.dmg |