echo "service iptables restart"| at now + 2 min
iptables --flush
### Drop invalid packets ###
iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP
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
#!/usr/bin/env bash | |
# Script to create an Ollama model with a custom context window size | |
# Usage: ./create_context_model.sh <source_model> <context_size_in_k> | |
# Example: ./create_context_model.sh qwen2.5-coder:14b 32 | |
set -e | |
# Check if Ollama is installed | |
if ! command -v ollama &> /dev/null; then | |
echo "Error: Ollama is not installed or not in PATH" |
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
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup" /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1 /f | |
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig" /v BypassTPMCheck /t REG_DWORD /d 1 /f | |
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig" /v BypassSecureBootCheck /t REG_DWORD /d 1 /f | |
:: Download Windows 11 ISO using curl (run in PowerShell or Command Prompt) | |
curl -L -o Win11.iso "https://software-download.microsoft.com/download/sg/444969d5-f34g-4e03-ac9d-1f9786c69161/202111191455.0_x64.iso" | |
:: Mount the ISO | |
powershell -command "Mount-DiskImage -ImagePath (Join-Path $pwd 'Win11.iso')" |
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
ATTENDIZE_DEV=false | |
ATTENDIZE_CLOUD=false | |
APP_NAME=Attendize | |
APP_ENV=local | |
APP_DEBUG=true | |
APP_URL=https://localhost:8043 | |
LOG_CHANNEL=stack |
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 | |
# Start all needed gource instances and connect them | |
# to a named pipe. | |
repo="misc" | |
mkfifo ./tmp/${repo}.pipe | |
title=$repo | |
# Set out video title. | |
title="ACME Software Development." |
I hereby claim:
- I am jamesbrink on github.
- I am jamesbrink (https://keybase.io/jamesbrink) on keybase.
- I have a public key ASCSmjflUWTdTg_CR_lxTsCAtWgUcv2u_VOW-5WxIB5qyAo
To claim this, I am signing this object:
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
#!/usr/bin/env bash | |
hexdump -vn3 -e '/3 "52:54:00"' -e '/1 ":%02x"' -e '"\n"' /dev/urandom |
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
FROM golang:1.11.5-alpine3.9 | |
ARG IPFS_VERSION="v0.4.18" | |
ARG IPFS_CLUSTER_VERSION="v0.8.0" | |
ARG IPFS_WEBUI_VERSION="v2.3.3" | |
ARG IPFS_SRC_DIR="/go/src/github.com/ipfs" | |
# Build IPFS & IPFS Cluster from source. | |
WORKDIR ${IPFS_SRC_DIR} |
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
From b0a9156259c1ff9f1a0d42a86e08250e37248a0b Mon Sep 17 00:00:00 2001 | |
From: James Brink <[email protected]> | |
Date: Thu, 27 Dec 2018 04:50:56 -0700 | |
Subject: [PATCH] Updated output_files function to prevent segfault. | |
I have updated the output_files function in patch.c to gracefully | |
handle the following scenario. | |
Given a git style patch like the following. |
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
#!/usr/bin/env bash | |
BASE_PATH="https://yourgitlab.server/" | |
GROUP_OUTPUT="{ \"group_name\": .full_path, \"group_id\": .id }" | |
PROJECT_OUTPUT="{ \"project_name\": .path, \"project_url\": .ssh_url_to_repo }" | |
if [ -z "$GITLAB_PRIVATE_TOKEN" ]; then | |
echo "Please set the environment variable GITLAB_PRIVATE_TOKEN" | |
echo "See ${BASE_PATH}profile/account" | |
exit 1 | |
fi | |
gitlab_groups=$(curl -s "${BASE_PATH}api/v4/groups?private_token=$GITLAB_PRIVATE_TOKEN&per_page=9999" | jq --raw-output --compact-output ".[] | $GROUP_OUTPUT") |
NewerOlder