Skip to content

Instantly share code, notes, and snippets.

View musoftware's full-sized avatar
🌏
Working from home

Musoftware musoftware

🌏
Working from home
View GitHub Profile
1 : Shutdown or Quit your XAMPP server from Xampp control panel.
2 : Download the ZIP version of MariaDB
3 : Rename the xampp/mysql folder to mysql_old.
4 : Unzip or Extract the contents of the MariaDB ZIP file into your XAMPP folder.
5 : Rename the MariaDB folder, called something like mariadb-5.5.37-win32, to mysql.
6 : Rename xampp/mysql/data to data_old.
7 : Copy the xampp/mysql_old/data folder to xampp/mysql/.
8 : Copy the xampp/mysql_old/backup folder to xampp/mysql/.
9 : Copy the xampp/mysql_old/scripts folder to xampp/mysql/.
@musoftware
musoftware / gist:f5700f96b7db37a97080bbb7e5faf9cc
Created November 9, 2020 22:54 — forked from vxnick/gist:380904
Array of country codes (ISO 3166-1 alpha-2) and corresponding names
<?php
$countries = array
(
'AF' => 'Afghanistan',
'AX' => 'Aland Islands',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',
@musoftware
musoftware / gist:6373f219e4fbfd9f68bb7ae18e1554ff
Created August 16, 2017 17:32
C# Big Array Class One Dimensional Array Greater than 2Gb.
[Serializable]
public class BigArray<T> : IEnumerable<T>
{
private readonly T[][] _arrays;
public ulong Length { get; private set;}
public T this[ulong index]
{
get
{
@musoftware
musoftware / gist:114af452665309c7070aba4aa82447c1
Last active August 16, 2017 17:33
C# BigHashSet Class Greater than 2Gb.
public class BigHashSet<T> : IEnumerable<T>
{
private const ulong StartSize = 1 << 19;
private BigArray<ulong> _hashBuckets;
private ulong _hashCode;
private BigArray<Slot> _slots;
public ulong Count { get; private set; }
public ulong Length {get{
@musoftware
musoftware / 0_reuse_code.js
Created February 5, 2017 08:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
class ShortId
{
public static readonly string Alphabet = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
private static decimal BcPow(double a, double b)
{
return Math.Floor((decimal)Math.Pow(a, b));
}
public static ulong Decode(string value, int pad = 0)
@musoftware
musoftware / likeyoutubeID.php
Created November 10, 2016 09:41 — forked from rastislavcore/likeyoutubeID.php
PHP Convert Long Number to short string
<?php
/**
* Translates a number to a short alhanumeric version
*
* Translated any number up to 9007199254740992
* to a shorter version in letters e.g.:
* 9007199254740989 --> PpQXn7COf
*
* specifiying the second argument true, it will
* translate back e.g.: