Skip to content

Instantly share code, notes, and snippets.

View domantasburba's full-sized avatar

Domantas Burba domantasburba

View GitHub Profile
@Kasama
Kasama / eduroam.md
Last active August 1, 2023 15:49
login into eduroam wifi network via terminal

To login into eduroam from the command line you'll need to have wpa_supplicant package installed. It is part of the core of most Linux distributions, to check if you have it run wpa_supplicant -v

Create profile file

Start by creating a profile file for the network:

wpa_passphrase  <ssid> > <ssid>.profile
@hyOzd
hyOzd / delete-file-and-buffer.el
Created July 21, 2015 11:55
emacs delete current file and close the buffer
;; based on http://emacsredux.com/blog/2013/04/03/delete-file-and-buffer/
(defun delete-file-and-buffer ()
"Kill the current buffer and deletes the file it is visiting."
(interactive)
(let ((filename (buffer-file-name)))
(if filename
(if (y-or-n-p (concat "Do you really want to delete file " filename " ?"))
(progn
(delete-file filename)
(message "Deleted file %s." filename)