Skip to content

Instantly share code, notes, and snippets.

@feranmii
feranmii / UIGetName.cs
Created April 7, 2020 11:50
Simple Class that assigns the name of the parent GameObject to a UI TextField
using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
/// <summary>
/// Simple Class that assigns the name of the parent GameObject to a UI TextField
/// </summary>
//Unitytips by @theferfactor
@zeropwn
zeropwn / kde-kdesktopfile-command-injection.txt
Created August 5, 2019 00:04
KDE 4/5 is vulnerable to a command injection vulnerability in the KDesktopFile class.
_ _
_______ _ __ ___ | | ___ | |
|_ / _ \ '__/ _ \ | |/ _ \| |
/ / __/ | | (_) || | (_) | |
/___\___|_| \___(_)_|\___/|_|
https://zero.lol
zero days 4 days
Title: KDE 4/5 KDesktopFile Command Injection
Date: July 28th 2019
@keijiro
keijiro / 00_particle_textures.md
Last active October 6, 2019 19:54
Processing sketches used to generate VFX particle textures

These are Processing sketches that I used to create VFX particle textures in a Unity project.

Usage example:

gif

Disk.pde

Generates a simple disk particle.

#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
GHBU_PASSWD=${GHBU_PASSWD-"<CHANGE-ME>"} # the password for that account
GHBU_GITHOST=${GHBU_GITHOST-"github.com"} # the GitHub hostname (see comments)
GHBU_PRUNE_OLD=${GHBU_PRUNE_OLD-true} # when `true`, old backups will be deleted
<?php
# First select all comments
$query = "SELECT `comment_ID`, `comment_post_ID`, `comment_content` FROM ".$wpdb->comments." WHERE 1";
$comments = $wpdb->get_results($query);
# Array to hold keeper comment IDs so we don't delete them if there are doops
$keeper_comments = array();
# Now check if each comment has any matching comments from the same post
foreach ($comments as $comment) {
@jorik041
jorik041 / baibako.yml
Last active August 29, 2015 14:15 — forked from asm0dey/baibako.yml
series:
h264:
- 'Downton Abbey':
alternate_name: 'Аббатство Даунтон'
- 'Bones':
alternate_name: 'Кости'
- 'Delirium':
alternate_name: 'Делириум'
- 'Gang Related':
alternate_name: 'Преступные связи'
@prime31
prime31 / gist:5675017
Last active April 2, 2024 03:55
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array