Skip to content

Instantly share code, notes, and snippets.

View demoklion's full-sized avatar
🍤
lurking

Ján Dugovič demoklion

🍤
lurking
View GitHub Profile
@endolith
endolith / readme.md
Last active July 18, 2024 18:29
How to stream a webcam to a web browser in Ubuntu

Grr this took hours to figure out. I was trying to install MJPG-streamer and running VLC command lines and all this crap but nothing worked.

First install motion:

~> sudo apt-get install motion

Then create a config file:

~> mkdir ~/.motion

~> nano ~/.motion/motion.conf

@bassu
bassu / Lenovo ThinkPad X230 Continous Review.md
Last active March 23, 2024 23:50
A Hacker's Ongoing Review of Lenovo ThinkPad X230

A Hacker's Ongoing Review for Lenovo ThinkPad X230

For Arch Linux Wiki: https://wiki.archlinux.org/index.php/ThinkPad_X230

Upate Aug 30, 2014 The machine died. Hopefully it enjoyed it short life!

Update: Aug 02, 2014 One early morning, the machine died after waking up from to cold unsuspend. It didn't start after then. Even couldn't get into POST. Power LED only lit for a second or two. Hard reset of 30 seconds also failed. Before declaring motherboard totally toasted, gave it a last try as suggested by our good ol' friend Pablo Stafforini. Took it a apart, unplugged battery and CMOS battery and let it sit for nearly 11 hours. It WORKED like a preposterous CPR supposedly to a machine! What a joke ;)

@cmcginty
cmcginty / keypass-setup-and-sync.md
Last active April 26, 2024 17:59
KeePass2 Password Manager Settings and Auto-Synchronization

KeePass2 Setup and Auto-Synchronization Guide

KeePass is a password management utility for Windows, Linux, and Mac.

The first section describes the steps needed to setup KeyPass2 in Linux and how to add FireFox and Chrome plugin integrations.

The (optional) second section documents a robust way to automatically synchronize the password DB across multiple devices.

@janrenn
janrenn / typography.js
Created December 5, 2018 22:45
Applies some basic typographic rules on text.
/**
* Applies some basic typographic rules on text.
*
* @param {String} text Text the rules should be applied on
* @param {Boolean} removeEmpty Whether to remove empty <p>s
* @returns {String} Adjusted text
* @version 0.2
* @author %AUTHOR%
*/
typography: function (text, removeEmpty) {
@krtek
krtek / _vpn_start
Last active July 3, 2020 07:33
MacOS X Cisco AnyConnect Automation
#!/usr/bin/osascript
tell application "Cisco AnyConnect Secure Mobility Client" to activate
delay 1
tell application "System Events" to tell process "Cisco AnyConnect Secure Mobility Client"
key code 36
end tell
tell application "System Events"
repeat until (exists window "Cisco AnyConnect | VPN KB NONSTANDARD" of application process "Cisco AnyConnect Secure Mobility Client")