#Hello Edgerunners, welcome to the Night-City.

Welcome!

Sed Examples

We use sed to work with text files like log files, configuration files, and other text files. In this post, we are going to focus on the sed Linux command, which is used for text manipulation, which is an essential step in our bash scripting journey. Linux system provides some tools for text proce...

Awk Examples

Sometimes you need something powerful, giving you more control to process data. This is where awk command comes in. The awk command or GNU awk in specific provides a scripting language for text processing. With awk scripting language, you can make the following: Define variables. Use string and...

Whiptail Cheatsheet

Whiptail is a program that allows shell scripts to display dialog boxes to the user for informational purposes, or to get input from the user in a friendly way. Whiptail is included by default on Debian. From the Linux Dictionary: whiptail is a "dialog" replacement using newt instead of ncurses. Fr...

Swift: Codable not decoding properties with subclasses

In this code, the groceries properties is not deserialised from JSON. The name property is, but not the groceries one. import Foundation let json = """ { "name": "wow", "groceries": [ { "name": "Banana", "poin...

Remove all macOS generated invisible files

Remove all macOS generated invisible files in current folder: both .DS_Store and ._XXXX files. find . -type f -name ".DS_Store" -print -exec rm -f {} \; find . -type f -name "._*" -print -exec rm -f {} \; ...

RSYNC Cheatsheet

Commands Description rsync /path/to/file.ext /path/to/dest 简单的复制文件 file.ext 到 /path/to/dest 目录中 rsync -n /path/to/file.ext /path/to/dest 演习模式:简单的复制文件 file.ext 到 /path/to/dest 目录中 -n: 演习、排练,并不会进行真实的操作 rsync --size-only /path/to/file.ext /path/to/dest 简单的复制文件 fi...

Tkinter Cheatsheet

Hello World We always need to follow two steps no matter how big the application is, there is always two steps. initialize the widget and shove it on the screen that it. from tkinter import Tk,\ Label #initializing tkinter application root = Tk() # Creating label widget myLabel = Label(root, tex...

CSS Selectors Cheatsheet

Selector Example Example description .class .intro Selects all elements with class="intro" .class1.class2 .name1.name2 Selects all elements with both name1 and name2 set within its class attribute .class1 .class2 .name1 .name2 Selects all elements with name2 that is a de...

Swift: Return instancetype

To return instancetype in Swift, you can define a generic helper method which infers the type of self from the calling context: public extension UIViewController { // Call this public class func instance(storyboard sbname: String, bundle: Bundle? = nil, identifier: String?) -> Self { ...

CocoaPods: Encountered an unknown error (Pod::DSLError) during validation

在发布到 CocoaPods 是如果遇到下面的问题: Validating podspec -> UIMessageBar (1.0.0) - ERROR | [iOS] unknown: Encountered an unknown error (Pod::DSLError) during validation. [!] The spec did not pass validation, due to 1 error. 可以尝试修改 .podspec 文件中类似这样的配置: spec.source_files = 'UIMessageBar/**/*&#...

What's this?

The Night-City version of CaveOps inspired by Cyberpunk 2077. Not finished yet.

Pinned Message

The Founder and CEO of Infeca Technology.

Developer, Designer, Blogger.

Big fan of Apple, Love of colour.

Feel free to contact me.

反曲点科技创始人和首席执行官。

开发、设计与写作皆为所长。

热爱苹果、钟情色彩。

随时恭候 垂询

Outer Square Inner Square