Skip to content

Instantly share code, notes, and snippets.

View SaidTorres3's full-sized avatar
🇲🇽

SaidTorres3 SaidTorres3

🇲🇽
View GitHub Profile
@SaidTorres3
SaidTorres3 / syncthing.sh
Last active May 14, 2024 21:38
syncthing
# Add Syncthing repository
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
echo "deb https://apt.syncthing.net/ syncthing release" | sudo tee /etc/apt/sources.list.d/syncthing.list
# Install Syncthing
sudo apt-get update
sudo apt-get install syncthing
sudo su
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
# (Before docker install) free -h
# total used free shared buff/cache available
# Mem: 1.9Gi 201Mi 263Mi 1.0Mi 1.5Gi 1.6Gi
# Swap: 0B 0B 0B
# (After docker install) free -h
# total used free shared buff/cache available
# Mem: 1.9Gi 263Mi 154Mi 1.0Mi 1.5Gi 1.5Gi

Level 1: Foundational Mathematics (1-3 months)

Algebra

Equations and Inequalities

  • Linear equations and systems of linear equations
  • Quadratic equations and formulas
  • Inequalities and systems of inequalities

Functions

  • Domain and range
  • Composition and inverse functions
import mysql.connector
def update_column_encoding(host, user, password, database):
try:
conn = mysql.connector.connect(host=host, user=user, password=password, database=database, buffered=True)
cursor = conn.cursor()
query = """
SELECT TABLE_NAME, COLUMN_NAME
FROM information_schema.COLUMNS
@SaidTorres3
SaidTorres3 / vendor.min.js
Last active November 6, 2023 17:43
vendor.min.js
/*!
* pace.js v1.2.4
* https://github.com/CodeByZach/pace/
* Licensed MIT © HubSpot, Inc.
*/
(function () { function t(t, e) { return function () { return t.apply(e, arguments) } } var e, i, n, s, o, r, a, l, h, c, u, d, p, f, g, m, v, _, b, y, w, x, k, C, T, D, S, A, E, I, P, M, O, H, L, N, W, R, z, j, F, q, Y, B, X, $, U = [].slice, K = {}.hasOwnProperty, V = function (t, e) { for (var i in e) K.call(e, i) && (t[i] = e[i]); function n() { this.constructor = t } return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, G = [].indexOf || function (t) { for (var e = 0, i = this.length; e < i; e++)if (e in this && this[e] === t) return e; return -1 }; function Q() { } for (_ = { className: "", catchupTime: 100, initialRate: .03, minTime: 250, ghostTime: 100, maxProgressPerFrame: 20, easeFactor: 1.25, startOnPageLoad: !0, restartOnPushState: !0, restartOnRequestAfter: 500, target: "body", elements: { checkInterval: 100, selectors: ["body"] }, eventLag: { minSamples: 10, sampleCo
# Update and upgrade
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install software-properties-common ca-certificates apt-transport-https gnupg curl tmux
# Install java
curl https://apt.corretto.aws/corretto.key | sudo apt-key add -
sudo add-apt-repository 'deb https://apt.corretto.aws stable main'
mkdir mc-server
cd mc-server
@SaidTorres3
SaidTorres3 / create-media-server.sh
Last active May 17, 2023 18:24
Create a media server
# bin/bash
# Run this in the user home
sudo apt-get update
# sudo apt-get upgrade
sudo apt install tmux
sudo apt install nodejs npm -y
sudo npm i -g http-server
@SaidTorres3
SaidTorres3 / openvpn1.sh
Last active January 19, 2023 03:44
Create OpenVPN Server Bash Script
#!/bin/bash
# Install OpenVPN and Easy-RSA
sudo apt-get update
sudo apt-get install openvpn easy-rsa -y
# Create the OpenVPN directory structure
sudo mkdir /etc/openvpn/easy-rsa/
sudo cp -r /usr/share/easy-rsa/* /etc/openvpn/easy-rsa/
import time
import sched
import pillow_heif
import os
from PIL import Image
path = "C:\\Users\\JURIDICO 4\\Documents\\Code\\Otros\\hotel\\images"
# path = "C:\\Users\\JURIDICO 4\\Documents\\Tasks\\elexpt"
def getFilesRecursive(path):
@SaidTorres3
SaidTorres3 / gist:2d8e9dda06cb4db9e971721f64364782
Last active May 18, 2022 22:24
Pendientes sistema notarial 2.0
Alta prioridad:
- Poder anular folios.
Prioridad normal-baja:
- En orden, EDC, arreglar la leyenda «Saldo Efectivo : - $45,000.00, Transferencia : -$3,000.00»
UX: