Skip to content

Instantly share code, notes, and snippets.

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
View wamp-aestan.md

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
View move-to-next-monitor.sh
#!/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/
View $__config_tiddlyweb_host.tid
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 29, 2023 21:15
Script to remove all videos from Youtube Watch Later playlist
View Remove videos from Youtube Watch Later playlist.md

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();
View Effective_Engineer.md

Effective Engineer - Notes

What's an Effective Engineer?

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

Adopt the Right Mindsets

View gist:0507afb98411450c43d2d0b992702f12
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.
View gist:546a963c11038b11586213de785919b6
#backup
sudo cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.$(date "+%b_%d_%Y_%H.%M.%S")
#restart
service nginx restart