Skip to content

Instantly share code, notes, and snippets.

@allenwyma
allenwyma / Install⁄Update Xone
Created March 3, 2023 03:36 — forked from cdleveille/Install⁄Update Xone
Install or update xone driver for Steam Deck (desktop shortcut and bash script)
[Desktop Entry]
Comment[en_US]=
Comment=
Exec=bash $HOME/xone_install_or_update.sh
GenericName[en_US]=
GenericName=
Icon=preferences-desktop-gaming
MimeType=
Name[en_US]=Install⁄Update Xone
Name=Install⁄Update Xone
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link href="style.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<div class="container">
<div class="row">
@allenwyma
allenwyma / my page
Created August 3, 2019 03:48 — forked from Queenie2091/my page
my page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
@allenwyma
allenwyma / answer.js
Created June 26, 2019 05:31
EventsXtra Test
const MEMO_STORAGE_KEY = 'memoItems';
const uiDivId = 'memo-items-list';
const uiDiv = document.getElementById(uiDivId);
const textbox = document.getElementById('memo-textbox');
const appendMemo = (text) => {
const memoItem = document.createElement('p');
const number = document.querySelectorAll(`#${uiDivId} p`).length + 1;
memoItem.innerHTML = `${number}. ${text}`;
uiDiv.appendChild(memoItem);
@allenwyma
allenwyma / YouTubeURLFormats.txt
Created May 22, 2019 05:31 — forked from rodrigoborgesdeoliveira/ActiveYouTubeURLFormats.txt
Example of the various YouTube url formats
http://www.youtube.com/watch?v=-wtIMTCHWuI
http://www.youtube.com/v/-wtIMTCHWuI?version=3&autohide=1
http://youtu.be/-wtIMTCHWuI
http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch?v%3D-wtIMTCHWuI&format=json
http://www.youtube.com/attribution_link?a=JdfC0C9V6ZI&u=%2Fwatch%3Fv%3DEhxJLojIE_o%26feature%3Dshare
@allenwyma
allenwyma / config
Created April 20, 2019 08:09
Elixir eDeliver with Nginx Proxy Pass
APP="" # app name
BUILD_HOST="" # IP Address or hostname of build server
BUILD_USER="" # ssh user for build server
BUILD_AT="/tmp/edeliver/app/builds"
STAGING_HOSTS="" # IP Address or hostname of staging server
STAGING_USER="" # ssh user for build server
DELIVER_TO="" # where you want to deploy the app to

Elixir installation guide

Version numbers should be the ones you want. Here I do it with the last ones available at the moment of writing.

Anyway, if you intend to work with several versions of erlang or elixir at the same time, or you are tied to a specific version, you will need to compile it yourself. Then asdf is your best friend.

Make sure XCode tools are installed

@allenwyma
allenwyma / install_elixir.md
Last active December 15, 2020 15:23 — forked from rubencaro/install_elixir.md
Elixir installation guide

Elixir installation guide

Version numbers should be the ones you want. Here I do it with the last ones available at the moment of writing.

The simplest way to install elixir is using your package manager. Sadly, at the time of writing only Fedora shows the intention to keep its packages up to date. There you can simply sudo dnf install erlang elixir and you are good to go.

Anyway, if you intend to work with several versions of erlang or elixir at the same time, or you are tied to a specific version, you will need to compile it yourself. Then asdf is your best friend.

---
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
@allenwyma
allenwyma / observer.md
Created June 14, 2017 15:18 — forked from pnc/observer.md
Using Erlang observer/appmon remotely

Using OTP's observer (appmon replacement) remotely

$ ssh remote-host "epmd -names"
epmd: up and running on port 4369 with data:
name some_node at port 58769

Note the running on port for epmd itself and the port of the node you're interested in debugging. Reconnect to the remote host with these ports forwarded:

$ ssh -L 4369:localhost:4369 -L 58769:localhost:58769 remote-host