summaryrefslogtreecommitdiff
path: root/cs
diff options
context:
space:
mode:
authormac <ra@afu.re>2025-10-28 16:16:36 -0400
committermac <ra@afu.re>2025-10-28 16:16:36 -0400
commit72e07c2ef26d9210ac7a07ff48bdaf38fe86472c (patch)
tree1883511265059c3498d637f1ceb940dbe339eab4 /cs
parent15b1da3e3f7a9ff6b4e904cac045d90bcd84916f (diff)
Auto from mac asahi - Tue 28 Oct 2025 04:16:36 PM EDT
Diffstat (limited to 'cs')
-rw-r--r--cs/6.0001 Introduction to Computer Science and Programming in Python.md2
-rw-r--r--cs/Gentoo/index.md54
-rw-r--r--cs/index.md57
-rw-r--r--cs/misc.md20
4 files changed, 18 insertions, 115 deletions
diff --git a/cs/6.0001 Introduction to Computer Science and Programming in Python.md b/cs/6.0001 Introduction to Computer Science and Programming in Python.md
index 3b37042..469b455 100644
--- a/cs/6.0001 Introduction to Computer Science and Programming in Python.md
+++ b/cs/6.0001 Introduction to Computer Science and Programming in Python.md
@@ -138,7 +138,7 @@ f"The area of a circle with radius {sum(radius)} is {math.pi * radius}"
- for - Iterate over a sequence
- while - Repeat a block of code as long as condition is true
-# Control statement
+## Control statement
- break - exit current loop
- continue - skip rest of current iteration and follow to the next iteration in loop
- pass - null does nothing
diff --git a/cs/Gentoo/index.md b/cs/Gentoo/index.md
index 4a133a9..95669c7 100644
--- a/cs/Gentoo/index.md
+++ b/cs/Gentoo/index.md
@@ -1,73 +1,19 @@
[[Asahi - Gentoo - Wayland - Suckless Setup]]
-
-
-
-# Xorg
[[Installation]]
[[Userland]]
-
-
-
-
[[Custom Ebuild Repo]]
-
[[gentoo-kernel-bin]]
-what is /var/cache/distfiles/...
-eclean-dist -dp
-
-
-# fix mpv from segfault
-- For information, I will repeat here the workaround, it may help for others :
-- emerge app-portage/cpuid2cpuflags
-- launch cpuid2cpuflags
-- create a var CPU_FLAGS_X86 containing the output of this command in your /etc/portage/make.conf
-- re emerge media-video/ffmpeg
-
-
-zram for swap
-
-
-
-# bashrc portage - run post hook
-
-mkdir -p /etc/portage/postinst.d/
-chmod 755 /etc/portage/postinst.d/
-
-vim /etc/portage/bashrc
-#!/bin/bash
-POSTINST_BASE="/etc/portage/postinst.d/"
-post_pkg_postinst()
-{
- local POSTINST_SCRIPT
- if [[ "x${CATEGORY}" == "xvirtual" ]']
- then
- return 0
- fi
- for POSTINST_SCRIPT in ${POSTINST_BASE%/}/{all,${CATEGORY}/{${P}-${PR},${P},${PN}}{:$SLOT},}}
- do
- if [[ -x "${POSTINST_SCRIPT}" ]']
- then
- einfo "Running post-installation script ${POSTINST_SCRIPT} ..."
- "${POSTINST_SCRIPT}"
- fi
- done
-}
-then put script in
-/etc/portage/postinst.d/sys-kernel/gentoo-kernel-bin
-(with a shebang and make it executable)
-chmod +x
-script will be run as root - set -eu on top script ???
diff --git a/cs/index.md b/cs/index.md
index 87d4a8a..177357b 100644
--- a/cs/index.md
+++ b/cs/index.md
@@ -8,60 +8,3 @@
[[misc]]
-# need to see the logs when open vimwiki and close vimwiki
-nvim -Vvimwiki_logs.txt .local/share/vimwiki/index.md
-
-
-beet import -A /path/to/song --set title="Song Title" artist="Artist Name" album="Album Name" genre="Genre" year=2025 track=1 albumartist="Album Artist" composer="Composer Name" label="Record Label" country="Country" mood="Energetic"
-
-# MIME FINAL.FINAL.FINAL
-.config/mimeapps.list - ???
-.local/share/application/*
-??
-
-mimeopen from perl pkg
-
-xdg-mime query filetype <file>
-xdg-mime query default <pkg>
-
-# list them all
-application/vnd.ms-excel.sheet.macroEnabled.12 - .xlsm
-application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - .xlsx
-video/x-matroska - .mkv
-video/mp4 - .mp4
-video/webm - .webm
-application/vnd.sqlite3 - .sl3
-audio/x-opus+ogg - .opus
-text/x-python - .py
-
-
-
-- color scheme revamp Bloomberg style - bloomberg.vim add #ff0087 for specials (pythonescape) + #5f00ff for function decorator & decoratorname python
-
-
-- export calcurse to iphone calendar
-- contact sync between abook & iphone contact
-- custom mp3 alarms iphone
-
-
-# utilities
-simpleswap.io
-coincards.com
-
-
-
-# Nuke email
-https://www.iheart.com/
-http://www.potterybarnkids.com/
-http://www.catfaeries.com/newsletter.html
-http://www.stumbleupon.com/
-http://www.active.com/
-https://www.expedia.com/
-http://www.proflowers.com/
-http://www.ticketweb.com/
-https://www.1800flowers.com/
-http://www.marthastewart.com/
-https://www.treehugger.com/newsletters/
-http://www.cyberpromo.com/
-http://losangeles.eventful.com/events
-http://www.orientaltrading.com/
diff --git a/cs/misc.md b/cs/misc.md
index ef32e37..a321117 100644
--- a/cs/misc.md
+++ b/cs/misc.md
@@ -1,8 +1,9 @@
[[Git]]
-wgetpaste -s dpaste
+[[web_scraping]]
+beet import -A /path/to/song --set title="Song Title" artist="Artist Name" album="Album Name" genre="Genre" year=2025 track=1 albumartist="Album Artist" composer="Composer Name" label="Record Label" country="Country" mood="Energetic"
# debian server
@@ -15,5 +16,18 @@ Any user added to the mail group will be able to receive mail $USER@afu.re
/etc/init.d/dovecot restart
-[[web_scraping]]
-
+# Nuke email
+https://www.iheart.com/
+http://www.potterybarnkids.com/
+http://www.catfaeries.com/newsletter.html
+http://www.stumbleupon.com/
+http://www.active.com/
+https://www.expedia.com/
+http://www.proflowers.com/
+http://www.ticketweb.com/
+https://www.1800flowers.com/
+http://www.marthastewart.com/
+https://www.treehugger.com/newsletters/
+http://www.cyberpromo.com/
+http://losangeles.eventful.com/events
+http://www.orientaltrading.com/