Skip to content

Instantly share code, notes, and snippets.

Lars Nyström larsnystrom

  • Lund
Block or report user

Report or block larsnystrom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
larsnystrom / getSelection.js
Created Jul 9, 2019
JS to get selected text as well as text before and after.
View getSelection.js
// Also see fiddle at:
function getUnselectedText(containerEl) {
var sel,
before = "",
after = "",
selected = "";

Keybase proof

I hereby claim:

  • I am larsnystrom on github.
  • I am larsnystrom ( on keybase.
  • I have a public key ASDHwmop9vExwObpKe25aDCfxzfzYzAVxVS13W030TaB5Ao

To claim this, I am signing this object:

larsnystrom / Start Hotspot.desktop
Created Jan 10, 2014
Desktop entry files for starting and stopping ap-hotspot, a script for setting upp wireless hotspots in Access Point Mode. Information about ap-hotspot can be found on Save these two files to your desktop and make them executable. If you'd like to run them from the dash yo…
View Start Hotspot.desktop
[Desktop Entry]
Name=Start Hotspot
Comment=Start a wireless hotspot in Access Point Mode
Exec=gksudo /usr/bin/ap-hotspot start
You can’t perform that action at this time.