[go: nahoru, domu]

Skip to content

Instantly share code, notes, and snippets.

@Pulimet
Pulimet / AdbCommands
Last active June 1, 2024 20:59
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@taiwbi
taiwbi / gnome-transparent-sidebar.css
Last active June 1, 2024 20:57
Make Gnome applications sidebar semi-transparent, and add blur with Blur My Shell Extension if you want to
/* Mohammad Mahdi Tayebi
*
* To apply transparent sidebar. copy this file into ~/.config/gtk-4.0/gtk.css and if
* you use adw-gtk3 theme you can add it to ~/.config/gtk-3.0/gtk.css as well
*
* Use blur my shell extension to add blur effect behind the transparent part of windows
*/
/* Transparent Sidebar */
window {
@michaellevin
michaellevin / maya_world2screen.py
Last active June 1, 2024 20:57
Maya API world to camera space
import maya.OpenMaya as om
import maya.OpenMayaUI as omui
import maya.cmds as cmds
def world_to_screen(point, camera_name):
"""Converts a 3D point in world space to screen space coordinates.
Args:
point (om.MPoint): The 3D point in world space.
camera_name (str): The name of the camera to use for the transformation.
@awesomebytes
awesomebytes / debian_from_ros_pkg.md
Last active June 1, 2024 20:55
How to create a debian from a ROS package
@wadimw
wadimw / adaptMonitorBrightness-M27Q.py
Last active June 1, 2024 20:45
Python script for MacOS which changes brightness of Gigabyte M27Q KVM Monitor to match current brightness of builtin MacBook Pro display; this is instead of Lunar app, because DDC/CI commands do not work for me over USB-C DisplayPort
#!/usr/local/bin/python3
# For Gigabyte M27Q KVM connected over USB-C
#
# Reads brightness value of builtin display from system, adapts it (Lunar-style) and sends over USB command to external display
#
# You need PyUSB and PyObjC
#
# Not much testing was done so far, only on MBP A1990 15" 2019 i7 555X
#
@atrinh0
atrinh0 / pluraliser_issues.swift
Last active June 1, 2024 20:38
Foundation Pluraliser Potential Issues
import SwiftUI
struct ContentView: View {
// sample of data was compiled using the following sources:
// https://birdgei.com/2011/08/30/list-of-100-irregular-plural-nouns-in-english/
// https://www.grammarly.com/blog/plural-nouns/
// https://www.thoughtco.com/irregular-plural-nouns-in-english-1692634
// https://www.ef.co.uk/english-resources/english-grammar/singular-and-plural-nouns/
// google
@brooksvb
brooksvb / Uptime-Kuma-Status-Page-Dark-Mode-High-Density-Tweaks.css
Last active June 1, 2024 20:36
These CSS tweaks are for higher density display for Uptime Kuma status pages in dark mode.
:root {
--min-item-width: 28ch;
--max-item-width: .5fr;
--grid-spacing: .25rem;
--item-padding: .25rem;
}
/* Let items expand on small screens */
@media (max-width: 600px) {
:root {
@feczkob
feczkob / autoinstall.md
Last active June 1, 2024 20:35
How to create USB that automatically installs Ubuntu Server 20.04

Steps to create the bootable USB

  1. Create folder
mkdir autoinstall-ISO
cd autoinstall-ISO
  1. Download ubuntu-autoinstall-generator
wget https://raw.githubusercontent.com/covertsh/ubuntu-autoinstall-generator/main/ubuntu-autoinstall-generator.sh