First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.
Discover gists
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 | |
``` |
-
Use the Download button on www.cursor.com web site. It will download the
NAME.AppImage
file. -
Copy the .AppImage file to your Applications directory
cd ~/Downloads
mkdir -p ~/Applications
mv NAME.AppImage ~/Applications/cursor.AppImage
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.
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.
ℹ️ 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 settings
→Apple ID
→iCloud
→ SetAdvanced Data Protection
toOn
.System settings
→Apple ID
→iCloud
→ DisableAccess 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.
Mouse:
- UnnaturalScrollWheels: Remove macOS's
Just chat.deepseek.com with prompts adapted from this gist.
- 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)
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); |
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" |