Creating a blackhole in Ubuntu 20.04
This file contains 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
#!/usr/bin/env zx | |
const tz = new Date().toLocaleString("en", { timeZoneName: "short" }).split(" ").pop(); | |
const listOfMp3Files = (await $`ls *.mp3`).stdout.split("\n").filter(Boolean); | |
for (const filename of listOfMp3Files) { | |
let year = filename.slice(0, 4); | |
let month = filename.slice(4, 6); | |
let day = filename.slice(6, 8); |
This file contains 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
YQgTvEMtSIUcMnjeGhEpJE1dQngj6TpWIsNbzNVjmIdBs1uvfNfdTTTyy4F9Rkylj1X4Kg. |
This file contains 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 | |
namespace Cednore\Cedi\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\File; | |
use Illuminate\Support\Str; | |
class PatchOrchidPlatform extends Command | |
{ |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.printable-letter.printable-portrait { | |
page: letter-portrait; | |
} | |
.printable-letter.printable-landscape { | |
page: letter-landscape; |
My personal environment setup guide on Amazon Linux 2
# Go inside personal workspace folder
mkdir -p ~/workspace/cednore && cd ~/workspace/cednore
# Clone this gist
git clone [email protected]:a698954555ed680717b6a0832283bfdf.git useful-shell-snippets
# Clear recent files list on nautilus
❗ IMPORTANT: This gist is not actively maintained anymore. See https://github.com/cednore/ubuntu |
---|
My personal environment setup guide on Ubuntu
This file contains 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
<div | |
x-data="{ | |
query: '', | |
showDropdown: false, | |
currentHighlightedKey: Infinity, | |
options: {}, | |
wireProp: @entangle($name).defer, | |
flags: {}, | |
initFlags() { | |
for (const key of Object.keys(this.options)) { |