Skip to content

Instantly share code, notes, and snippets.

View astamicu's full-sized avatar

Andrei astamicu

  • Bucharest, Romania
View GitHub Profile
@astamicu
astamicu / wamp-aestan.md
Last active October 9, 2020 12:44
Wampserver Aestan Tray Menu error

Could not execute menu item (internal error)...

The problem was with the wrong browser (not available anymore) set in wamp config.

To fix:

  1. Edit the file wampmanager.conf inside your wamp direcotry.
  2. Replace the full file path under the [main] section for the navigator parameter
  3. Save the file
  4. Right-click on the wamp icon and select refresh
@astamicu
astamicu / move-to-next-monitor.sh
Created February 1, 2018 10:54 — forked from fvdnabee/move-to-next-monitor.sh
Moving a window to the other vertical monitor in XFCE 4
#!/bin/sh
#
# Move the current window to the other vertical monitor. Adapted from the
# scripts for horizontal monitors at makandracards.com
#
# Only works on a 2x1 vertical monitor setup.
# Also works only on one X screen (which is the most common case).
#
# Props to
# http://icyrock.com/blog/2012/05/xubuntu-moving-windows-between-monitors/
title: $:/config/tiddlyweb/host
$protocol$//$host$/tw/
#create file in root/WIKINAME/tiddlers
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active May 19, 2024 11:51
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

RESOLVE SCREEN TEARING
Intel HD 3000 graphics will sometimes show tearing during video playback or other fast movement on the screen.
To resolve this, enter the following commands in the Terminal:
sudo mkdir /etc/X11/xorg.conf.d/
echo -e 'Section "Device" \n Identifier "Intel Graphics" \n Driver "Intel" \n Option "TearFree" "true" \nEndSection' | sudo tee /etc/X11/xorg.conf.d/20-intel.conf
Restart the computer to make the settings active.
#backup
sudo cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.$(date "+%b_%d_%Y_%H.%M.%S")
#restart
service nginx restart