Skip to content

Instantly share code, notes, and snippets.

View PythonCoderAS's full-sized avatar

PythonCoderAS PythonCoderAS

  • New York City
  • 00:12 (UTC -05:00)
View GitHub Profile
#!/usr/bin/env python3
# Note: Do not embed any non-ASCII characters in this file until pip has been
# fixed. See https://github.com/xonsh/xonsh/issues/487.
import os
import subprocess
import sys
from setuptools import setup
from setuptools.command.build_py import build_py
from setuptools.command.develop import develop
HOMEBREW_VERSION: 3.5.2-102-g65e077a
ORIGIN: https://github.com/Homebrew/brew
HEAD: 65e077aac9aaf616a8394f74e4f41be24cb344e0
Last commit: 31 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 02117d348272bad00e9f13cb380a86c456be9c3d
Core tap last commit: 13 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Unknown support status
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
brew livecheck --cask clix --debug
Cask: clix
Livecheckable?: Yes
URL (url): https://rixstep.com/4/0/clix//clix.zip
Strategy: ExtractPlist
==> Extracting primary container
/usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/3.5.2-102-g65e077a\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 11.4\)\ curl/7.64.1 --header Accept-Language:\ en --retry 3 --location --silent --head --request GET https://rixstep.com/4/0/clix//clix.zip
==> Checking quarantine support
@PythonCoderAS
PythonCoderAS / README.md
Created June 16, 2022 21:00
A script to convert my existing manga directories to one compatible with komga

This isn't really going to be useful for anyone else. But if you have a comic/manga collection where every series is stored in a directory that contains directories representing each chapter of the series, and you want to turn those directories into .cbz files, this may be of some use for you.

@PythonCoderAS
PythonCoderAS / publish.yml
Created May 29, 2022 00:25
Github Actions Workflow to auto release to npm whenever a release is created
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Node.js Package
on:
release:
types: [created]
jobs:
@PythonCoderAS
PythonCoderAS / node.js.yml
Last active May 27, 2022 00:38
Super Simple Typescript Github Action For Validating Code #typescript #github actions #node.js
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
@PythonCoderAS
PythonCoderAS / script.sh
Created May 24, 2022 01:54
Homebrew uninstall deleted cask #hombrew #homebrew cask #cask #git
# Go to the homebrew-cask directory
$ cd $(brew --repository)/Library/Taps/homebrew/homebrew-cask/Casks
# Bring up commit logs for the interested cask
$ git log --full-history -- jbidwatcher.rb
# Find the SHA of the last commit where the file was active. This will usually be the second commit on the list,
# where the first one is the commit where the file got deleted.
# For the jbidwatcher cask, this was 1d5f7ef8dd72f236d1edd100448473bec127a1e4
# Restore the file.
$ git checkout 1d5f7ef8dd72f236d1edd100448473bec127a1e4 -- jbidwatcher.rb
# Run your command
public void interleave(ArrayList<Integer> a1, ArrayList<Integer> a2){
Iterator<Integer> it2 = a2.iterator();
int idx = 0;
while (it2.hasNext()){
idx++;
if (idx < a1.size()){
a1.add(idx, it2.next());
} else {
a1.add(it2.next());
}
public void interleave(ArrayList<Integer> a1, ArrayList<Integer> a2){
Iterator<Integer> it2 = a2.iterator();
int idx = 0;
while (it2.hasnext()){
idx++;
if (idx < a1.size()){
a1.add(idx, it2.next());
} else {
a1.add(it2.next());
}