Skip to content

Instantly share code, notes, and snippets.

View TennousuAthena's full-sized avatar
🎯
Focusing

Takuenn Li TennousuAthena

🎯
Focusing
View GitHub Profile
@sergey-cheperis
sergey-cheperis / proxmox7.1-ast25000-issue.md
Last active August 9, 2024 01:04
Resolve Proxmox 7.1 "installation aborted" on SuperMicro with AST 2500

Issue

On SuperMicro AS-4124GS-TNR server with ASPEED AST2500 BMC, Proxmox 7.1 installation does not start with "installation aborted" message.

Details

After setting up DHCP and Chrony, Proxmox fails to start the graphical installer and drops into the shell:

...
Starting Chrony for opportunistic time-sync... Starting a root shell on tty3.
@TennousuAthena
TennousuAthena / TennousuAthena.gif
Last active June 14, 2020 14:19
咕咕咕现状
TennousuAthena.gif
// ==UserScript==
// @name 51Talk优化:解锁课程|屏蔽广告|优化体验
// @namespace https://gist.github.com/qcminecraft/5498879f8b7fb9008d7d6ea540d56c12
// @version 0.3.3
// @description 解锁课程|屏蔽广告|优化体验
// @author qingcaomc@gmail.com
// @license GPLv3
// @match http://www.51talk.com/*
// @match https://www.51talk.com/*
// @icon https://avatars3.githubusercontent.com/u/25388328
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@turret-io
turret-io / aes_enc_dec.php
Last active July 27, 2024 02:51
AES encryption/decryption in PHP
<?php
// DEFINE our cipher
define('AES_256_CBC', 'aes-256-cbc');
// Generate a 256-bit encryption key
// This should be stored somewhere instead of recreating it each time
$encryption_key = openssl_random_pseudo_bytes(32);
// Generate an initialization vector
// This *MUST* be available for decryption as well
@mloberg
mloberg / mysql.php
Created August 30, 2011 18:00
Simple PHP MySQL Class
<?php
class Mysql{
static private $link = null;
static private $info = array(
'last_query' => null,
'num_rows' => null,
'insert_id' => null
);