Skip to content

Instantly share code, notes, and snippets.

View 1Conan's full-sized avatar

Conan 1Conan

View GitHub Profile
@Dexwell
Dexwell / LocalCommunicationNotification.swift
Last active April 2, 2024 07:44
iOS 15 Local Communication Notification
var content = UNMutableNotificationContent()
content.title = "Title"
content.subtitle = "Subtitle"
content.body = "Text"
content.sound = nil
content.categoryIdentifier = "categoryName"
var personNameComponents = PersonNameComponents()
personNameComponents.nickname = "Sender Name"
//
// MessageIntentHandler.swift
//
// Created by Roman Kyrylenko on 22/02/17.
// Copyright © 2017 Yalantis. All rights reserved.
// https://yalantis.com
//
class MessagesIntentHandler: NSObject, INSendMessageIntentHandling, NetworkClientInjectable {
@joepie91
joepie91 / index.js
Last active June 23, 2023 23:42
Breaking CloudFlare's "I'm Under Attack" challenge
'use strict';
const parseExpression = require("./parse-expression");
function findAll(regex, target) {
let results = [], match;
while (match = regex.exec(target)) {
results.push(match);
}
@inlanger
inlanger / openvz_fake_swap.sh
Created October 1, 2013 13:25
Create 1024mb swap partition
#!/bin/bash
### BEGIN INIT INFO
# Provides: swap
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 1 0 6
# Short-Description: add fake swap.
### END INIT INFO