Skip to content

Instantly share code, notes, and snippets.

@Birdie0
Birdie0 / ifttt-webhooks-extended-guide.md
Last active January 27, 2025 22:31
How to use Discord Webhooks

⚠️ This gist is no longer updated! For maintained, improved and even more extended guide click here.


How to use Discord Webhook

It's a JSON

First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.

@sagar285
sagar285 / gist:3f7542d13606dee3b525e3315b46d453
Last active January 27, 2025 22:30
aws deployment on instanc
Steps to deploy a Node.js app to aws using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
## 1. Create Free AWS Account
Create free AWS Account at https://aws.amazon.com/
## 2. Create and Lauch an EC2 instance and SSH into machine
I would be creating a t2.medium ubuntu machine for this demo.
## 3. Install Node and NPM
```
@evgenyneu
evgenyneu / setup_cursor_ubuntu.md
Last active January 27, 2025 22:29
Install Cursor AI code editor on Ubuntu 24.04 LTS

Install Cursor AI editor on Ubuntu 24.04

  1. Use the Download button on www.cursor.com web site. It will download the NAME.AppImage file.

  2. Copy the .AppImage file to your Applications directory

cd ~/Downloads
mkdir -p ~/Applications
mv NAME.AppImage ~/Applications/cursor.AppImage
@Rich-Harris
Rich-Harris / service-workers.md
Last active January 27, 2025 22:29
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.

@devnoname120
devnoname120 / My macOS setup.md
Last active January 27, 2025 22:23
My macOS setup

ℹ️ Enable iCloud end-to-end encryption:

  • Nobody knows that, but iCloud actually supports end-to-end encryption (see “Advanced Data Protection for iCloud”) but it's disabled by default. If you care about data privacy, you should turn it on.
    • System settingsApple IDiCloud → Set Advanced Data Protection to On.
    • System settingsApple IDiCloud → Disable Access iCloud Data on the Web.
  • It supports almost all the native Apple apps, with the notable exceptions of iCloud Mail, Contacts, and Calendars. See official data protection matrix for more info.

Quality of life improvements

Mouse:

@ngxson
ngxson / FAQ.md
Last active January 27, 2025 22:23
convert ARM NEON to WASM SIMD prompt

What is your setup?

Just chat.deepseek.com with prompts adapted from this gist.

Does it work in one-shot or I have to prompt it multiple times?

  • For the qX_0 variants, they are actually quite straight-forward so deepseek can come up with a correct result in 1 shot.
  • For the qX_K it's more complicated, I would say most of the time I need to re-prompt it 4 to 8 more times.
  • The most difficult was q6_K, the code never works until I ask it to only optimize one specific part, while leaving the rest intact (so it does not mess up everything)
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active January 27, 2025 22:22
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@vrdriver
vrdriver / gist:ddc0ba5cd248098febc560b5ceb1b70b
Last active January 27, 2025 22:22
Processing RCS XML
To process the following Billboard XML from the RCS Zetta radio playout system (as outputted through a MC v15 XML schema
using glue) in PHP, I do a conversion trick to make it actually usable in the XML processor.
Firstly, I pre-process all of the XML like this:
// dirty hack to fix the naming of xml fields.
$rawXML = str_replace("l:Link", "l_Link", $rawXML);
$rawXML = str_replace("s:Album", "s_Album", $rawXML);
$rawXML = str_replace("s:Song", "s_Song", $rawXML);
$rawXML = str_replace("t:Spot", "t_Spot", $rawXML);
@matthewjberger
matthewjberger / instructions.md
Last active January 27, 2025 22:20
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

echo ""
echo "************ Github Dork Links (must be logged in) *******************"
echo ""
echo " password"
echo "https://github.com/search?q="hackertarget.site"+password&type=Code"
echo "https://github.com/search?q=""hackertarget""+password&type=Code"
echo ""
echo " npmrc _auth"