Skip to content

Instantly share code, notes, and snippets.

View vrajanap's full-sized avatar

Rajan Ponnappan vrajanap

View GitHub Profile
@Raltar
Raltar / gist:586be522a0f3ddf2a52c5ba71533bdfc
Created May 6, 2023 02:13
Ubuntu 22.04 on Asus ROG Zephyrus G14 (2023 Version)
Here are my notes on how to set up an Asus ROG Zephyrus G14 2023 edition (with Ryzen 7940HX and Nvidia 4060) with Ubuntu 22.04
Thanks and respect to Vijay Prema whose earlier guide to the 2021 version of this laptop would have saved me a lot of time if I'd read it earlier. It still contains great info and is the inspiration for this 2023 version.
https://gist.github.com/vijay-prema/cfcf8cc4085663b7bb48f34172c10629
Currently I have most everything functioning correctly EXCEPT:
- It doesn't seem to bring video back after waking up from suspend. Currently I have to hold down the button to force it to turn off then reboot any time it suspends, so for now I just disable automatic suspension.
- NVIDIA-Prime, the plugin that lets you select between Ryzen integrated and Nvidia discrete graphics works only from the command line and with a reboot. It does not show up in the Nvidia control panel, and when it's in dynamic mode, it always seems to activate the Nvidia discrete graphics. The command-line selection
@Hellisotherpeople
Hellisotherpeople / blog.md
Last active July 21, 2024 14:35
You probably don't know how to do Prompt Engineering, let me educate you.

You probably don't know how to do Prompt Engineering

(This post could also be titled "Features missing from most LLM front-ends that should exist")

Apologies for the snarky title, but there has been a huge amount of discussion around so called "Prompt Engineering" these past few months on all kinds of platforms. Much of it is coming from individuals who are peddling around an awful lot of "Prompting" and very little "Engineering".

Most of these discussions are little more than users finding that writing more creative and complicated prompts can help them solve a task that a more simple prompt was unable to help with. I claim this is not Prompt Engineering. This is not to say that crafting good prompts is not a difficult task, but it does not involve doing any kind of sophisticated modifications to general "template" of a prompt.

Others, who I think do deserve to call themselves "Prompt Engineers" (and an awful lot more than that), have been writing about and utilizing the rich new eco-system

@DanB91
DanB91 / README.txt
Last active November 28, 2022 04:57
Playdate Zig starting point
THIS GIST IS OUT OF DATE! Please use my new project template here to get started with Zig on Playdate:
https://github.com/DanB91/Zig-Playdate-Template
The rest of this is preservied for historical reasons:
This is a small snippet of some code to get you started for developing for the Playdate on Zig. This code should be used as a starting point and may not compile without some massaging. This code has only been tested out on macOS and you'll need to modify the addSharedLibrary() portion of build.zig to output a .dll or .so instead of a .dylib, depending on you platform.
This code will help you produce both an executable for the Playdate simulator and also an executable that actually run on the Playdate hardware.
@prologic
prologic / LearnGoIn5mins.md
Last active July 3, 2024 04:05
Learn Go in ~5mins
@ityonemo
ityonemo / test.md
Last active July 19, 2024 06:53
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

@skeeto
skeeto / README.md
Last active December 20, 2021 14:00
AI driving simulation
@gbrow004
gbrow004 / ubuntu-MBP-16.md
Last active July 12, 2024 21:40
Ubuntu on Apple Macbook Pro 16-inch (2019)

Update!

This gist is out of date and I can no longer help much, as I got rid of my Mac.

Please visit T2 Linux website for more and better information:

https://t2linux.org/

Acknowledgements

This gist is just a compilation of the hard work that others have put in. I'm not a software developer, so if there are any mistakes or better ways of doing things, I'd appreciate any suggestions. Here's a list of the real heroes who made this possible:

@shakna-israel
shakna-israel / LetsDestroyC.md
Created January 30, 2020 03:50
Let's Destroy C

Let's Destroy C

I have a pet project I work on, every now and then. CNoEvil.

The concept is simple enough.

What if, for a moment, we forgot all the rules we know. That we ignore every good idea, and accept all the terrible ones. That nothing is off limits. Can we turn C into a new language? Can we do what Lisp and Forth let the over-eager programmer do, but in C?


@nelhage
nelhage / main.go.c
Last active September 22, 2020 02:49
A Go/C polyglot
// \
/*
#include <stdio.h>
int main() {
printf("Hello, World from C!\n");
return 0;
}
#if 0
//*/

How to setup a practically free CDN using Backblaze B2 and Cloudflare

⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,