Skip to content

Instantly share code, notes, and snippets.

View thuliumsystems's full-sized avatar

Thulium Inc thuliumsystems

View GitHub Profile
@thuliumsystems
thuliumsystems / R1
Created December 8, 2025 16:32
CyS+
enable
configure terminal
hostname R1
no ip domain-lookup
ip cef
!
interface ethernet0/0
description LINK-DEBIAN
ip address 191.168.0.2 255.255.255.252
ip nat outside
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import { NextApiRequest, NextApiResponse } from 'next';
import ical, { ICalEventStatus } from 'ical-generator';
const iCal = async (req: NextApiRequest, res: NextApiResponse) => {
const calendar = ical({
name: 'my first iCal',
prodId: '//cia//inc//EN',
url: 'site.com'
});
from sklearn.model_selection import train_test_split
from sklearn.metrics import roc_curve, roc_auc_score
import matplotlib.pyplot as plt
from sklearn.preprocessing import StandardScaler
from sklearn.tree import DecisionTreeClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.ensemble import (RandomForestClassifier)
training = [
[10, 10, 21, 3, 4, 1, 1, 0, 1, 0, 1],
from sklearn.tree import DecisionTreeClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.ensemble import (
RandomForestClassifier,
AdaBoostClassifier,
GradientBoostingClassifier,
)
from sklearn.preprocessing import StandardScaler
from sklearn.naive_bayes import GaussianNB
from sklearn.neighbors import KNeighborsClassifier
FROM debian:latest
RUN apt update -y
RUN apt install net-tools curl -y
//pegar apenas o id do caparelho
this.oneSignal.startInit('one signal id', 'google id').endInit();
const { userId } = await this.oneSignal.getIds()
//fazer algo quando o push é recebido e quando é aberto
this.oneSignal.startInit('', '')
.handleNotificationReceived(() => {})
.handleNotificationOpened(() => {})
.endInit();
@thuliumsystems
thuliumsystems / build phases
Created November 9, 2021 22:06
Error: "The sandbox is not in sync with the Podfile.lock..." after installing RestKit with cocoapods
diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null
to
diff "${SRCROOT}/Podfile.lock" "${SRCROOT}/Pods/Manifest.lock" > /dev/null
@thuliumsystems
thuliumsystems / arquivo.html
Last active October 15, 2021 15:46
ion searchbar
<ion-searchbar placeholder="Pesquisar..." showCancelButton="focus" [(ngModel)]="filterHouse"></ion-searchbar>
<ion-item *ngFor="let h of houses | filter:filterHouse">