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
<?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
#!/bin/bash | |
# | |
# credit to machupicchubeta/dotfiles/bin/enable_to_sudo_authenticate_with_touch_id.sh | |
set -eu | |
set -o pipefail | |
sudo chmod +w /etc/pam.d/sudo | |
if ! grep -Eq '^auth\s.*\spam_tid\.so$' /etc/pam.d/sudo; then | |
( set -e; set -o pipefail | |
# Add "pam_tid.so" to a first authentication |
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)) { |
I'll preface this with three things. 1. I prefer schemes over Common Lisps, and I prefer Racket of the Schemes. 2. There is more to it than the points I raise here. 3. I assume you have no previous experience with Lisp, and don't have a preference for Schemes over Common Lisp. With all that out of the way... I would say Common Lisp/SBCL. Let me explain
- SBCL Is by far the most common of the CL implementations in 2021. It will be the easiest to find help for, easiest to find videos about, and many major open source CL projects are written using SBCL
- Download a binary directly from the website http://www.sbcl.org/platform-table.html (even for M1 macs) to get up and running (easy to get started)
- Great video for setting up Emacs + Slime + Quick Lisp https://www.youtube.com/watch?v=VnWVu8VVDbI
Now as to why Common Lisp over Scheme
NewerOlder