Skip to content

Instantly share code, notes, and snippets.

@caseywatts
caseywatts / 0 push to talk.md
Last active September 21, 2023 13:55
Push To Talk - Google Meet Bookmarklet

Short link to this page: http://caseywatts.com/ptt

Other gists & tricks: http://caseywatts.com/gists-and-tricks

Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book

Push To Talk in a Google Hangout (Meet)

  1. Save this bookmarklet. Right-click on boomarks toolbar Add Page...
  • Name: PTT (push to talk) or whatever you'd like (maybe short so it stays on your bookmarks toolbar)
@shoaibali
shoaibali / setup-silverstripe-development.sh
Last active May 3, 2017 23:31
Sets up ntp, DNSMasq, Git, SilverStripe, MySQL, phpMyAdmin, ATOM, SublimeText, HipChat, Google Chrome, Meld, NPM, NodeJS, yarn, Tools and other system tweaks
#!/bin/bash
echo "---- INSTALLING SYSTEM TOOLS ---"
sudo apt-get update
sudo apt-get install build-essential htop figlet dos2unix dnsmasq curl wget nodejs npm memcached debconf-utils mailutils sendmail sshfs graphviz ntp -y
sudo sh -c 'echo "deb https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client $(lsb_release -c -s) main" > /etc/apt/sources.list.d/atlassian-hipchat4.list'
wget -O - https://atlassian.artifactoryonline.com/atlassian/api/gpg/key/public | sudo apt-key add -
sudo add-apt-repository ppa:webupd8team/sublime-text-3 -y
@fortytw2
fortytw2 / excuses.txt
Last active April 14, 2024 04:59
programming excuses
Actually, that's a feature
Don't worry, that value is only wrong half of the time
Even though it doesn't work, how does it feel?
Everything looks fine my end
How is that possible?
I broke that deliberately to do some testing
I can have a look but there's a lot of if statements in that code!
I can't make that a priority right now
I can't test everything
I couldn't find any examples of how that can be done anywhere else in the project
# Disclaimer - Please don't just execute it blindly, this was ran on Ubuntu 14.04.2 LTS
# I am not responsible for whatever harm this shell script may cause.
# Look at the wget requests in the shell script to make sure you are putting in configuration
# files as they should be.
# Many commands are run as sudo and permissions are changed to www-data etc
# The existing user whose running this shell script also becomes part of www-data user group
# Files downlaoded for this shell script to work - example configuration files
# 1. nginx default sites-available config
# 2. php5-fpm to listen on 9000

Setup Database Backup

Instructions to setup MySQL backup on a server and upload to Amazon S3 including email notification on backup failures. Refer to backup gem for more details

Install rbenv and ruby (skip this if your database server already has Ruby installed)

Install rbenv:

$ sudo apt-get update
$ sudo apt-get -y install curl git-core
@yorch
yorch / ispconfig-migration.sh
Created March 7, 2014 12:39
ISPConfig 3 script to move installation from one server to another
#!/bin/bash
# Migrate ISPConfig 3 installation from one server to another
# This script should run on the final/destination ISPConfig 3 server
# You must first install the same ISPConfig on the destination server
# and make sure to create all the users from the previous installation
# (ISPConfig creates users for each client and web page)
# Tested on ISPConfig version 3.0.5.3
# Created by Jorge Barnaby (@jbarnaby) - March 2014
# EDIT YOUR PREVIOUS ISPCONFIG SERVER HERE
@ryanwachtl
ryanwachtl / _ss_environment.sample.php
Last active July 14, 2018 08:15
Configure SilverStripe using the _ss_environment.php file.
<?php
/**
* Configure SilverStripe from the _ss_environment.php file.
*
* Edit this file and rename from _ss_environment.sample.php to _ss_environment.php.
* Put "require_once('conf/ConfigureFromEnv.php');" into your _config.php file.
* http://doc.silverstripe.org/framework/en/trunk/topics/environment-management
*/
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active May 17, 2024 02:53
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@oodavid
oodavid / README.md
Last active April 6, 2024 18:45 — forked from aronwoost/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/