Skip to content

Instantly share code, notes, and snippets.

@miguelmota
miguelmota / bootable_usb.sh
Last active January 24, 2025 00:13
Linux copy img.xz to usb drive (bootable drive) using xzcat and dd
lsblk
sudo umount /dev/sd<?><?>
xzcat ~/Downloads/linux.img.xz | sudo dd of=/dev/sd<?> conv=fdatasync status=progress
@paulana-microsoft
paulana-microsoft / prompts.txt
Last active January 24, 2025 00:12
AI for Creators: Prompt Examples
Prompt Engineering
------------------
Can you generate an employee onboarding survey with 15 questions for an automotive company?
Can you generate an employee exit survey with 15 questions for a healthcare institution?
Can you write a proposal for a non-profit grant targeted at underrepresented children in foster care?
Please make the following sentence sound more persuasive: "Hi, my name is Paulana and I would like to work for your technology company because I like technology.
@h3ssan
h3ssan / JetBrains trial reset.md
Last active January 23, 2025 23:59
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these

@hackermondev
hackermondev / research.md
Last active January 23, 2025 23:58
Unique 0-click deanonymization attack targeting Signal, Discord and hundreds of platform

hi, i'm daniel. i'm a 15-year-old high school junior. in my free time, i hack billion dollar companies and build cool stuff.

3 months ago, I discovered a unique 0-click deanonymization attack that allows an attacker to grab the location of any target within a 250 mile radius. With a vulnerable app installed on a target's phone (or as a background application on their laptop), an attacker can send a malicious payload and deanonymize you within seconds--and you wouldn't even know.

I'm publishing this writeup and research as a warning, especially for journalists, activists, and hackers, about this type of undetectable attack. Hundreds of applications are vulnerable, including some of the most popular apps in the world: Signal, Discord, Twitter/X, and others. Here's how it works:

Cloudflare

By the numbers, Cloudflare is easily the most popular CDN on the market. It beats out competitors such as Sucuri, Amazon CloudFront, Akamai, and Fastly. In 2019, a major Cloudflare outage k

@jcary741
jcary741 / badlenovo.ps1
Last active January 23, 2025 23:58
Removal script for Tobii and Nahimic software on Lenovo Legion 5 devices
# Version: 0.1 (2025-01-18)
# License: MIT, use at your own risk
#
# This script disables the Lenovo-installed "Tobii experience" software and "nahimic" software.
# Tested on a Lenovo Legion Pro 5 (82WM) with Windows 11 24H2.
# Run it with `powershell.exe -noprofile -executionPolicy Bypass -File badlenovo.ps1`
# Following this script, you should be able to uninstall the "Tobii experience" app from the control panel (appwiz.cpl)
#
# After major updates, you may need to re-run this script.
//This is from frmLoginController.js
define({
loginSuccess:function() {
var emailID = this.view.login.getUsername();
kony.store.setItem("USER_ID", emailID);
try {
@sundowndev
sundowndev / GoogleDorking.md
Last active January 23, 2025 23:54
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
import * as React from 'react';
const useIsFirstRender = (): boolean => {
const isFirst = React.useRef(true);
if (isFirst.current) {
isFirst.current = false;
return true;
} else {
@parmentf
parmentf / GitCommitEmoji.md
Last active January 23, 2025 23:47
Git Commit message Emoji
@hyblocker
hyblocker / InputManager.cs
Last active January 23, 2025 23:45
An Input Manager that supports keyboard, mouse and controller bindings, and allows for rebinding of Keybinds
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using System.Collections.Generic;
using System;
namespace Experiments
{
public static class InputManager
{
#region Variables