Skip to content

Instantly share code, notes, and snippets.

@Tmn07
Tmn07 / fp.py
Last active May 11, 2023 06:30
懒人压制脚本-linux平台
#!/usr/bin/env python3
import subprocess
import json
import argparse
from os import listdir
filename = "ML2nd-day1-2.mp4"
@atereshkov
atereshkov / xcode-duplicate-line.md
Last active September 5, 2022 07:49
Xcode 13 duplicate line shortcut (hotkey)

Xcode 13 duplicate line shortcut

  1. Run
sudo chmod 666 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources//IDETextKeyBindingSet.plist
sudo chmod 777 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
# Source: https://gist.github.com/a5870806ae6f21de271bf9214e523b53
##################
# Create Cluster #
##################
minikube start --memory 6g --cpus 4
#################
# Install Istio #
@ctkjose
ctkjose / readme.md
Last active March 15, 2024 14:10 — forked from WebReflection/jsc
JavaScriptCore for macOS and Linux

JSC

JSC is the JavaScript engine from Apple's JavaScriptCore (WebKit) as a console application that you can use to run script in the terminal.

For more info visit the JSC's webkit wiki page.

Adding a shortcut to JSC

Using jsc is simple, the one issue is that Apple keeps changing the location for jsc. To deal with this issue I just create a symbolic link to the binary:

@Tmn07
Tmn07 / 剪辑视频.md
Last active April 4, 2024 18:41
ffmpeg指令与剪辑视频相关的姿势

从零开始的程序员剪辑视频(误)

更佳markdown渲染样式,推荐使用PC web端阅读,查看原文,地址:https://git.io/fhSBj 代码地址:https://github.com/qq519043202/lrc2srt

一个懒惰却在某些方面爱折腾的程序员开始剪辑视频,不想安装任何大型编辑软件(我的破surface也带不动的感觉)

本文不适合:想要正经学习视频编辑的萌新,右转去学一些大型的编辑软件的使用吧~

本文适合:有计算机背景或爱折腾的视频剪辑萌新,要尝试鄙人的lrc转srt脚本或歌词获取脚本的旁友,不愿意装大型软件的视频萌新(?)

@norsez
norsez / JSONSaveLoad.swift
Created May 7, 2018 04:47
Load and Save JSON objects into a local file (written in Swift)
import Foundation
/**
Extension to save/load a JSON object by filename. (".json" extension is assumed and automatically added.)
*/
extension JSONSerialization {
static func loadJSON(withFilename filename: String) throws -> Any? {
let fm = FileManager.default
@steven2358
steven2358 / ffmpeg.md
Last active May 10, 2024 20:57
FFmpeg cheat sheet
@higuma
higuma / mnist.go
Last active August 25, 2021 00:48
MNIST database reader with Golang
// MNIST database reader
// http://yann.lecun.com/exdb/mnist/
package mnist
import (
"fmt"
"os"
"path/filepath"
)
@gwpantazes
gwpantazes / How to Install JDK MacOS Homebrew.md
Last active May 18, 2024 14:43
How to install different JDK versions on MacOS with Homebrew

How To Install Different JDK Versions on MacOS with Homebrew

Keywords: Java, JDK (Java Development Kit), MacOS, Homebrew, Specific Version

This how-to guide covers how to install different versions of the JDK on MacOS with Homebrew.

Table of Contents