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 | |
FILENAME=$1 | |
TEMPDIR="/Users/dc/Documents/GIFs/temp" | |
SAVEDIR="/Users/dc/Documents/GIFs" | |
trap trapsigint INT | |
function trapsigint { | |
echo -e "\nMaking $FILENAME.gif" |
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
import UIKit | |
class AnimationThing: UIViewController { | |
let toolbar = UIView() | |
let doAThing = Notification.Name(rawValue: "DoAThing") | |
override func viewDidLoad() { | |
super.viewDidLoad() |
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
import UIKit | |
class KeyboardThing: UIViewController { | |
let toolbar = UIView() | |
let input = UITextField() | |
override func viewDidLoad() { | |
super.viewDidLoad() |
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 | |
FORCE=0 | |
NOCOPY=0 | |
while getopts "f" OPTION; do | |
case $OPTION in | |
f) | |
FORCE=1 | |
;; |
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
dc@dc:~/utroot/LinuxServer/UnrealTournament/Binaries/Linux$ ldd libUE4Server-MutatorStatsRecord-Linux-Shipping.so | |
linux-vdso.so.1 (0x00007ffcd8077000) | |
libpq.so.5 => /home/dc/utroot/LinuxServer/UnrealTournament/Binaries/Linux/./libpq.so.5 (0x00007f1187e9e000) | |
libUE4Server-Core-Linux-Shipping.so => /home/dc/utroot/LinuxServer/UnrealTournament/Binaries/Linux/./../../../Engine/Binaries/Linux/libUE4Server-Core-Linux-Shipping.so (0x00007f11875bd000) | |
libUE4Server-CoreUObject-Linux-Shipping.so => /home/dc/utroot/LinuxServer/UnrealTournament/Binaries/Linux/./../../../Engine/Binaries/Linux/libUE4Server-CoreUObject-Linux-Shipping.so (0x00007f1187099000) | |
libUE4Server-Engine-Linux-Shipping.so => /home/dc/utroot/LinuxServer/UnrealTournament/Binaries/Linux/./../../../Engine/Binaries/Linux/libUE4Server-Engine-Linux-Shipping.so (0x00007f11836e5000) | |
libUE4Server-UnrealTournament-Linux-Shipping.so => /home/dc/utroot/LinuxServer/UnrealTournament/Binaries/Linux/./libUE4Server-Unreal |
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
ffmpeg -i 'input.mp4' -filter_complex '[0:a:0][0:a:1]amerge=inputs=2[a]' -map '0:v:0' -map '[a]' -c:v copy -ac 2 'output.mp4' |
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
final class TintMyStatusBar { | |
static func to(_ colour: UIColor) { | |
let sbw = UIApplication.shared.value(forKey: "statusBarWindow") as! UIWindow | |
for statusbar in sbw.subviews { | |
for bgfg in statusbar.subviews { | |
for itemView in bgfg.subviews { | |
let image = itemView.layer.contents as! CGImage | |
itemView.layer.contents = self.tint(image: image, toColour: colour) | |
} |