Skip to content

Instantly share code, notes, and snippets.

View YOCKOW's full-sized avatar
🍤

YOCKOW YOCKOW

🍤
View GitHub Profile
This file has been truncated, but you can view the full file.
root@b6ea2efd971e:/Repositories/SwiftNetworkGear# env YOCKOW_USE_LOCAL_PACKAGES=1 swift test --build-path $HOME/.yswift-build-linux -v
/usr/bin/swiftc -print-target-info
/usr/bin/swiftc -print-target-info
/usr/bin/swift-frontend -frontend -print-target-info
/usr/bin/swift-frontend -frontend -print-target-info
/usr/bin/swift-frontend -frontend -emit-supported-features /tmp/TemporaryDirectory.gYAyEF/dummyInput-1.swift
Running resolver because the following dependencies were added: '/Repositories/SwiftRanges', '/Repositories/SwiftPublicSuffix', '/Repositories/SwiftBonaFideCharacterSet', '/Repositories/SwiftBootstring', '/Repositories/ySwiftExtensions', '/Repositories/SwiftUnicodeSupplement'
/usr/bin/clang -target x86_64-unknown-linux-gnu -fPIC -g -O0 -DSWIFT_PACKAGE=1 -DDEBUG=1 -fblocks -fmodules -fmodule-name=_cUnicodeSupplement -I /Repositories/SwiftUnicodeSupplement/Sources/_cUnicodeSupplement/include -fmodules-cache-path=/root/.yswift-build-linux/x86_64-unknown-linux-gnu/debug/ModuleCache -MD -MT dependencie
# Expected to be used on your own forked repository from 'apple/swift'.
name: CI
on:
push:
branches:
- '**'
tags:
- '!**'
jobs:
test:
@YOCKOW
YOCKOW / Photos-SetLoc.scpt
Last active February 1, 2021 08:13
Workaround for a bug of Photos App about setting location.
(*
Workaround for a bug of Photos App about setting location.
Original thread:
"when I enter a location for a picture, Photos changes it to a different location"
https://discussions.apple.com/thread/251905264
See also:
https://discussions.apple.com/thread/251905264?answerId=254499375022#254499375022
https://discussions.apple.com/thread/251905264?answerId=254501019022#254501019022
@YOCKOW
YOCKOW / swift-package-ci.yml
Last active March 31, 2024 07:35
GitHub Actions' Workflow for Swift Package.
name: CI
on:
push:
branches:
- '**'
tags-ignore:
- '**'
paths:
- '**/*.swift'
- '.github/workflows/*.yml'
.DS_Store
._*
/.build
/Packages
/Package.resolved
/*.xcodeproj
#!/usr/bin/ruby
require 'open-uri'
MANGLING_RST_URI = "https://raw.githubusercontent.com/YOCKOW/swift/following-apple/docs/ABI/Mangling.rst"
open(MANGLING_RST_URI) {|file|
file.each_line {|line|
next if line !~ /^\p{Zs}*([^\p{Zs}]+\p{Zs}::=.+)$/
modified_line = $1
@YOCKOW
YOCKOW / git.config
Last active May 24, 2018 06:40
YOCKOW's Favorite `log` of `git`
alias.graph=log --graph --date-order --all --date=iso --pretty=format:'%C(bold red)%d%C(reset) - %C(yellow)%h%n %C(bold white)%s ---%an%n%C(cyan) %ad'
@YOCKOW
YOCKOW / symbolic-install
Last active November 28, 2022 03:44
Install files symbolically...
#!/usr/bin/env ruby
=begin
sym-install.rb
©︎ 2017, 2022 YOCKOW.
Licensed under MIT License.
=end
@YOCKOW
YOCKOW / TimeSpecification.swift
Last active March 25, 2024 17:41
Get `timespec` in Swift. It is no longer necessary to implement clock_gettime() even on OS X.
/* *** *** *** *** *** *** *** *** *** *** *** *** ***
Now, migrated to GitHub:
https://github.com/YOCKOW/SwiftTimeSpecification
This gist will not be updated.
*** *** *** *** *** *** *** *** *** *** *** *** *** */
/* TimeSpecification.swift
* © 2016 YOCKOW.
* You can do whatever you want with this code AT YOUR OWN RISK.
*/