A script to fix EDID problems on external monitors in macOS.
-
Connect only the problem display.
-
Create this directory structure (if it doesn't already exist):
| path to jrockit /usr/lib/jvm/java-6-jrmc4 | |
| then use | |
| sudo update-java-alternatives -l or -s to select your version of java | |
| sudo update-alternatives --install /usr/bin/appletviewer appletviewer /usr/lib/jvm/java-6-jrmc4/bin/appletviewer 64 | |
| sudo update-alternatives --install /usr/bin/apt apt /usr/lib/jvm/java-6-jrmc4/bin/apt 64 | |
| sudo update-alternatives --install /usr/bin/extcheck extcheck /usr/lib/jvm/java-6-jrmc4/bin/extcheck 64 | |
| sudo update-alternatives --install /usr/bin/idlj idlj /usr/lib/jvm/java-6-jrmc4/bin/idlj 64 | |
| sudo update-alternatives --install /usr/bin/jarsigner jarsigner /usr/lib/jvm/java-6-jrmc4/bin/jarsigner 64 |
| #!/bin/bash | |
| # | |
| # Purpose: manually associate missed renames in merge conflicts | |
| # | |
| # Usage: git merge-associate <our-target> <base> <theirs> | |
| # | |
| # Example: After a failed rename detection A/a -> B/b which results | |
| # in CONFLICT (delete/modify) for A/a and corresponding "deleted by us" | |
| # messages in git status, the following invocation can be used to manually | |
| # establish the link: |
| #!/bin/sh | |
| # | |
| # ******************************************* | |
| # WARNING: this does *not* handle 3-way merges properly. | |
| # Anything modified on the local branch since the common base will get ignored. | |
| # | |
| # FOR ANYONE LANDING HERE: | |
| # This script is now updated as part of the git-whistles gem. | |
| # https://github.com/mezis/git-whistles | |
| # ******************************************* |
| #include <stdio.h> | |
| #define CONFIG_FOO 1 | |
| #define CONFIG_NOO 0 | |
| #define is_set(macro) is_set_(macro) | |
| #define macrotest_1 , | |
| #define is_set_(value) is_set__(macrotest_##value) | |
| #define is_set__(comma) is_set___(comma 1, 0) | |
| #define is_set___(_, v, ...) v |
| #!/bin/bash | |
| function actual_path() { | |
| if [ [ -z "$1" ] -a [ -d $1 ] ]; then | |
| echo $(cd $1 && test `pwd` = `pwd -P`) | |
| return 0 | |
| else | |
| return 1 | |
| fi | |
| } |
| # This is supposedly what CRIME by Juliano Rizzo and Thai Duong will do | |
| # Algorithm by Thomas Pornin, coding by xorninja, improved by @kkotowicz | |
| # http://security.blogoverflow.com/2012/09/how-can-you-protect-yourself-from-crime-beasts-successor/ | |
| import string | |
| import zlib | |
| import sys | |
| import random | |
| charset = string.letters + string.digits + "%/+=" |
| # ##### BEGIN GPL LICENSE BLOCK ##### | |
| # | |
| # This program is free software; you can redistribute it and/or | |
| # modify it under the terms of the GNU General Public License | |
| # as published by the Free Software Foundation; either version 2 | |
| # of the License, or (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 1) see re: increasing shmmax http://stackoverflow.com/a/10629164/1283020 | |
| 2) add to postgresql.conf: | |
| shared_preload_libraries = 'pg_stat_statements' # (change requires restart) | |
| 136 pg_stat_statements.max = 1000 | |
| 137 pg_stat_statements.track = all | |
| 3) restart postgres | |
| 4) check it out in psql |
| #include <sys/eventfd.h> | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <string.h> | |
| #include <errno.h> | |
| #include <fcntl.h> | |
| // Implemented by Vitaly "_Vi" Shukela in 2015, License=MIT. |