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
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/dotenv@v1.0.1/mod.ts";
import { Application, Context, Router } from "https://deno.land/x/oak/mod.ts";
import userAgent from "https://deno.land/x/user_agent@v0.1.4/mod.ts";
import * as path from "https://deno.land/std@0.146.0/path/mod.ts";
import { Status } from "https://deno.land/x/oak@v12.5.0/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
@oivoodoo
oivoodoo / Dockerfile
Created January 26, 2021 11:13
Python package via Docker environment
FROM python:3.6.6
RUN pip install --upgrade pip && pip install pipenv
WORKDIR /app