Skip to content

Instantly share code, notes, and snippets.

@niw
niw / uninstall_xquartz.sh
Last active April 19, 2024 14:28
A simple XQuartz uninstall script
#!/usr/bin/env bash
set -e
[[ $USER == "root" ]] || {
echo "You must be root to run this script." >&2
exit 1
}
echo "Unload launchd daemons and agents..."
@0xdevalias
0xdevalias / reverse-engineering-webpack-apps.md
Last active April 19, 2024 14:27
Some notes and techniques for reverse engineering Webpack (and a little bit about React/Vue) apps
@davidedmundson
davidedmundson / PlasmaNested.sh
Last active April 19, 2024 14:27
Run plasma from within gamescope
#!/bin/sh
# Remove the performance overlay, it meddles with some tasks
unset LD_PRELOAD
## Shadow kwin_wayland_wrapper so that we can pass args to kwin wrapper
## whilst being launched by plasma-session
mkdir $XDG_RUNTIME_DIR/nested_plasma -p
cat <<EOF > $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper
#!/bin/sh
@rxaviers
rxaviers / gist:7360908
Last active April 19, 2024 14:26
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@aerobounce
aerobounce / macOS System Preference Pane Links.md
Last active April 19, 2024 14:26
macOS System Preference Pane Links
@scriptdev
scriptdev / .php
Last active April 19, 2024 14:25
DEFINIR O CLIQUE OU FOCO NO BOTÃO AO TECLAR O ENTER
<?php
// DEFINA UM ID PARA O BOTÃO
$btn_pesquisar->id = 'btn_pesquisar';
// ROTINA JAVASCRIPT PARA DÁ O FOCO OU CLICAR NO BOTÃO AO PRESSIONAR O ENTER
TScript::create('
$(document).keyup(function(e) {
if(e.which == 13) $("#btn_pesquisar").click();
});
@scriptdev
scriptdev / .php
Last active April 19, 2024 14:25
LIMPAR COMBO "TCombo" NO FORMULÁRIO
<?php
TCombo::clearField(self::$formName, 'nome_combo');
/*
FABRÍCIO ALMEIDA
PROGRAMADOR DESKTOP, WEB e MOBILE
CONSULTORIAS E ORÇAMENTO:
WHATSAPP (83) 98655-6461
*/
@scriptdev
scriptdev / .php
Last active April 19, 2024 14:25
LIMPAR CAMPO NUMÉRICO "TNumeric" NO FORMULÁRIO
<?php
TNumeric::clearField(self::$formName, 'nome_campo_numerico');
/*
FABRÍCIO ALMEIDA
PROGRAMADOR DESKTOP, WEB e MOBILE
CONSULTORIAS E ORÇAMENTO:
WHATSAPP (83) 98655-6461
*/
@famish99
famish99 / diretta_install.md
Last active April 19, 2024 14:25
Diretta Host Install Instructions

Diretta Host Install Instructions

Prerequisites

  • Ubuntu Server 22.04 LTS
  • Install the following packages using apt:
# sudo apt install build-essential dkms zstd

Download and unzip Diretta Host driver package

@lcrilly
lcrilly / oas2nginx.sh
Created December 19, 2023 16:00
Converts OpenAPI/Swagger spec into nginx.conf snippet (server context)
#!/usr/bin/env bash
#
# oas2nginx.sh (c) NGINX, Inc. [v0.5 13-Jan-2020] Liam Crilly <liam.crilly@nginx.com>
#
# Converts OpenAPI/Swagger spec into nginx.conf snippet (server context) as per
# https://www.nginx.com/blog/deploying-nginx-plus-as-an-api-gateway-part-1/
# Requires shyaml for YAML processing: https://github.com/0k/shyaml
# Defaults
#