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 | |
| GNU_GETOPT=getopt | |
| # TODO: icky | |
| if [ -d "/usr/local/Cellar/gnu-getopt/2.39/bin" ]; then | |
| GNU_GETOPT="/usr/local/Cellar/gnu-getopt/2.39/bin/getopt" | |
| fi |
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 | |
| # | |
| # FFmpeg Batch convert files to HEVC | |
| # | |
| # Auto rename files to "{source}.HEVC.CQ-RF18.mp4" | |
| # | |
| # Batch transcode video files recursively from input directory, and create a | |
| # empty, mirrored directory tree of input directory to new "output" directory. | |
| # |
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
| <html> | |
| <head> | |
| <title>Joy</title> | |
| </head> | |
| <body> | |
| <button id="joy-button">Joy</button> | |
| <canvas id="canvas0" width="1280" height="720"></canvas> | |
| <script> |
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
| #include <errno.h> | |
| #include <stdio.h> | |
| #include <fcntl.h> | |
| #include <unistd.h> | |
| #include <sys/stat.h> | |
| #include <libavcodec/avcodec.h> | |
| #include <libavformat/avformat.h> | |
| void my_log_callback(void *ptr, int level, const char *fmt, va_list vargs) |
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
| using System.Runtime.InteropServices; | |
| namespace getrlimit; | |
| class Program | |
| { | |
| [DllImport("libc", CallingConvention = CallingConvention.Cdecl)] | |
| public static extern int getrlimit(int resource, IntPtr rlp); | |
| [StructLayout(LayoutKind.Sequential)] |
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
| { | |
| "configurations": [ | |
| { | |
| "name": ".NET Core Launch (console)", | |
| "type": "coreclr", | |
| "request": "launch", | |
| "program": "app.dll", | |
| "args": ["--urls=http://*:8000"], | |
| "cwd": "/home/bpm/appDirectory", | |
| "stopAtEntry": false, |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| namespace JoyRepeateTask; | |
| public class Program | |
| { |
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
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>net6.0</TargetFramework> | |
| <ImplicitUsings>enable</ImplicitUsings> | |
| <Nullable>enable</Nullable> | |
| <AllowUnsafeBlocks>True</AllowUnsafeBlocks> | |
| </PropertyGroup> |
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
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>net6.0</TargetFramework> | |
| <ImplicitUsings>enable</ImplicitUsings> | |
| <Nullable>enable</Nullable> | |
| <_EnableMacOSCodeSign>false</_EnableMacOSCodeSign> | |
| </PropertyGroup> |
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
| # Either the OS will delete or manually delete later | |
| export FORDELETE="forDelete-$(date '+%FT%T')" && (test -d bin || test -d obj) && sh -c 'mkdir "$FORDELETE" && echo "$FORDELETE"' && ((test -d bin && mv -i bin "$FORDELETE") ; (test -d obj && mv -i obj "$FORDELETE")) && mv -i "$FORDELETE" /tmp | |
| dotnet clean -f net6.0-ios && dotnet publish -f net6.0-ios -p:BuildType=Device && ideviceinstaller -u 00000000-00000000000000 -i bin/Debug/net6.0-ios/publish/TheApp.ipa | |
| tput -T$TERM init | |
| ... | |
| # This is also helpful |