Kategoriarkiv: Workstation

Screenshot script for Ubuntu 18.04

This script will take a screenshot, upload it to a server and copy the URL into your clipboard and finaly play a sound to tell you that it’s done, first install xclip: apt-get install xclip Create screenshot.sh #!/bin/bash filename=’Screenshot_from_’`date +%Y-%m-%d_%H-%M-%S`’.png’ … Læs resten

Udgivet i Linux, Workstation | Skriv en kommentar

WM independant shortcuts with xbindkeys

First install: apt-get install xbindkeys And create a config file, /home/user/.xbindkeysrc: “/home/user/scripts.sh” Control + Alt + P And run xbindkeys -p

Udgivet i Linux, Workstation | Skriv en kommentar

Installing Vagrant and host-manager with LXC on Ubuntu 18.04

This took me quite a while and failed tries to figure out: apt-get update apt-get install lxc wget https://releases.hashicorp.com/vagrant/2.1.2/vagrant_2.1.2_x86_64.deb dpkg -i vagrant_2.1.2_x86_64.deb vagrant plugin install vagrant-lxc vagrant plugin install vagrant-hostmanager You should probably check if a newer version has been … Læs resten

Udgivet i Development, Linux, Vagrant, Workstation | Skriv en kommentar

Ubuntu 18.04 LTS Default video player totem wont play mp4 files

Took me a while to figure out, but for some reason the gstreamer1.0-vaapi needs to be uninstalled.

Udgivet i Workstation | Skriv en kommentar

Apple-style screenshoting with autoupload

Install xclip and scrot: apt-get install scrot xclip Download a shutter wave, i found one here: https://www.soundjay.com/camera-sound-effect.html Actually this one: https://www.soundjay.com/mechanical/camera-shutter-click-03.wav Add the following lines to your i3 config (~/.config/i3/config): bindsym –release Shift+Print exec –no-startup-id scrot -s -e ‘scp $f root@example.com:/var/www/screenshots && … Læs resten

Udgivet i I3WM, Knowledge Base, Linux, Workstation | Skriv en kommentar

Thinkpad T430s Keybindings i I3

~/.config/i3/config bindsym XF86AudioRaiseVolume exec –no-startup-id pactl set-sink-volume 0 +5% bindsym XF86AudioLowerVolume exec –no-startup-id pactl set-sink-volume 0 -5% bindsym XF86AudioMute exec –no-startup-id pactl set-sink-mute 0 toggle bindcode 156 exec ~/.config/toggletouchpad.sh ~/.config/toogletouchpad.sh #!/bin/bash if synclient -l | grep “TouchpadOff .*=.*0” ; then … Læs resten

Udgivet i I3WM, Knowledge Base, Workstation | Skriv en kommentar

VNC til en aktiv session

mike@reliant:~$ apt-get install tigervnc-scraping-server mike@reliant:~$ vncpasswd Password: Verify: Would you like to enter a view-only password (y/n)? n mike@reliant:~$ x0vncserver -display :0 –PasswordFile=.vnc/passwd

Udgivet i Knowledge Base, VNC, Workstation | Skriv en kommentar

I3 Window Manager notification fra Irssi

Det her virker efter sigende også ved andre systemer end lige i3, men det er jeg ligeglad med for jeg bruger i3wm … and so should you 😉 Først opretter du “.Xresources”, indsætter flg. og genstarter din X: xterm*bellIsUrgent: true … Læs resten

Udgivet i Knowledge Base, Linux, Old Base, Workstation | Skriv en kommentar

Slideshow , autorotation of all files in directory. Written in PHP

<? # read .jpg files into array $dir=opendir(“.”); while ($dat = readdir($dir)) { if (substr($dat,strlen($dat)-4)==”.jpg”) { $pics[]=$dat; }} closedir($dir); # Increment the image value if ($_REQUEST[‘image’]) { $img=$_REQUEST[‘image’]; $img++; } else {$img=1;} if ( $img >= count($pics)) {$img=0;} # Automatic … Læs resten

Udgivet i Knowledge Base, Old Base, Workstation | Skriv en kommentar

Test your browser for common vulnerabilities

http://bcheck.scanit.be/bcheck/

Udgivet i Knowledge Base, Links, Old Base, Workstation | Skriv en kommentar