Skip to content

Instantly share code, notes, and snippets.

View araguaci's full-sized avatar
🌎
coffeeing, praying & coding... 🧭✨

araguaci

🌎
coffeeing, praying & coding... 🧭✨
View GitHub Profile
.css-selector {
    background: linear-gradient(45deg, #eae894, #c6ff9e, #9eb3ff);
    background-size: 600% 600%;
    -webkit-animation: AnimationName 27s ease infinite;
    -moz-animation: AnimationName 27s ease infinite;
    -o-animation: AnimationName 27s ease infinite;
    animation: AnimationName 27s ease infinite;
}
@-webkit-keyframes AnimationName {
    0%{background-position:97% 0%}
@araguaci
araguaci / docker-wsl2-setup-Debian11-WSL2.sh
Last active September 20, 2022 20:46 — forked from Athou/docker-wsl2-setup.sh
install docker in Debian 11/WSL2 without Docker Desktop
# install docker in Debian 11/WSL2
# uses systemd-genie since docker requires systemd but it's not available for WSL
# this is an alternative to Docker Desktop
# prerequisites
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ca-certificates curl wget gnupg lsb-release apt-transport-https
# systemd-genie requires dotnet runtime, add Microsoft repo
atl*CLI> core show help
! -- Execute a shell command
acl show -- Show a named ACL or list all named ACLs
ael reload -- Reload AEL configuration
ael set debug {read|tokens|macros|contexts|off} -- Enable AEL debugging flags
agi dump html -- Dumps a list of AGI commands in HTML format
agi exec -- Add AGI command to a channel in Async AGI
agi set debug [on|off] -- Enable/Disable AGI debugging
agi show commands [topic] -- List AGI commands or specific help
aoc set debug -- enable cli debugging of AOC messages
@araguaci
araguaci / .zshrc
Created August 21, 2022 17:21 — forked from diego3g/.zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/Users/diegofernandes/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"
@araguaci
araguaci / public-stun-list.txt
Created August 16, 2022 02:48 — forked from mondain/public-stun-list.txt
Public STUN server list
23.21.150.121:3478
iphone-stun.strato-iphone.de:3478
numb.viagenie.ca:3478
s1.taraba.net:3478
s2.taraba.net:3478
stun.12connect.com:3478
stun.12voip.com:3478
stun.1und1.de:3478
stun.2talk.co.nz:3478
stun.2talk.com:3478
@araguaci
araguaci / ArchLinuxWSL2.md
Created April 7, 2022 13:16 — forked from ld100/ArchLinuxWSL2.md
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Obsolete notice

This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.
@araguaci
araguaci / findPrime.js
Created March 20, 2022 23:16 — forked from lancejpollard/findPrime.js
AKS + Miller Prime Test Combination in JavaScript
// function binomialCoeff(n, k) {
// if ((k === 0) || (k === n)) {
// return 1n
// } else {
// return binomialCoeff(n - 1n, k - 1n) + binomialCoeff(n - 1n, k)
// }
// }
// function isDivisible(value) {
@araguaci
araguaci / BTree.js
Created March 20, 2022 23:15 — forked from sebastianfdez/BTree.js
FINAL COMPLETE BTREE CLASS
export class BTreeNode {
constructor(isLeaf) {
/**
* @type {number[]} list of values in the node
*/
this.values = [];
/**
* @type {boolean} is a leaf
*/
this.leaf = isLeaf;
const _ = require('lodash')
const actionTree = generateActionTree()
const steps = resolveDependencies(actionTree)
console.log(steps)
function resolveDependencies(cmds) {
const dependencies = fetchDependencies(actionTree)
const steps = chunkIntoSteps(dependencies)
return steps
@araguaci
araguaci / finished.js
Created July 17, 2021 06:12 — forked from adrianhajdin/finished.js
Amazon Scraper API
const express = require('express');
const request = require('request-promise');
const PORT = process.env.PORT || 5000;
const app = express();
app.use(express.json());
const returnScraperApiUrl = (apiKey) => `http://api.scraperapi.com?api_key=${apiKey}&autoparse=true`;