Skip to content

Instantly share code, notes, and snippets.

View Alex4386's full-sized avatar
πŸŽ“
μ‘Έμ—…μ‹œμΌœμ€˜

Sanghee Park Alex4386

πŸŽ“
μ‘Έμ—…μ‹œμΌœμ€˜
View GitHub Profile
const fs = require('fs');
const escaped = fs.readFileSync('pushing.escaped.ansi', { encoding: 'utf-8' });
const unescaped = escaped.replace(/\\x1b/g, '\x1b');
fs.writeFileSync('pushing.ansi', unescaped);
@Alex4386
Alex4386 / directory.ts
Created October 20, 2020 11:25
TypeScript (a.k.a. AnyScript) Implementation of Google Drive Navigator
/* eslint-disable @typescript-eslint/camelcase */
import { drive_v3 } from "googleapis";
import { GaxiosResponse } from "gaxios";
import mime from "mime";
import fs, { ReadStream } from "fs";
import File from "./file";
import path from "path";
import { escapeSingleQuotes } from "../util";
class Directory extends File {
@Alex4386
Alex4386 / MacStyleKorEngSwitcher.ahk
Last active October 14, 2020 09:45
AutoHotKey Script for Switching English and Korean IME just like Mac!
CapsLock::
If capslockHeldDown
return
capslockHeldDown := true
capslockTriggeredAction := false
SetTimer, WaitForCapsLockTrigger, 300
return
@Alex4386
Alex4386 / LICENSE
Last active October 11, 2020 19:41 — forked from rithvikvibhu/LICENSE
Get tokens for Google Home Foyer API
MIT License
Copyright (c) 2020 Rithvik Vibhu, Alex4386
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Alex4386
Alex4386 / hate-python.md
Last active January 1, 2021 14:21
Reasons I hate PYTHON. (Includes Jokes)

Why I FURIOUSLY hate Python

This is my version of hate-typescript.md.

Warning: I have only used python for only an year and This definately includes several humors,
So DON'T TAKE THIS THAT SERIOUSLY. I don't want to make a freak'in programming language war or something

Abstract

Python is powerful doesn't scale and fast slow without extensions and precompiling;
plays well bad during collaborative programming with others;
runs everywhere everywhere except your dependency modules;

@Alex4386
Alex4386 / wa.ssss
Created July 9, 2020 15:30
와ㅏㅏㅏㅏㅏ
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/alex4386/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@Alex4386
Alex4386 / apply_to_idrac.bat
Last active March 15, 2024 08:49
iDRAC 6 SSL Certificate Deploy Tool - with certbot
@echo off
echo Dell iDRAC 6 SSL Key upload system
echo.
echo ===[credentials]===
set default_hostname=your.idrac.address
rem Host Section
set /p host="Host (Default. %default_hostname%): "
IF NOT DEFINED host (
function isSorted(a) {
for (let i = 0; i < a.length - 1; i++) {
if (a[i] > a[i+1]) return false;
}
return true;
}
function bogoSort(a) {
while (!isSorted(a)) {
a.sort(() => Math.random() - 0.5);
@Alex4386
Alex4386 / emergency-escape.sh
Created February 17, 2020 04:03
κΈ΄κΈ‰νƒˆμΆœ ν”„λ‘œν† μ½œ
#!/bin/bash
mkdir ~/.escape
echo "μ•ˆλ…•νžˆ κ³„μ„Έμš” μ—¬λŸ¬λΆ„" > ~/.escape/msg.txt
echo "μ €λŠ” 이 세상 λͺ¨λ“  κ΅΄λ ˆμ™€ 속박을 λ²—μ–΄λ˜μ§€κ³ " >> ~/.escape/msg.txt
echo "제 행볡을 μ°Ύμ•„ λ– λ‚©λ‹ˆλ‹€" >> ~/.escape/msg.txt
echo " " >> ~/.escape/msg.txt
echo "μ—¬λŸ¬λΆ„λ„ ν–‰λ³΅ν•˜μ„Έμš”~" >> ~/.escape/msg.txt
cat ~/.escape/msg.txt | wall
@Alex4386
Alex4386 / crossover-howtocompile.md
Last active April 23, 2026 14:26
CodeWeavers CrossOver - How to compile from source! for macOS

[STOP] This gist is deprecated.

TL;DR

WAY MORE UP-TO-DATE GIST (and includes some setup stuff that I forgot to document): https://gist.github.com/sarimarton/471e9ff8046cc746f6ecb8340f942647
Current Development for Building Libre-version of CrossOver: https://github.com/GabLeRoux/macos-crossover-cloud-build.
For Latest Discussions: https://github.com/GabLeRoux/macos-crossover-cloud-build/issues.

Long Description

This version of gist is outdated since it was written while I was compiling CrossOver v19. and seems to be there are some breaking changes in v19.1+ and 20. Also, I think I missed some required libraries/stub files that was required in build (that I previously installed beforehand). Oops.