Skip to content

Instantly share code, notes, and snippets.

@sunmeat
sunmeat / animations.html
Created December 6, 2024 14:55
animations example
<!DOCTYPE html>
<html lang="uk">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400&family=Caveat:wght@400;700&display=swap"
rel="stylesheet">
<title>Анімації</title>
<style>
body {
@majirosstefan
majirosstefan / expo-notifications+0.14.1.patch
Last active December 6, 2024 14:53
Expo Push Notification & AWS Pinpoint & AWS SNS Compatibility - Patch for React Native app that provides compatibility between AWS Pinpoint (used on serverside) and Expo-Notification library (used in mobile app).
diff --git a/node_modules/expo-notifications/android/src/main/java/expo/modules/notifications/notifications/JSONNotificationContentBuilder.java b/node_modules/expo-notifications/android/src/main/java/expo/modules/notifications/notifications/JSONNotificationContentBuilder.java
index 0af7fe0..d7c0946 100644
--- a/node_modules/expo-notifications/android/src/main/java/expo/modules/notifications/notifications/JSONNotificationContentBuilder.java
+++ b/node_modules/expo-notifications/android/src/main/java/expo/modules/notifications/notifications/JSONNotificationContentBuilder.java
@@ -16,6 +16,10 @@ import expo.modules.notifications.notifications.model.NotificationContent;
public class JSONNotificationContentBuilder extends NotificationContent.Builder {
private static final String TITLE_KEY = "title";
private static final String TEXT_KEY = "message";
+
+ private static final String TITLE_PINPOINT_KEY = "pinpoint.notification.title";
@ruandre
ruandre / nix-on-wsl-debian-ubuntu.md
Last active December 6, 2024 14:48
Nix on WSL Debian/Ubuntu

Nix on WSL Debian/Ubuntu

Prep

Install these if not already available:

sudo apt install curl xz-utils
@jhaddix
jhaddix / all.txt
Created January 19, 2019 04:35 — forked from orangetw/all.txt
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎
@cxmeel
cxmeel / MD_BUTTONS_DOCS.md
Last active December 6, 2024 14:47
Documentation for markdown buttons.

Markdown Buttons

A collection of SVG buttons for displaying custom "buttons" in Markdown content. You are free to use these buttons wherever you like. All buttons were created in Figma, with (most) icons provided by the Iconify plugin.

Sponsor on GitHub View Itch.io Store

The SVG files can be found on this gist. They have been separated in order to reduce the amount of lag when loading this README file.

@jagregory
jagregory / gist:710671
Created November 22, 2010 21:01
How to move to a fork after cloning
So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear!
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy.
* Off the top of my head *
1. Fork their repo on Github
2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it
git remote add my-fork git@github...my-fork.git
@dhrrgn
dhrrgn / cmd.py
Last active December 6, 2024 14:45
Running a command in Python and optionally processing the output in realtime.
import shlex
import subprocess
import sys
def run_cmd(cmd, callback=None, watch=False):
"""Runs the given command and gathers the output.
If a callback is provided, then the output is sent to it, otherwise it
is just returned.
@jctosta
jctosta / screen_cheatsheet.markdown
Last active December 6, 2024 14:43
Screen Cheatsheet

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r
@CryptLabs
CryptLabs / GRUB_INIT_TUNE.md
Created December 6, 2024 14:42 — forked from ArtBIT/GRUB_INIT_TUNE.md
A collection of GRUB init tunes
@esedic
esedic / url.js
Created January 17, 2024 15:14
Remove URL parameters and reload page
function removeParamAndRefresh(paramToRemove) {
const url = new URL(window.location.href);
if (url.searchParams.has(paramToRemove)) {
url.searchParams.delete(paramToRemove);
// Update the URL in the address bar without reloading
window.history.pushState({}, '', url);
// Now, reload the page
window.location.reload();
}
}