Skip to content

Instantly share code, notes, and snippets.

View jellykells's full-sized avatar
💭
getting distracted

JayKay jellykells

💭
getting distracted
  • Behind you
View GitHub Profile
@jellykells
jellykells / clip.py
Created October 8, 2022 21:03 — forked from aeris/clip.py
Copy/paste from command line with Klipper
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
import argparse, dbus, sys
bus = dbus.SessionBus()
klipper = bus.get_object('org.kde.klipper', '/klipper')
@jellykells
jellykells / migrate-pterodactyl.md
Created July 27, 2022 01:30 — forked from Software-Noob/migrate-pterodactyl.md
Pterodactyl panel and wings migration

Pterodactyl Migration

Migrating panel

  1. Backup your hidden .env file containing the decryption APP_KEY from /var/www/pterodactyl

  1. Export the database, in this case ours is named panel
@jellykells
jellykells / View Hyper-V Snapshot Merge Status
Created May 6, 2019 07:20
Run the following command in PowerShell to view a Hyper-V Snapshot Merge Status, including the percentage complete.
get-wmiobject -namespace “root\virtualization” -Query “select * from Msvm_ConcreteJob” | Where {$_.ElementName -eq ‘Merge in Progress’}
@jellykells
jellykells / Update Local Branches From Remote
Created May 6, 2019 07:18
I was having an issue where Atom wouldn't list all the branches in a repository I cloned. This updates every local branch from it's remote tracking branch. Credit to Wookie88 on stackoverflow https://stackoverflow.com/a/10312587
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all