Skip to content

Instantly share code, notes, and snippets.

View hjhgitw's full-sized avatar

Hansjoerg Hofer hjhgitw

  • NDA
  • Italy :)
  • 17:52 (UTC +01:00)
View GitHub Profile
@hjhgitw
hjhgitw / README.md
Created July 21, 2024 15:15 — forked from ctsrc/README.md
Guide: Run FreeBSD 13.1-RELEASE for ARM64 in QEMU on Apple Silicon Mac (MacBook Pro M1, etc) with HVF acceleration (Hypervisor.framework)
🌟 Check out how buying an Apple Mac Mini can help save the planet! 🌟
🌳 50% of the proceeds go to Woodland Trust and Trees for the Future. 🌍❤️
Read more: [Medium Article Link]
#MacMiniForCharity #Apple #ForSale #Charity
🔗 eBay Listing: [https://www.ebay.de/itm/335480094816](https://www.ebay.de/itm/335480094816)
@hjhgitw
hjhgitw / llama-7b-m1.md
Created July 2, 2024 17:20 — forked from cedrickchee/llama-7b-m1.md
4 Steps in Running LLaMA-7B on a M1 MacBook with `llama.cpp`

4 Steps in Running LLaMA-7B on a M1 MacBook

The large language models usability

The problem with large language models is that you can’t run these locally on your laptop. Thanks to Georgi Gerganov and his llama.cpp project, it is now possible to run Meta’s LLaMA on a single computer without a dedicated GPU.

Running LLaMA

There are multiple steps involved in running LLaMA locally on a M1 Mac after downloading the model weights.

@hjhgitw
hjhgitw / macos_ramdisk_setup.sh
Created December 22, 2023 14:27 — forked from iryston/macos_ramdisk_setup.sh
Create RAM Disk in MacOS and move some cache folders to RAM
#!/bin/bash
## Read and edit this file.
## Run it once as a root.
FILE="/Library/Scripts/ramdisk.sh"
if [[ $EUID -ne 0 ]]; then
echo "You must be a root user" 2>&1
exit 1
@hjhgitw
hjhgitw / newmac.sh
Created November 5, 2023 00:09 — forked from theodric/newmac.sh
New Mac setup
## I hope you've already turned off SIP in Recovery. If not, here's how:
# 1. Boot to recovery
# 2. Open Terminal
# 3. Type csrutil disable and press enter
# 4. Type reboot (or exit and reboot normally)
sudo spctl --master-disable
sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true; killall Finder
@hjhgitw
hjhgitw / gist:b80863a494024737b7e0b5c68969bf11
Created October 25, 2023 18:38
Sparkle glitter shine effects
https://www.google.com/search?q=codepen+image+sparkle+shine+effect&rlz=1C5CHFA_enDE989DE989&oq=codepen+image+sparkle+shine+effect&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQIRigATIKCAIQIRgWGB0YHtIBCTk2NDFqMGoxNagCALACAA&sourceid=chrome&ie=UTF-8#ip=1
https://codepen.io/createjs/embed/dZOKEd?default-tab=js%2Cresult&theme-id=0
https://codepen.io/iamvdo/pen/nEVWZw
https://codepen.io/simeydotme/pen/GRgLWE
https://codepen.io/belens/pen/pJYzzM
layout title
post
Blogging Like a Boss

yaml tables. must be first thing in the gist

gists.md

@hjhgitw
hjhgitw / mermaid.md
Last active July 18, 2022 15:49 — forked from martinwoodward/mermaid.md
GitHub HTML Rendering Pipeline
```mermaid
sequenceDiagram
    participant dotcom8
    participant iframe
    participant viewscreen
    dotcom->>iframe: loads html w/ iframe url
    iframe->>viewscreen: request template
    viewscreen->>iframe: html & javascript
 iframe->>dotcom: iframe ready
@hjhgitw
hjhgitw / tween_and_curve_simulator.dart
Created July 14, 2022 17:37 — forked from funwithflutter/tween_and_curve_simulator.dart
Flutter example to demonstrate the chaining of Tweens and Cuves, plus creating your own Curves and Tweens classes.
import 'dart:math';
import 'dart:ui';
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
@hjhgitw
hjhgitw / proftpd_1.3.5_.py
Created June 9, 2022 10:35 — forked from Madhava-mng/proftpd_1.3.5_.py
proftpd 1.3.5 exploit(remote command execution)
#!/bin/python3
import socket
from threading import Thread
from sys import argv as _arg_
from time import sleep
'''
proftpd 1.3.5 is Vulnearable to Copy Remote Command Execution
usage: proftpd_1.3.5.py <TARGET_IP> <PORT> <PATH_TO_COPY> <PATH_TO_PAST>
eg: proftpd_1.3.5.py 10.2.43.12 21 /home/user/FileToCopy /var/tmp/PathToPast
'''