Skip to content

Instantly share code, notes, and snippets.

View MaxFangX's full-sized avatar

Max Fang MaxFangX

View GitHub Profile
@MaxFangX
MaxFangX / install_neovim_to_amazonlinux.sh
Last active November 2, 2021 08:53 — forked from kawaz/install_neovim_to_amazonlinux.sh
Install Neovim to Amazon Linux
#!/usr/bin/env bash
sudo yum groups install "Development tools"
# Install cmake 3.10+, yum version 2.8.x is insufficient for neovim
sudo yum remove cmake # Try removing this line if you get "command not found" while compiling neovim
sudo yum install gcc-c++ # Required for cmake
sudo yum install openssl-devel # Required for cmake
(
cd "$(mktemp -d)"
wget https://cmake.org/files/v3.21/cmake-3.21.3.tar.gz
@MaxFangX
MaxFangX / soundCloudPlaylistReverse.js
Last active September 18, 2022 09:56
Script for migrating 'liked' tracks on SoundCloud to new playlists in reverse order
let WAIT_OPEN_PLAYLIST_POPUP = 1000;
let WAIT_AFTER_ADD_PLAYLIST = 1500;
let PLAYLIST_NAME = 'Target';
let addItemToPlaylist = (items, index) => {
if (index < 0) {
console.log("Done with all currently loaded items.");
return;
}
@MaxFangX
MaxFangX / soundCloudPlaylist.js
Last active September 18, 2022 09:58 — forked from AgentRev/soundCloudPlaylist.js
Copy SoundCloud playlist items from one to another, and add user tracks to playlist
let WAIT_OPEN_PLAYLIST_POPUP = 1000;
let WAIT_AFTER_ADD_PLAYLIST = 1500;
let PLAYLIST_NAME = 'Target';
let addItemToPlaylist = (items, index) => {
if (index == items.length) {
console.log("Done with all currently loaded items.");
return;
}
@MaxFangX
MaxFangX / keybase.md
Created June 5, 2017 19:04
Proof of identity for Keybase

Keybase proof

I hereby claim:

  • I am maxfangx on github.
  • I am maxfangx (https://keybase.io/maxfangx) on keybase.
  • I have a public key ASAKXM6hKsRk4jqqBZ-27U3xHqYlHQm6PFwqwP4lCSyCzAo

To claim this, I am signing this object: