"Search first, Code later" - xnohat
This is a unshorted list of SaaS (Software as a Service) for lazy Developer.
"Search first, Code later" - xnohat
This is a unshorted list of SaaS (Software as a Service) for lazy Developer.
var deleteAllGroupMembers = (function () { | |
var deleteAllGroupMembers = {}; | |
// the facebook ids of the users that will not be removed. | |
// IMPORTANT: add your own facebook id here so that the script will not remove yourself! | |
var excludedFbIds = ['1234','11223344']; // make sure each id is a string! | |
var usersToDeleteQueue = []; | |
var scriptEnabled = false; | |
var processing = false; | |
deleteAllGroupMembers.start = function() { |
<!doctype html> | |
<script> | |
if ("WebSocket" in window) { | |
var ws = new WebSocket("ws://127.0.0.1:31339"); | |
ws.onopen = function() { | |
console.log('connected'); | |
}; | |
ws.onerror = function(e) { |
window.Clipboard = (function(window, document, navigator) { | |
var textArea, | |
copy; | |
function isOS() { | |
return navigator.userAgent.match(/ipad|iphone/i); | |
} | |
function createTextArea(text) { | |
textArea = document.createElement('textArea'); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Bubble Chart</title> | |
<link type="text/css" rel="stylesheet" href="bubble.css"/> | |
<style type="text/css">body{margin:0;font: 10px sans-serif;}</style> | |
</head> | |
<body> | |
<div id="chart"></div> |
If you want to test your connection or have some other reason to use the command line to download a file, this is how.
See http://superuser.com/a/284147 for more information.
Open cmd.exe
and use this format:
bitsadmin /transfer debjob /download /priority normal http://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-8.7.1-i386-xfce-desktop.iso D:\Users\[Username]\Downloads\debian-live-8.7.1-i386-xfce-desktop.iso
# Paste this entire script into NuGet Package Manager Console with an open solution in Visual Studio. | |
# This script will locate projects with duplicate dependencies in packages.config and remove them. | |
Function Get-Duplicate { | |
param([Parameter(Position=0, Mandatory=$true, ValueFromPipeline=$true)]$array, [switch]$count) | |
begin { | |
$hash = @{} | |
} | |
process { | |
$array | %{ $hash[$_] = $hash[$_] + 1 } |
rem execute as an Administrator | |
rem based on http://www.windowsdevcenter.com/pub/a/windows/2005/02/08/NTFS_Hacks.html | |
ram based on https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-2000-server/cc938961(v=technet.10) | |
rem http://archive.oreilly.com/cs/user/view/cs_msg/95219 (some installers need 8dot3 filenames) | |
rem disable 8dot3 filenames | |
ram Warning: Some applications such as incremental backup utilities rely on this update information and do not function correctly without it. | |
fsutil behavior set disable8dot3 1 |
cd /var/www/mautic | |
mkdir app/spool/ | |
find . -type d -exec chmod 755 {} \; | |
find . -type f -exec chmod 644 {} \; | |
chmod -R g+w app/cache/ | |
chmod -R g+w app/logs/ | |
chmod -R g+w app/config/ | |
chmod -R g+w media/files/ | |
chmod -R g+w media/images/ | |
chmod -R g+w translations/ |
### IMPROVE SYSTEM MEMORY MANAGEMENT ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness=10 | |
vm.vfs_cache_pressure = 50 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |