Skip to content

Instantly share code, notes, and snippets.

View 1Conan's full-sized avatar

Conan 1Conan

View GitHub Profile
@1Conan
1Conan / nginx-ssl.conf
Last active March 13, 2016 15:13
Configuration to get an A+ on the Qualys SSL Labs test with fast performing and low overhead SSL ciphers. Works in combination with nginx 1.9.8 full and OpenSSL v1.0.2d.
#NOTES
# http2 works only if you compiled nginx with "--with-http_v2_module"!
# If you need help on compiling nginx with http2 please refer to this link
# https://www.m00nie.com/2015/01/install-nginx-and-pagespeed/
#www to root redirect
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
@1Conan
1Conan / IAS.sh
Last active July 18, 2016 01:39
[ANDROID][ROOT][SHELL]Iruna Account Switcher
#!/system/bin/sh
#
# Iruna Account Switcher
# (c) 1Conan, 2016
#
# For support, e-mail me at
# admin[at]1conan.com
# Or comment at
# https://git.io/vK20L
#
#!/bin/bash
#
# nginx + php-FPM 7 + MariaDB 10.1 Installer
# by 1Conan
#
# Supports CentOS 6 or other RHEL-based OS (Untested)
#
# Version variables (Updated 3/24/16)
NPS_VERSION=1.9.32.10
@1Conan
1Conan / discordClient.html
Created April 22, 2017 18:54
Just a simple toy client to speak as a bot.
<html>
<head>
<script src='discord.11.0.0.js'></script>
</head>
<body>
<div id='msgDiv' style='display:none'>
<ul id='msgs' style="overflow:scroll; height:400px;">
</ul>
<input type="text" id="message" placeholder="message here">
</div>
const isHex = require('is-hex')
const converter = require('hex2dec')
module.exports = (ecid, ecidType) => {
if(ecidType == 'dec')
return validateDecEcid(ecid)
else if(ecidType == 'hex')
return validateHexEcid(ecid)
else
return false
}
@1Conan
1Conan / generator.js
Last active February 13, 2019 09:38
Generator/Apnonce generation script
/**
* genap
* 1Conan
*/
const crypto = require('crypto');
const reverse = require('buffer-reverse');
const hash = crypto.createHash('sha1');
//Data
const random = crypto.randomBytes(8);
<?php
$signedVersionsURL = "https://api.ipsw.me/v2.1/firmwares.json/condensed";
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL,$signedVersionsURL);
$result = curl_exec($ch);
curl_close($ch);
$data = json_decode($result, true);
@1Conan
1Conan / delete-all-messages.js
Created March 9, 2019 16:12 — forked from IMcPwn/delete-all-messages.js
Delete all messages in a Discord channel
// Turn on Developer Mode under User Settings > Appearance > Developer Mode (at the bottom)
// Then open the channel you wish to delete all of the messages (could be a DM) and click the three dots on the far right.
// Click "Copy ID" and paste that instead of LAST_MESSAGE_ID.
// Copy / paste the below script into the JavaScript console.
// If you're in a DM you will receive a 403 error for every message the other user sent (you don't have permission to delete their messages).
var before = 'LAST_MESSAGE_ID';
clearMessages = function(){
const authToken = document.body.appendChild(document.createElement`iframe`).contentWindow.localStorage.token.replace(/"/g, "");
const channel = window.location.href.split('/').pop();
const fetch = require('node-fetch');
// Config
const authToken = '';
const userId = '';
const guildId = '';
const headers = {
Authorization: authToken
};

Keybase proof

I hereby claim:

  • I am 1conan on github.
  • I am 1conan (https://keybase.io/1conan) on keybase.
  • I have a public key ASBrfczMT1wsih8G0hsKH3b-Nk_1oy85xdvGT6nbBq-ttgo

To claim this, I am signing this object: