Spyke

Posts

linux·Linuxbygraham1

Recommendations for terminal-based planning/todo apps?

Hi all, I'm working on setting my terminal to display different tasks and information when I login. I have problems with attention and I frequently forget to do important things, so I really need to do this to help myself. I'm aware some of this will cause my terminal to be more slow when I first login. That's fine even if it takes an additional second to login. I have a rough mockup attached in the picture. The mockup uses the pr -Tm command to display my calendar side-by-side with my schedule and todo list, but here's where I'm at:

  1. Calendar is automated by ncal -C
  2. Weather is automated using curl wttr.in/New%20York?0
  3. Schedule is just a text file at the moment
  4. Todo is just a text file at the moment

I'm looking to also automate my schedule and todo from the command line, but I don't want to use Google-based tools or tools that connect to an external server in general. I'm looking for terminal-based tools where I can add events to my schedule with descriptions, times, and dates (support for recurring events is a bonus, but maybe not required), and then fetch my daily schedule and print it. Does anybody know a good way to handle this part? I could setup a simple database to store and interact with my schedule, but I feel like there has to already be a good tool like that available. However, my searches keeps pulling up things that aren't quite what I want...

Thanks for reading this! I appreciate any advice you have for the Linux side of things.

View original on gekinzuku.com
24
linux·Linuxbygraham1

YSK How to get a weather report in your terminal

cross-posted from: https://gekinzuku.com/post/394282

Lately I've been obsessed with moving everything that people typically use as widgets into my bashrc. Today I discovered wttr.in, which is an open source project on Github at https://github.com/chubin/wttr.in

Usage is almost trivial. To get weather in your terminal, simply curl the URL with your city after the forward slash. If you live in New York City, use
curl 'https://wttr.in/New%20York'

Now, if that's too much bloat to have covering your precious terminal real estate, instead use
curl 'https://wttr.in/New%20York'?0?A?u which will truncate the curl to only today's weather.

View original on gekinzuku.com
175
code_monkeys·Code Monkeysbygraham1

YSK How to get a weather report in your terminal

Lately I've been obsessed with moving everything that people typically use as widgets into my bashrc. Today I discovered wttr.in, which is an open source project on Github at https://github.com/chubin/wttr.in

Usage is almost trivial. To get weather in your terminal, simply curl the URL with your city after the forward slash. If you live in New York City, use
curl 'https://wttr.in/New%20York'

Now, if that's too much bloat to have covering your precious terminal real estate, instead use
curl 'https://wttr.in/New%20York'?0?A?u which will truncate the curl to only today's weather.

View original on gekinzuku.com
10
programmer_humor·Programmer Humorbygraham1

There is a language that punishes the programmer if they are not polite enough

cross-posted from: https://gekinzuku.com/post/188827

INTERCAL is an esoteric programming language which was purposely designed to be confusing and not visually aesthetic. It has two maintained implementations in C-INTERCAL and CLC-INTERCAL. C-INTERCAL's compiler is invoked by the ick command, and CLC-INTERCAL's compiler is invoked by the sick command.

Some highlights of INTERCAL include

  • Programmers must use PLEASE before statements to avoid compile errors due to being insufficiently polite, but not too many PLEASE statements or the compiler will report errors due to being overly polite.
  • Every call to a random number generator will introduce a random chance of the code failing to compile and report E774 RANDOM COMPILER BUG, and this chance to fail increases with the number of random number generator calls.
  • If compiling in INTERCAL-72 mode, the compiler will report E111 COMMUNIST PLOT DETECTED if the programmer uses features that are newer than INTERCAL-72.

The full list of compiler errors and warnings for C-INTERCAL, as well as related documentation, can be found in the intercal/doc/ick.txi file under the "Errors and Warnings" chapter. If you want to quickly scroll through them, each of the entries are preceded by an @ieanchor tag.

View original on gekinzuku.com
103
code_monkeys·Code Monkeysbygraham1

There is a language that punishes the programmer if they are not polite enough

INTERCAL is an esoteric programming language which was purposely designed to be confusing and not visually aesthetic. It has two maintained implementations in C-INTERCAL and CLC-INTERCAL. C-INTERCAL's compiler is invoked by the ick command, and CLC-INTERCAL's compiler is invoked by the sick command.

Some highlights of INTERCAL include

  • Programmers must use PLEASE before statements to avoid compile errors due to insufficiently polite, but not too many PLEASE statements or the compiler will report errors due to being overly polite.
  • Every call to a random number generator will introduce a random chance of the code failing to compile and report E774 RANDOM COMPILER BUG, and this chance to fail increases with the number of random number generator calls.
  • If compiling in INTERCAL-72 mode, the compiler will report E111 COMMUNIST PLOT DETECTED if the programmer uses features that are newer than INTERCAL-72.

The full list of compiler errors and warnings for C-INTERCAL, as well as related documentation, can be found in the intercal/doc/ick.txi file under the "Errors and Warnings" chapter. If you want to quickly scroll through them, each of the entries are preceded by an @ieanchor tag.

View original on gekinzuku.com
3
linux·Linuxbygraham1

YSK how to get your IP address from the command line

cross-posted from: https://gekinzuku.com/post/98403

While it's easy to get an IP address from popular websites such as whatismyip.com, it's not often friendly to a context where you might need to get your IP address for command line tools.

In order to grab your IP address via the command line, there's a page on a site called ipinfo.io/ip which only contains body content corresponding to your IP address. The easiest way to fetch that data is with the curl command (should be available on both Windows and Linux).

curl ipinfo.io/ip

It may also be beneficial to add this to your .bashrc or .aliasrc on Linux systems with something like

alias myip="curl ipinfo.io/ip"

Now you have an easy way to grab your IP address from the command line!

View original on gekinzuku.com
37
gekinzuku·Gekinzuku Newsbygraham1

Origin of the name Gekinzuku

(attached image: our "About Us" page from the website in 2010 explaining the origin of the name, written by Kori I believe)

Kori, our resident weeb at the time, was always sending random stuff in Japanese in chat despite none of us understanding anything she was saying. When it finally came time and we wanted to come up with a name for the growing group and site, I said "let's do that Japanese word for 'games' that Kori keeps posting... Gekinzuku!"

Everybody thought that was a cool enough word/reason, so that's how the name was born. It's nothing close to ゲームス, but it somehow has a relatively one-to-one translation to the Japanese alphabet, ゲキンズークー. The use of ー characters is to bring the right spoken emphasis across to Japanese for "zu" and "ku", but disclaimer I'm still not a Japanese expert ;)

The group isn't nearly as big as it was in during the 2008-2011 timeframe, but we still have 5-10 active members that we stay in touch with, all united under our common misunderstanding of words posted in a language we didn't even speak.

View original on gekinzuku.com
2
code_monkeys·Code Monkeysbygraham1

YSK how to get your IP address from the command line

While it's easy to get an IP address from popular websites such as whatismyip.com, it's not often friendly to a context where you might need to get your IP address for command line tools.

In order to grab your IP address via the command line, there's a page on a site called ipinfo.io/ip which only contains body content corresponding to your IP address. The easiest way to fetch that data is with the curl command (should be available on both Windows and Linux).

curl ipinfo.io/ip

It may also be beneficial to add this to your .bashrc or .aliasrc on Linux systems with something like

alias myip="curl ipinfo.io/ip"

Now you have an easy way to grab your IP address from the command line!

View original on gekinzuku.com
1
code_monkeys·Code Monkeysbygraham1

How to install a Linux terminal on your phone

Here's how to download and install a Linux terminal via the Termux app on your phone.

Why should you install a Linux terminal on your phone? It allows you to easily ssh, code, and even host webapps from the palm of your hand. Those are my own use examples, but the possibilities are limitless.

Note: The Termux app on the Google play store is out of date and doesn't have the correct permissions to work properly.

  1. Install an alternative app store. You may need to briefly modify permissions to install an app after downloading it via Firefox/Chrome/Brave. I used F-Droid
  2. Install Termux through the app store. You'll know it's the right one if the app page links back to termux.com and the termux/termux-app Github. You may again need to grant permissions to your alternative appstore to install it.
  3. Once you have Termux installed, you'll first want to run pkg upgrade in the terminal to update all the packages. Termux uses the pkg package manager, which wraps apt, to avoid doing dangerous things.
  4. At this point, you've done all the hard setup. If you want to access your phone's local storage, you can mount it by executing termux-setup-storage (see the wiki).
  5. Do you want to run python? Ruby? Npm (not sure why this link is broken)? For all those details and more, check out the Termux wiki.
View original on gekinzuku.com
1

You reached the end