This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Only ssh users can execute | |
if (PHP_SAPI !== 'cli') return; | |
// Comes in handy sometimes | |
ini_set('memory_limit', '2048M'); | |
// Instantiate MODX | |
@include(dirname(__FILE__) . '/config.core.php'); | |
if (!defined('MODX_CORE_PATH')) define('MODX_CORE_PATH', dirname(__FILE__) . '/core/'); | |
include_once (MODX_CORE_PATH . "model/modx/modx.class.php"); | |
$modx= new modX(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Threading; | |
namespace PerformanceCounterTest | |
{ | |
public class Program |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt install fontconfig | |
cd ~ | |
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Meslo.zip | |
mkdir -p .local/share/fonts | |
unzip Meslo.zip -d .local/share/fonts | |
cd .local/share/fonts | |
rm *Windows* | |
cd ~ |
OlderNewer