Skip to content

Instantly share code, notes, and snippets.

View whjvenyl's full-sized avatar

whjvenyl whjvenyl

  • Bison Schweiz AG
  • Lucerne, Switzerland
View GitHub Profile
@tomasruud
tomasruud / benq-pd2725u-flicker-fix.md
Created January 28, 2022 13:02
Benq PD2725u monitor flickering/interlacing fix

Benq PD2725u monitor was causing flickering/interlacing artifacts on MacBook Air M1. Suggested fix from Benq support.

What you can try against the error that you experience is the following:

  1. Go to the Apple menu > System Preferences.
  2. Select "Displays"
  3. Select the "Night Shift" tab
  4. Turn off the "Schedule" option by selecting "Off" from the drop-down menu and unchecking "Manual: Turn on until tomorrow".
  5. Wait for 20-30 minutes until the flicker disappears.
@meodai
meodai / fec21.md
Last active September 28, 2021 12:09
Designing Systems FEC21 talk notes
@whjvenyl
whjvenyl / modulesize.sh
Created September 7, 2017 15:25 — forked from brock/modulesize.sh
ModuleSize - shows the percentage of storage your node_modules are taking up
#!/bin/bash
ALL=$(du -s | awk '{print $1}');
NODEMODULES=$(find . -type d -depth 1 -name node_modules | xargs du -s | awk '{print $1}' | awk '{sum+=$1} END {print sum}');
DECIMAL=$(awk "BEGIN {printf \"%.2f\", $NODEMODULES/$ALL}")
PERCENT=$(echo "$DECIMAL*100" | bc)
echo "node_modules are using $PERCENT% of space in the current directory."
@whjvenyl
whjvenyl / gru
Created September 7, 2017 15:22 — forked from brock/gru
GRU: Git Remove Untracked Files
#!/bin/bash
# gru
# Git Remove Untracked (files)
# without this script, you have to manually delete files and directories in your git directory if
# you want to delete them and they are not tracked by git.
# this works as an alias or an executable file
# Explanation:
# git status -s (display the git status of each file, one line at a time, in short format)
# grep '^??' (untracked files will begin with ??)
@idleberg
idleberg / atom-macos-context-menu.md
Last active April 27, 2022 00:37
“Open in Atom” in macOS context-menu

Open in Atom

  • Open Automator
  • Create a new Service
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
  • Set the script action to /usr/local/bin/atom -n "$@"
  • Set “Pass input” to as arguments
  • Save as Open in Atom
@btroncone
btroncone / rxjs_operators_by_example.md
Last active June 15, 2024 07:17
RxJS 5 Operators By Example
@brandondurham
brandondurham / styles.less
Last active June 24, 2024 14:48
Using Operator Mono in Atom
/**
* Using Operator Mono in Atom
*
* 1. Open up Atom Preferences.
* 2. Click the “Open Config Folder” button.
* 3. In the new window’s tree view on the left you should see a file called “styles.less”. Open that up.
* 4. Copy and paste the CSS below into that file. As long as you have Operator Mono SSm installed you should be golden!
* 5. Tweak away.
*
* Theme from the screenshot (http://cdn.typography.com/assets/images/blog/operator_ide2.png):
anonymous
anonymous / index.html
Created September 4, 2015 17:13
Angular Formly Example // source http://jsbin.com/huvifiw
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.rawgit.com/lodash/lodash/3.10.1/lodash.min.js"></script>
<!-- Twitter bootstrap -->
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
<style>
.col-50 {
width: 50%;
anonymous
anonymous / index.html
Created September 4, 2015 17:06
Angular Formly Example // source http://jsbin.com/huvifiw
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.rawgit.com/lodash/lodash/3.10.1/lodash.min.js"></script>
<!-- Twitter bootstrap -->
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
<style>
.col-50 {
width: 50%;
anonymous
anonymous / index.html
Created September 4, 2015 13:14
Angular Formly Example // source http://jsbin.com/huvifiw
<!DOCTYPE html>
<html>
<head>
<!-- Twitter bootstrap -->
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
<style>
.col-50 {
width: 50%;
float:left;