Skip to content

Instantly share code, notes, and snippets.

@worthwhileindustries
worthwhileindustries / README.md
Created May 19, 2024 17:34 — forked from Cubixmeister/README.md
Simple Sentry docker-compose.yml
  1. Download docker-compose.yml to dir named sentry
  2. Change SENTRY_SECRET_KEY to random 32 char string
  3. Run docker-compose up -d
  4. Run docker exec -it sentry_sentry_1 sentry upgrade to setup database and create admin user
  5. Run docker exec -it pip install sentry-slack if you want slack plugin, it can be done later
  6. Run docker restart sentry_sentry_1
  7. Sentry is now running on public port 9000
@worthwhileindustries
worthwhileindustries / api.php
Created October 27, 2023 19:13 — forked from pixelbrackets/api.php
Simple PHP script to test and use cURL
<?php
/**
* Simple request response script
*
* Point you cURL request to this script to see all incoming data
*/
echo '*API*'. PHP_EOL;
@worthwhileindustries
worthwhileindustries / install-toolbox.sh
Created June 3, 2022 15:41 — forked from greeflas/install-toolbox.sh
JetBrains Toolbox installation script for Ubuntu - https://www.jetbrains.com/toolbox/app/
#!/bin/bash
set -e
if [ -d ~/.local/share/JetBrains/Toolbox ]; then
echo "JetBrains Toolbox is already installed!"
exit 0
fi
echo "Start installation..."
curl --user-agent "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.1 Mobile Safari/537.36 (compatible);" -v $@
@worthwhileindustries
worthwhileindustries / ffmpeg.md
Created May 6, 2021 16:53 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@worthwhileindustries
worthwhileindustries / react-var_dump.js
Created December 10, 2020 23:25 — forked from 8ctopotamus/react-var_dump.js
Display data in React, kinda like PHP's var_dump();
const dataDump = props => <pre>{JSON.stringify(props, null, 2)}</pre>
@worthwhileindustries
worthwhileindustries / OrSearchFilter.php
Created February 21, 2019 21:15 — forked from axelvnk/OrSearchFilter.php
Api platform OR search filter
<?php
namespace Axelvkn\AppBundle\Filter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface;
use ApiPlatform\Core\Exception\InvalidArgumentException;
use Doctrine\ORM\QueryBuilder;
class OrSearchFilter extends SearchFilter
xcode with development tools
homebrew
rvm
vagrant
virtualbox
iterm2
alfred
http://spectacleapp.com/ (allows you to snap windows around with kb shortcuts)
BetterSnapTool if spectacle doesn't do what you want
remap your caps lock key to command
@worthwhileindustries
worthwhileindustries / logout_all_users.php
Created October 11, 2018 21:16 — forked from junaidpv/logout_all_users.php
Drupal 7 CLI script to logout all users and clear sessions
<?php
// Bootstrap
// Change chdir to the full path of your Drupal root
define('DRUPAL_ROOT', getcwd());
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] = $_SERVER['PHP_SELF'];
$_SERVER['REMOTE_ADDR'] = "127.0.0.1";
$_SERVER['REQUEST_METHOD'] = NULL;
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
@worthwhileindustries
worthwhileindustries / docker-cleanup-resources.md
Created September 18, 2018 18:02 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm