This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
.spinner { | |
width: 1px; | |
height: 1px; | |
border-radius: 100%; | |
background-color: black; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ScrollMonitor extends React.Component { | |
constructor() { | |
this.handleScrollStart = this.startWatching.bind( this ); | |
this.handleScrollEnd = debounce( | |
this.stopWatching.bind( this ), | |
100, | |
{ leading: false, trailing: true } ); | |
} | |
componentDidMount() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# exit script if a command exits with a non-zero | |
set -e | |
SHOPWARE_VERSION=5.2.26 | |
SHOPWARE_DB_HOST=localhost | |
SHOPWARE_DB_PORT=3306 | |
SHOPWARE_DB_NAME=mydatabase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- vncserver 2013-10-09 16:10:25.000000000 +0000 | |
+++ vncserver.new 2013-10-09 16:12:45.000000000 +0000 | |
@@ -296,7 +296,7 @@ sub CheckDisplayNumber | |
socket(S, $AF_INET, $SOCK_STREAM, 0) || die "$prog: socket failed: $!\n"; | |
eval 'setsockopt(S, &SOL_SOCKET, &SO_REUSEADDR, pack("l", 1))'; | |
- unless (bind(S, pack('S n x12', $AF_INET, 6000 + $n))) { | |
+ unless (bind(S, sockaddr_in(6000 + $n, &INADDR_ANY))) { | |
close(S); | |
return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Download this file | |
# cd /usr/local/etc/rc.d && fetch --no-verify-peer https://gist.githubusercontent.com/PieterScheffers/1ecd70a1bfe640afb98f3cac9630814b/raw/326033ce1c243fd7ecd018684e748234668cf9ff/vncserver | |
# | |
# Make the file executable with: | |
# /usr/local/etc/rc.d/vncserver (chmod +x) | |
# | |
# add to /etc/rc.conf | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// debug a doctrine object or arraycollection | |
\Doctrine\Common\Util\Debug::dump($article->getImages()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get articleID, ordernumber and detailID for an ordernumber | |
SELECT articleID, ordernumber, id as detailID FROM s_articles_details WHERE ordernumber = 'SW10001'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM https://community.spiceworks.com/topic/997397-onedrive-for-business-cache-cleaner | |
REM https://www.poremsky.com/office/clear-onedrive-onedrive-business-cache/ | |
REM https://support.microsoft.com/nl-nl/kb/3038627 | |
REM http://ridilabs.net/post/2014/10/22/OneDrive-for-Business-Consumes-a-lot-Space-on-Office-Cache.aspx#.WBpW6PnhCUk | |
taskkill /im GROOVE.exe | |
taskkill /im msosync.exe | |
taskkill /im msouc.exe | |
taskkill /im onenote.exe | |
taskkill /im onenotem.exe |