Skip to content

Instantly share code, notes, and snippets.

View d4rkd0s's full-sized avatar
🌐
d4rkd0s.com

Logan Schmidt d4rkd0s

🌐
d4rkd0s.com
View GitHub Profile
@frazei
frazei / spotlight.md
Last active September 7, 2023 07:56
Rebuild Spotlight Index and Troubleshoot Spotlight Permissions #osx #spotlight #outlook

Rebuild Spotlight Index and Troubleshoot Spotlight Permissions

Launch the Terminal from Applications > Utilities to fix Mac Outlook 2019 search not working issue.

Now, press Enter after typing each command as listed below,

% sudo mdutil -i off /
% sudo rm -rf /.Spotlight* sudo rm -rf /.metadata_never_index

Restart the system and also type the below commands in the terminal

@joelharkes
joelharkes / EventServiceProvider.php
Last active April 30, 2021 19:35
Sqreen implementation for laravel, SQREEN_ID configurable in environment variable
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Event;
class EventServiceProvider extends ServiceProvider
{
/**
@triple-j
triple-j / DisallowShaking.reg
Last active July 3, 2022 15:35
Disable Aero Shake in All Versions of Windows 10 via the Registry (https://www.askvg.com/guide-how-to-create-registry-script-reg-files-in-windows/)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"DisallowShaking"=dword:00000001
@armollica
armollica / README.md
Last active November 12, 2024 00:55
Rocket League Rank Icons
@altaurog
altaurog / docker_descendants.py
Last active August 11, 2024 09:08
Python3 script to find descendants of one or more docker images
#!/usr/bin/python3
#
# usage: python3 docker_descendants.py <image_id> ...
import sys
from subprocess import check_output
def main(images):
image_ids = set(images)
@haskaalo
haskaalo / tarcheatsheet.md
Last active March 15, 2025 23:47
Tar usage / Tar Cheat Sheet

Tar Usage / Cheat Sheet

Compress a file or directory

e.g: tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

  • -c: Create an archive.
  • -z: Compress the archive with gzip.
  • -v: makes tar talk a lot. Verbose output shows you all the files being archived and much.
  • -f: Allows you to specify the filename of the archive.
container_commands:
...
04_nodejs_install:
command: curl --silent --location https://rpm.nodesource.com/setup_4.x | sudo bash - && yum install nodejs -y
05_npm_build:
command: cd /var/app/ondeck && sudo npm install && node ./node_modules/webpack/bin/webpack.js -p
@CMCDragonkai
CMCDragonkai / nginx_fastcgi_errors.md
Last active April 3, 2025 23:28
NGINX: Common FastCGI Errors involving PHP-FPM

Common FastCGI Errors involving PHP-FPM

  1. 504 Gateway Timeout

    upstream timed out (110: Connection timed out) while reading response header from upstream
    

Means NGINX timed out reading the HTTP response header from upstream. This

@gene1wood
gene1wood / example_aws_lambda_cloudformation_context.md
Last active April 11, 2025 18:04
Details on the AWS Lambda Python LambdaContext context object when instantiated from a CloudFormation stack

LambdaContext

Here is the raw output from examining the Python LambdaContext context object in a AWS Lambda function when called from a CloudFormation stack. More information on the context object can be found here : http://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html

LambdaContext object : print(context)

<__main__.LambdaContext object at 0x7fd706780710>

LambdaContext vars : vars(context)

@d4rkd0s
d4rkd0s / fix.php
Created September 30, 2014 01:06
Magic Quotes in PHP5.4+ (How to fix GET's and POST's and get them escaped)
// This replicates magic_quotes_gpc in PHP 5.4+
foreach($_POST as $key => $val){
$_POST[$key] = addslashes($val);
}
foreach($_GET as $key => $val){
$_GET[$key] = addslashes($val);
}