This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in (seq 100);mkfile -n 3m testfile-3mb-$i;end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local slmb = hs.menubar.new() | |
slmb:setIcon("spotlightremoteicon.png") | |
function cyclespotlight() | |
local spotlightapp = hs.application.get("LogiPresentation") | |
if spotlightapp == nil or spotlightapp == '' then | |
hs.alert.show('Launching Spotlight Remote') | |
hs.application.open('/Library/Application Support/Logitech.localized/Logitech Presentation.localized/Logitech Presentation.app/Contents/MacOS/Logitech Presentation') | |
else | |
hs.alert.show('Killing Spotlight Remote') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ax -d "Make file executable" | |
chmod a+x $argv | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
first:1.2.3.4 | |
second:5.6.7.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Array to store unique public key signatures | |
declare -A public_keys | |
# Loop through auth.log files | |
for file in /var/log/auth.log*; do | |
# Check if file exists and is readable | |
if [ -r "$file" ]; then | |
# Extract public key signatures, timestamps, users, and source IP addresses |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function to check if a command exists | |
command_exists() { | |
type "$1" &> /dev/null ; | |
} | |
check_program_installed() { | |
local program=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I just made changes on lines 10 and 13 and used my ipaddress and it works perfectly. If it isn't working for you, there must be something wrong with the service at 192.168.1.17 | |
import requests | |
def generate_next_message(): | |
url = "http://192.168.1.17:11434/api/chat" | |
# Define the messages in the chat | |
messages = [ | |
{ | |
"role": "system", # I changed this from user to system |
OlderNewer