Skip to content

Instantly share code, notes, and snippets.

View juliancruzsanchez's full-sized avatar

Julian Cruz Sanchez juliancruzsanchez

View GitHub Profile
@juliancruzsanchez
juliancruzsanchez / secure_ssh.sh
Last active December 28, 2024 12:10
Disable SSH Password Programtically
#!/bin/bash
# Prompt the user for remote host information
read -p "Enter remote username: " remote_username
read -sp "Enter remote password: " remote_password
echo
read -p "Enter remote hostname or IP address: " remote_host
# Generate a random filename for the key pair
random_id=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
@juliancruzsanchez
juliancruzsanchez / zerotier_auto_ssh_config.sh
Last active December 28, 2024 12:23
Gets ZeroTier IP and sets it as the only host able to access SSH
#!/bin/bash
# Make sure you've already setup ZeroTier or this will kick you out
ZTIP=$(ip -4 -o addr show | awk '$2 ~ /^zt*/ {print $2, $4}' | cut -f2 -d' ' | cut -f1 -d'/')
# Check if ZTIP has a value
if [[ -z "$ZTIP" ]]; then
echo "Error: ZeroTier IP address not found. Make sure ZeroTier is installed and running."
exit 1
<div class="center-div p-10">
<div class="card bg-white w-96 shadow-lg">
<figure><img src="https://churchofjesuschristtemples.org/assets/img/temples/fort-collins-colorado-temple/fort-collins-colorado-temple-3329.jpg" alt="car!"></figure>
<div class="card-body text-black">
<h2 class="card-title">Fort Collins, CO Temple <div class="badge badge-accent">42k sq. ft.</div>
</h2>
<p>On April 2, 2011, President Thomas S. Monson announced Fort Collins as the location of Colorado's second temple. There are approximately 140,000 members in the state. The first congregation of the Church in Colorado was organized in January 1897.</p>
<div class="card-actions justify-end">
<a href="http://churchofjesuschristtemples.org/fort-collins-colorado-temple/" class="btn btn-accent">Learn now!</a>
</div>
.center-div {
display: flex;
flex-wrap: wrap;
text-align: center;
align-items: center;
justify-content: center;
}
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}"
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0/aio/deploy/recommended.yaml
<iframe src="http://myblueraven.com/"></iframe>
$t = '[DllImport("user32.dll")] public static extern bool ShowWindow(int handle, int state);'
add-type -name win -member $t -namespace native
[native.win]::ShowWindow(([System.Diagnostics.Process]::GetCurrentProcess() | Get-Process).MainWindowHandle, 0)
cd C:\
if ([string]::IsNullOrEmpty((Get-PnpDevice | Where-Object {$_.name -match "HID-compliant touch pad" } | Where-Object {$_.instanceId -match "HID\\VID" } | Where-Object {$_.status -match "OK" }))) {
if ((Get-ItemProperty -path 'HKLM:\System\CurrentControlSet\Control\PriorityControl' -Name 'ConvertibleSlateMode').ConvertibleSlateMode -eq 1) {
Set-ItemProperty -path 'HKLM:\System\CurrentControlSet\Control\PriorityControl' -Name 'ConvertibleSlateMode' -value 0
}
This file has been truncated, but you can view the full file.
window.prefixes = {
"137DA833":"T",
"137DA843":"T",
"137DA893":"T",
"137DA903":"T",
"137FA833":"3",
"137FA833":"4",
"137FA833":"5",
"137FA843":"1",
"137FA843":"2",