Skip to content

Instantly share code, notes, and snippets.

@ghutchis
ghutchis / molml.py
Last active April 20, 2024 16:30
Open Babel / Pybel script to report all bonds, angles, torsions, and non-bonded interactions
#!/usr/bin/env python
import sys, os
from openbabel import openbabel as ob
from openbabel import pybel
# syntax:
# molml.py [files]
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active April 20, 2024 16:30
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@mtvbrianking
mtvbrianking / laravel eloquent query debug.md
Last active April 20, 2024 16:29
Laravel debug (dump) database queries

Laravel debug database queries

Raw SQL

SELECT
  users.name AS staff,
  facilities.name AS facility
FROM
  users

Rating System:

| 😑 - Awful | 😠 - Bad | 😐 - Fine | πŸ˜ƒ - Good | 😁 - Exceptional |

---------------------------------------------------------------------------------------------------------------

books listed in chronological order from last read to first read

  • πŸ˜ƒ - Surveillance Valley - Yasha Levine
  • πŸ˜ƒ - The Ransomware Hunting Team - Renee Dudley and Daniel Golden
  • 😠 - CRACK99 - David Locke Hall
  • πŸ˜ƒ - The Spy Who Couldn't Spell - Yudhijit Bhattacharjee
  • 😐 - The Fifth Domain - Richard A. Clarke, Robert K. Knake
  • 😁 - Fancy Bear Goes Phishing: The Dark History of the Information Age, in Five Extraordinary Hacks - Scott J. Shapiro
@Ynng
Ynng / custom.css
Last active April 20, 2024 16:26
vscode vtuber logo
.editor-group-watermark > .letterpress{
background-image: url("https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode.png") !important;
opacity: .75;
}
@darklow
darklow / celery_tasks_error_handling.py
Last active April 20, 2024 16:25
Celery tasks error handling example
from celery import Task
from celery.task import task
from my_app.models import FailedTask
from django.db import models
@task(base=LogErrorsTask)
def some task():
return result
class LogErrorsTask(Task):
#!/usr/bin/env perl
use strict;
use warnings;
use Pod::Usage;
use Getopt::Long;
use File::Slurp 'slurp';
my %options;
GetOptions(\%options, "--show", "--help");
@thesamesam
thesamesam / xz-backdoor.md
Last active April 20, 2024 16:20
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is still a new situation. There is a lot we don't know. We don't know if there are more possible exploit paths. We only know about this one path. Please update your systems regardless.

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

@FreddieOliveira
FreddieOliveira / docker.md
Last active April 20, 2024 16:20
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android πŸ‹πŸ“±

Edit πŸŽ‰

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

<link rel="shortcut icon" width=32px>
<canvas style="display: none" id="loader" width="16" height="16"></canvas>
<script>
class Loader {
constructor(link, canvas) {
this.link = link;
this.canvas = canvas;
this.context = canvas.getContext('2d');
this.context.lineWidth = 2;