Skip to content

Instantly share code, notes, and snippets.

@LordOkami
LordOkami / swap_app.ahk
Created December 20, 2022 13:40
Change same app window in windows
!º::
WinGetClass, OldClass, A
WinGet, ActiveProcessName, ProcessName, A
WinGet, WinClassCount, Count, ahk_exe %ActiveProcessName%
IF WinClassCount = 1
Return
loop, 2 {
WinSet, Bottom,, A
WinActivate, ahk_exe %ActiveProcessName%
WinGetClass, NewClass, A
@LordOkami
LordOkami / instructions.md
Created March 18, 2021 16:17 — forked from marteinn/instructions.md
This is a Phoenix + React-Create-App integration with very small footprint
  1. Begin with scaffolding a create-react-app, then update your package.json build script (replace DIR_TO_PHX_APP with the path to your phoenix app)
"build": "react-scripts build && rm -rf DIR_TO_PHX_APP/priv/static/build && mv build DIR_TO_PHX_APP/priv/static/build",

This will move your prod build files to DIR_TO_PHX_APP/priv/static/build on build

  1. Run npm run build
@LordOkami
LordOkami / install-elixir.sh
Last active June 24, 2020 09:07
Install Elixir
#!/bin/bash
sudo apt install build-essential automake autoconf git squashfs-tools ssh-askpass pkg-config curl
sudo apt-get install libssl-dev libncurses5-dev
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.7.1
# The following steps are for bash. If you’re using something else, do the
# equivalent for your shell.
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc
@LordOkami
LordOkami / LevelComponent.cs
Created March 9, 2020 18:28
Unity ECS - CodeMonkey 01
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Unity.Entities;
public struct LevelComponent : IComponentData
{
public float level;
}
@LordOkami
LordOkami / .env
Last active February 26, 2020 21:25
Deezer Music downloader
COMPOSE_CONVERT_WINDOWS_PATHS=1
@LordOkami
LordOkami / export_google_starred_locations.py
Created February 4, 2020 20:20 — forked from endolith/export_google_starred_locations.py
Export Google Maps starred locations
# -*- coding: utf-8 -*-
"""
Go to Google Bookmarks: https://www.google.com/bookmarks/
On the bottom left, click "Export bookmarks": https://www.google.com/bookmarks/bookmarks.html?hl=en
After downloading the html file, run this script on it to generate a KML.
"""
curl -s https://[USER_TOKEN_ID]:@api.github.com/orgs/[ORGANIZATION]/repos\?per_page\=200 | jq ".[].ssh_url" | xargs -n 1 git clone --recursive
@LordOkami
LordOkami / cloudSettings
Last active November 30, 2020 11:19
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-11-30T11:19:15.931Z","extensionVersion":"v3.4.3"}
@LordOkami
LordOkami / export_google_music.js
Created June 18, 2018 09:02 — forked from dcalacci/export_google_music.js
Export your Google Music Library and Playlists (Google Play Music All Access) (see http://webapps.stackexchange.com/questions/50311/print-playlist-from-google-play-music for more)
// Jeremie Miserez <jeremie@miserez.org>, 2015
//
// A little bit of Javascript to let you export your Google Music library, playlists, and album track lists :)
//
// I posted this as an answer here: http://webapps.stackexchange.com/questions/50311/print-playlist-from-google-play-music
//
// 1. Go to: https://play.google.com/music/listen#/all (or your playlist)
//
// 2. Open a developer console (F12 for Chrome). Paste
// code below into the console.