0

Upvote the issue on Github if you want to see this feature added into VSCode.

7
submitted 1 month ago* (last edited 1 month ago) by trymeout@lemmy.world to c/linux4noobs@programming.dev

I was able to setup a debugger using a launch mode using Visual Studio Code with the Bash Debug extension. Is it possible to setup the debugger in VSCode to be able to debug a bash script using a attach debug mode?

For debugging scripts on the host machine and scripts inside a docker container?

1
submitted 1 month ago by trymeout@lemmy.world to c/bash@lemmy.ml

I was able to setup a debugger using a launch mode using Visual Studio Code with the Bash Debug extension. Is it possible to setup the debugger in VSCode to be able to debug a bash script using a attach debug mode?

For debugging scripts on the host machine and scripts inside a docker container?

[-] trymeout@lemmy.world 3 points 1 month ago

VSCodium > VSCode

5
submitted 2 months ago* (last edited 1 month ago) by trymeout@lemmy.world to c/vscode@programming.dev

Here is how you can add a simple action to open a folder in VSCodium within Nemo file manager.

  1. Create a new file in ~/.local/share/nemo/actions/ and name the file vscodium.nemo_action
  2. Open the file in a text editor
  3. Copy the code below into the file
[Nemo Action]
Name=Open in VSCodium
Comment=Open VSCodium in the selected folder
Exec=codium %F
Icon-Name=vscodium
Selection=Any
Extensions=dir;
  1. Save the changes made to the file
  2. Now when you right click inside a folder in Nemo, it will show an option "Open in VSCodium" and when you click this option, it will launch VSCodium using the currently directory as the workspace.

This can be modified to work with Visual Studio Code (Which is closed source unlike VSCodium) by editing codium %F to code %F

[-] trymeout@lemmy.world 1 points 2 months ago
[-] trymeout@lemmy.world 1 points 2 months ago

Thank you Thunder devs for adding this feature fully into Thunder!

1
Do we need Live Reload (Watch) in bundlers? (marketplace.visualstudio.com)

Do we need live reload feature in bunders? Couldn't we just use this extension for Visual Studio Code or simular features and extensions in other IDEs which will execute a custom command of your choice when you save a file with a certain file extension in your IDE?

https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave

This extensions allows you to customize the commands to execute in saving a file in your global VSCode settings and in the VSCode workspace settings .vscode/settings.json, allowing others to use the same configuration in group projects.

Lightning CSS does not have a live reload feature and the live reload feature in Rollup cannot handle watching many files, however using this extension in VSCode, will not watch files but run the npm run dev:css or npm run dev:js command when saving a css or js file without watching for files to change.

One downside I see with this is when working on a project with others who are using different IDEs that do not support this feature. Besides that, is there any downsides to this approach?

[-] trymeout@lemmy.world 1 points 5 months ago

The explore feature for the local instance has been made!!!

Please add the explore feature to explore the entire fediverse!

15

Is there an easy way to enable a inactivity timer when using a TTY like in Ubuntu Server for when there has been no inactivity for X seconds, it will execute vlock and lock the TTY.

11

Lets say I have a simple JS library. Most of the JS code is inside an object named after the library with the properties being the method functions. Some of these method functions require other method functions (Example, methodC() requires methodA()).

const myLibrary = {
   methodA: function() {...},
   methodB: functiom() {...},
   methodC: function() {...},
   methodD: function() {...}
}

How would I split these methods up into modules and split up this code into multiple files to make it a standard file structure for a NPM package. Currently all of the code is in one large JS file, and it could be broken down into modules. I would like to keep it all in the one object myLibrary like most NPM packages which when used, have the following syntax...

myLibrary.methodB(true, true);

Were all the methods are contained inside a object.

Any help will be most appreciated.

[-] trymeout@lemmy.world 1 points 5 months ago

Changing Type=oneshot and adding RemainAfterExit=yes underneath does not allow me to boot into my system. I get this as the last terminal message

[ OK ] Reached target Cloud-init target.

No biggie to fix since I did this in a Virtual machine and could restore to an older snapshot.

1

On Ubuntu Server and Arch I was able to change the following line in /lib/systemd/system/getty@.service

# Before
ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear %I $TERM


# After
ExecStart=-/sbin/agetty --noissue --autologin john %I $TERM Type=idle

And it works, that it will login to the user john but when I logout of the user john with using exit in the terminal, it logs john back in. Is there a way to change this ExecStart setting to enable auto login for a user on startup but only on startup?

15

On Ubuntu Server and Arch I was able to change the following line in /lib/systemd/system/getty@.service

# Before
ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear %I $TERM


# After
ExecStart=-/sbin/agetty --noissue --autologin john %I $TERM Type=idle

And it works, that it will login to the user john but when I logout of the user john with using exit in the terminal, it logs john back in. Is there a way to change this ExecStart setting to enable auto login for a user on startup but only on startup?

[-] trymeout@lemmy.world 1 points 6 months ago

I do use dropbear-initramfs. However the issue if I power off or the power goes out while I am unlocking the computer, I will be unable to reboot the computer using WOL. Is there something like dropbear-initramfs but instead of it being a SSH server for the LUKS lockscreen, it is a WOL enabler?

8
submitted 6 months ago by trymeout@lemmy.world to c/webdev@lemmy.world

When using dependencies such as NPM packages, Composer packages. Weather you use a CDN or host the packages on the web server, don't many packages out there require you to display the licenses of the package being used and show attributions?

How would one place this on their website? I even went to several websites to see how they do this and could not find a section and I am sure these website use packages that require the license to be listed and list the attributions.

I can find the licenses and attributions of packages used in many applications on desktop and mobile, usually in the apps "about" page.

1

When using dependencies such as NPM packages, Composer packages. Weather you use a CDN or host the packages on the web server, don't many packages out there require you to display the licenses of the package being used and show attributions?

How would one place this on their website? I even went to several websites to see how they do this and could not find a section and I am sure these website use packages that require the license to be listed and list the attributions.

I can find the licenses and attributions of packages used in many applications on desktop and mobile, usually in the apps "about" page.

1

I have gotten Wake On LAN (WOL) setup and working. However my machine is a Ubuntu machine using full disk LUKS encryption which means when booting it up, it requires a password/passphrase to unlock the machine before it boots into Ubuntu. The WOL systemD service I created will always make sure WOl is enabled for the next time the machine reboots, however if I reboot the machine and fail to unlock the device on the full disk encryption menu and the machine shut down, WOL will not be enabled which means WOL is not going to work to turn on the machine again.

Is there a way to enable WOL on the system full disk LUKs encryption lock screen?

[-] trymeout@lemmy.world 19 points 6 months ago* (last edited 6 months ago)

Please add the crypto addresses to the site sidebar under donations. You also may want to consider accepting BTC, BCH and LTC. Glad your accepting XMR though for private donations.

[-] trymeout@lemmy.world 2 points 6 months ago

The customizable post metadata is amazing! Would like to see customizeable comment metadata if possible.

Thank you devs for allowing us to customize the upvote downvote display on comments and posts!

[-] trymeout@lemmy.world 58 points 7 months ago* (last edited 7 months ago)

Discord is the worst. Requires a phone number, does not allow email aliases and logs your chats.

Matrix and SimpleX is way better

[-] trymeout@lemmy.world 1 points 8 months ago

I did find a TUI text editor that I like that is better than nano.

Micro https://micro-editor.github.io/

[-] trymeout@lemmy.world 1 points 8 months ago

Isnt X being replaced with wayland? I may do that in the future once wayland is more adopted.

However I would like to achieve this on headless servers with no GUI at all.

I prefer using Rustdesk if I have to remote into a machine and see the machines GUI.

view more: next ›

trymeout

joined 1 year ago