Skip to content

Instantly share code, notes, and snippets.

View julien-langlois's full-sized avatar
here and there

Julien Langlois julien-langlois

here and there
View GitHub Profile
@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)
@SanderTheDragon
SanderTheDragon / postman-deb.sh
Last active April 7, 2025 12:40
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
# SPDX-FileCopyrightText: 2017-2024 SanderTheDragon <[email protected]>
#
# SPDX-License-Identifier: MIT
arch=$(dpkg --print-architecture)
echo "Detected architecture: $arch"
case "$arch" in
@sgargan
sgargan / aliases
Created May 23, 2017 10:30
Aliases
alias a='ack '
alias ae='a --ignore-dir=./log --ignore-dir=./assets --ignore-dir=out --ignore-dir=db --ignore-dir=bower_components --ignore-dir=node_modules --ignore-dir=dist --ignore-dir=tmp '
alias ae='a --ignore-dir=log --ignore-dir=assets --ignore-dir=out --ignore-dir=db --ignore-dir=bower_components --ignore-dir=node_modules --ignore-dir=dist --ignore-dir=tmp '
alias ai='a --ignore-dir=log --ignore-dir=out '
alias akey='ssh-add /Users/sgargan/devroot/projects/devops/ansible/keys/ansible'
alias ala='history | grep "alias .*=.*"| tail -1 | cut -c 8- >> ~/.omz/custom/aliases.zsh;sort ~/.omz/custom/aliases.zsh | uniq | sort -o ~/.omz/custom/aliases.zsh'
alias amend='git commit --amend'
alias anp="ansible-playbook"
alias ap='ack --passthru '
alias ap='ack-grep --passthru'
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 21, 2025 23:44
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@jeffreymorganio
jeffreymorganio / .block
Created May 6, 2017 15:13
Click to center a Leaflet JS map marker
license: mit
@flesler
flesler / post-checkout
Created April 19, 2017 14:02 — forked from betorobson/post-checkout
git hook to run a command after `git pull` and `git checkout` if a specified file was change for example, package.json or bower.json
#!/usr/bin/env bash
# fork from https://gist.github.com/jakemhiller/d342ad51505addf78ec628a16fd3280f
changed_files="$(git diff-tree -r --name-only --no-commit-id $1 $2)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
}
check_run package.json "npm prune && npm install"
@guilhermepontes
guilhermepontes / shuffle.js
Last active October 29, 2023 01:41
Shuffle Array - JavaScript ES2015, ES6
// original gist
const shuffleArray = arr => arr.sort(() => Math.random() - 0.5);
// fully random by @BetonMAN
const shuffleArray = arr => arr
.map(a => [Math.random(), a])
.sort((a, b) => a[0] - b[0])
.map(a => a[1]);
shuffleArray([1, 2, 3]) //[3, 1, 2]
@2E0PGS
2E0PGS / linux-usb-file-copy-fix.md
Last active February 20, 2025 20:55
Fix Ubuntu and other Linux slow/hanging file copying via USB.

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

I suggest you edit your /etc/rc.local file to make this change persistant across reboots.

sudo nano /etc/rc.local

@chronon
chronon / ext.txt
Created February 18, 2017 15:38
List of docker-php-ext-install extension names
Possible values for ext-name:
bcmath
bz2
calendar
ctype
curl
dba
dom
enchant
@wgx
wgx / bitbucket-pipelines.yml
Created February 10, 2017 16:27
A sample bitbucket pipelines deployment configuration with Jekyll and s3_website
image: ruby:2.1.7
pipelines:
default:
- step:
script:
- bundler --version
- bundle install
- bundle exec jekyll build
branches: