Skip to content

Instantly share code, notes, and snippets.

View oivoodoo's full-sized avatar
🏠
Working from home

Alex oivoodoo

🏠
Working from home
View GitHub Profile
apt update
apt install -y curl
curl -fsSLo /usr/share/keyrings/rise-tiaas.gpg http://client.rise-tiaas.de/update-tiaas-pu/apt-repo/rise-tiaas.gpg
echo "deb [signed-by=/usr/share/keyrings/rise-tiaas.gpg] http://client.rise-tiaas.de/update-tiaas-pu/apt-repo/ stable main" > /etc/apt/sources.list.d/rise-tiaas.list
apt update
apt search tiaas
apt install -y rise-tiaas-client
use std::env;
use std::error::Error;
use std::fs::File;
use std::io::{BufRead, BufReader, BufWriter, Write};
use std::sync::{Arc, Mutex};
use rayon::prelude::*;
use regex::Regex;
fn delete_lines(input_file: &str, output_file: &str, pattern: &str) -> Result<(), Box<dyn Error>> {
let input = File::open(input_file)?;
@oivoodoo
oivoodoo / deeplinking.ts
Created November 7, 2023 16:11
deno example to verify and deep link
// Follow this setup guide to integrate the Deno language server with your editor:
// https://deno.land/manual/getting_started/setup_your_environment
// This enables autocomplete, go to definition, etc.
import { config } from "https://deno.land/x/[email protected]/mod.ts";
import { Application, Context, Router } from "https://deno.land/x/oak/mod.ts";
import userAgent from "https://deno.land/x/[email protected]/mod.ts";
import * as path from "https://deno.land/[email protected]/path/mod.ts";
import { Status } from "https://deno.land/x/[email protected]/deps.ts";
import { appStore, googlePlay } from "./linking.ts";
@oivoodoo
oivoodoo / .tmux.conf
Created December 18, 2022 21:49
.tmux.conf
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'jatap/tmux-base16-statusline'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @plugin 'thewtex/tmux-mem-cpu-load'
set-window-option -g mode-keys vi
@oivoodoo
oivoodoo / paytriots.rb
Created August 2, 2022 07:51
paytriot.co.uk payment gateway example
require "ostruct"
require 'digest'
require 'faraday'
module Payments
class Paytriots
# Environment variables
#
ekx/samples/sample-1-app master ✗ 6d ⚑ ✚ ◒
▶ yarn run build:web
yarn run v1.21.1
$ ekx web clean --verbose
🔔 📺 EKX 📺
🔔 🗑 Remove EXPORT directory /Users/akorsak/projects/balconygames/c/ekx/samples/sample-1-app/export
🔔 Build Before
🔔 Build Main
🔔 Build After
🔔 Do project variables setup..
defmodule YourApp.Proxy.Application do
@moduledoc false
use Application
alias Phoenix.LiveReloader.Socket, as: LiveReloadSocket
require Logger
def start(_type, _args) do
import Supervisor.Spec, warn: false
@oivoodoo
oivoodoo / proxy_example.ex
Created June 7, 2021 10:28
proxy_example.ex
defmodule EyelevelEx.Proxy.Application do
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
opts = [strategy: :one_for_one, name: EyelevelEx.Proxy.Supervisor]
Supervisor.start_link(children(Mix.env()), opts)
end
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'jatap/tmux-base16-statusline'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @plugin 'thewtex/tmux-mem-cpu-load'
set-window-option -g mode-keys vi
# Colors (Solarized Dark)
colors:
# Default colors
primary:
background: '#002b36' # base03
foreground: '#839496' # base0
# Cursor colors
cursor:
text: '#002b36' # base03