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
@mondain
mondain / public-stun-list.txt
Last active November 24, 2024 10:49
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
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
@diego3g
diego3g / NODE.md
Last active November 26, 2024 17:24
VSCode Settings (Updated)

⚠️ Note!

With VSCode version 1.94, the APC extension broke and there is no fix yet.

So, for those having issues with APC after the VSCode update, I recommend downloading the previous version of VSCode for now (https://code.visualstudio.com/updates/v1_93) and setting updates to manual by adding this to the editor's configuration:

"update.mode": "manual",
@sebastianfdez
sebastianfdez / BTree.js
Last active May 18, 2024 06:33
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;
@ld100
ld100 / ArchLinuxWSL2.md
Last active November 23, 2024 10:10
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.
@eizedev
eizedev / treestyletab.css
Created June 11, 2021 10:20
Firefox Tree Style Tab CSS - Collapsible
/* Hide border on tab bar, force its state to 'scroll', adjust margin-left for width of scrollbar.
#tabbar {
border: 0;
overflow-y: scroll !important;
margin-left: -18px !important;
}
*/
/* Hide .twisty and adjust margins so favicons have 7px on left. */
.tab .twisty {
import { createContext, ReactNode, useEffect, useState } from 'react'
type Theme = 'light' | 'dark';
type ThemeContextProviderProps = {
children: ReactNode;
}
type ThemeContextType = {
theme: Theme;
@adrianhajdin
adrianhajdin / finished.js
Created July 9, 2021 08:21
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`;
@lancejpollard
lancejpollard / findPrime.js
Created January 12, 2022 15:35
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) {
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