startx
ifconfig
sudo nano /etc/network/interfaces
sudo ifconfig
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git
# Setup some Python stuff
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
/** | |
* Sorts an array of objects In-Place, | |
* sorting by multiple fields sequentially. | |
* | |
* @description This function is meant to be used | |
* with arrays of objects, AND when you need to set | |
* multiple sorting criteria. For other cases it is | |
* recommended to use the native method `array.sort(callback)` | |
* since for simple cases this function is more expensive | |
* in time and memory. |
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
/* | |
Unportify is a script that exports your Google Play music to text. | |
Copyright (C) 2016 Arnau Villoslada | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
It is loaded by default by /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist.
If you run
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
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
adb devices | |
adb shell screencap -p /sdcard/screen.png | |
adb pull -p -a /sdcard/screen.png | |
adb shell rm /sdcard/screen.png | |
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b) | |
For /f "tokens=1-3 delims=/:" %%a in ("%TIME%") do (set mytime=%%a-%%b-%%c) | |
set mytime=%mytime: =% |
- Have Homebrew installed and a markdown file you want to render to PDF.
- Install Pandoc
brew install pandoc
- Install basictex
brew cask install basictex
- needed for the pdflatex tool. - Symlink the pdflatex to your
/usr/local/bin
so pandoc can easily find it.ln -s /Library/TeX/Root/bin/x86_64-darwin/pdflatex /usr/local/bin/pdflatex
- Use Pandoc to generate a PDF from a Markdown file.
pandoc input.md -o output.pdf
- By default the margins are pretty large. To optionally change the margins:
pandoc input.md -o output.pdf -V geometry:margin=1in
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 | |
# Enable and disable HDMI output on the Raspberry Pi | |
# The script uses the cec-hdmi command to manage the hdmi interface. | |
# https://pimylifeup.com/raspberrypi-hdmi-cec/ | |
# On a Raspberry Pi 4 i could only get this to work if i used the hdmi 2 port. | |
# To setup the script run "echo 'scan' | cec-client -s -d 1" to identify the adress of the HDMI unit. |
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
// Inspired by Tailwind Daisy UI progress bar: https://daisyui.com/components/radial-progress/ | |
// This is a custom-made progress circular/radial progress bar with centered percentage text. | |
// Tested with Tailwind 3.x. Should work with lower versions of Tailwind CSS as well. | |
STEP 1: Add the following custom CSS: | |
.progress-ring__circle { | |
transition: stroke-dashoffset 0.35s; | |
transform: rotate(-90deg); | |
transform-origin: 50% 50%; |