Skip to content

Instantly share code, notes, and snippets.

@devops-school
devops-school / decrypt.php
Created January 22, 2023 20:10
Encryption using RSA public and Private Key using PHP
Write a php code for generating public key and private key on page one and on page two encrypt data through input by user of public key and on page three decrypt data by uploading private key
<?php
// Get the private key from the file
$privateKeyStr = file_get_contents("private_key.pem");
// Get the encrypted data from the file
$encryptedData = file_get_contents("encrypted_data.bin");

The Freenode resignation FAQ, or: "what the fuck is going on?"

IMPORTANT NOTE:

It's come to my attention that some people have been spamming issue trackers with a link to this gist. While it's a good idea to inform people of the situation in principle, please do not do this. By all means spread the word in the communities that you are a part of, after verifying that they are not aware yet, but unsolicited spam is not helpful. It will just frustrate people.

Update 3 (May 24, 2021)

A number of things have happened since the last update.

IMPORTANT
Please duplicate this radar for a Safari fix!
This will clean up a 50-line workaround.
rdar://22376037 (https://openradar.appspot.com/radar?id=4965070979203072)
//////////////////////////////////////////////////////////////////////////////
(Now available as a standalone repo.)
@remy
remy / gist:2484402
Created April 24, 2012 22:45
jquery.marquee.js
/**
* author Remy Sharp
* url http://remysharp.com/tag/marquee
*/
(function ($) {
$.fn.marquee = function (klass) {
var newMarquee = [],
last = this.length;