Skip to content

Instantly share code, notes, and snippets.

View spacemud's full-sized avatar
👨‍⚕️

spacemud

👨‍⚕️
View GitHub Profile
@j1cs
j1cs / improve_fonts.md
Last active January 4, 2025 07:42
Improve fonts archlinux

Improve Fonts

Newest

Make your Arch fonts beautiful easily! This is what I do when I install Arch Linux to improve the fonts.

You may consider the following settings to improve your fonts for system-wide usage without installing a patched font library packages (eg. Infinality):

Install some fonts, for example:
sudo pacman -S ttf-dejavu ttf-liberation noto-fonts

@jeffsharpe
jeffsharpe / arch-install-uefi-gpt-lvm_on_luks.sh
Last active July 28, 2022 20:15
Arch Linux Installation Notes - UEFI GPT LVM on LUKS (single drive)
### Arch Linux Installation Notes
### UEFI GPT LVM on LUKS (single drive)
###
### These are my personal notes to install Arch. Its not a script, but step by step instructions. If using
### please be aware that every step should be considered before applying, to personalize your
### installations appropriately.
###
# boot to arch linux boot prompt
@0XDE57
0XDE57 / config.md
Last active May 29, 2025 11:46
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable. I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere No longer required: Enable HTTPS-Only Mode, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

@zhujunsan
zhujunsan / Using Github Deploy Key.md
Last active June 14, 2025 13:41
Using Github Deploy Key

What / Why

Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.

As the name says, its primary function is to be used in the deploy process in replace of username/password, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.

How to

  1. Generate a ssh key
.
├── books
│   ├── handlers.go
│   └── models.go
├── config
│   └── db.go
└── main.go
@deframe
deframe / AuthController.php
Last active October 6, 2020 00:58
Authentication -> User polymorphic relationships in Laravel.
<?php namespace App\Http\Controllers;
use App\Http\Requests\LoginRequest;
class AuthController extends Controller {
/**
* @param \App\Http\Requests\LoginRequest $request
* @return \Illuminate\Http\RedirectResponse
*/
@davidblewett
davidblewett / lp-ssh-add.sh
Last active December 12, 2021 11:12
Allow storage of SSH private keys in LastPass, and use lpass CLI to retrieve and load into ssh-agent. The general idea is to store the private key armored ASCII in an "SSH Key" Secure Note, in a specific folder (i.e.: "Secure Notes\SSH" ).
#!/bin/sh
#
# Import all SSH keys from LP
#
PREFIX=~
SSH_ASKPASS=$PREFIX/bin/lp-askpass.sh
export SSH_ASKPASS
# This is needed to force ssh-add to honor our SSH_ASKPASS.
DISPLAY=foo
export DISPLAY
@Southclaws
Southclaws / texturemap
Created May 31, 2014 22:59
Bitmap object placement filterscript
#include <a_samp>
#include <MapAndreas> // -
#include <easybmp> // -
#include <YSI\y_iterate> // -
#include <virtualcanvas> // - https://gist.github.com/Southclaw/9dc3e084370e6998ec08
#include <streamer> // -
#include <formatex> // -
#pragma dynamic 64000
#define FILENAME "./scriptfiles/txmap/basic_small.bmp"
@Southclaws
Southclaws / markdown-to-bbcode.js
Last active April 25, 2017 23:35
Very basic converter just for personal use since I generally write documentation in Markdown and converting to BBCode for SA:MP forums is pretty annoying.
var fs = require('fs');
var util = require('util');
var
regexHeader1 = new RegExp('^# (.*)'),
replcHeader1 = ['[COLOR="FF4700"][SIZE="7"][B]', '[/B][/SIZE][/COLOR]'],
regexHeader2 = new RegExp('^## (.*)'),
replcHeader2 = ['[COLOR="RoyalBlue"][SIZE="6"][B]', '[/B][/SIZE][/COLOR]'],
@Southclaws
Southclaws / gist:10186202
Created April 8, 2014 20:27
Increased fire rate cheat detection
#define FILTERSCRIPT
#include <a_samp>
#include <ZCMD>
static
WeaponShotIntervals[17] =
{
// Pistols