Skip to content

Instantly share code, notes, and snippets.

@t00
t00 / gist:50816d82e4734036ad53cc222a48fb3c
Last active January 10, 2024 12:56
gource hardware accelerated vaapi linux amdgpu
#!/bin/bash
# ffmpeg reference: https://trac.ffmpeg.org/wiki/Hardware/VAAPI
# vaapi reference: https://wiki.archlinux.org/title/Hardware_video_acceleration
gource \
-s .01 \
-1920x1080 \
--auto-skip-seconds .1 \
--multi-sampling \
--stop-at-end \
@t00
t00 / inst-arch-linux-full-enc
Last active February 2, 2022 07:34 — forked from ansulev/inst-arch-linux-full-enc
Install Arch Linux with full encrypted file-system using dm-crypt and luks
# Install Arch Linux with full encrypted file-system using dm-crypt and luks
# The official guide: https://wiki.archlinux.org/index.php/Installation_Guide
# SSD specials
# http://ggarcia.me/2016/10/11/arch-linux-ssd-trim.html
# EFI
# https://itectec.com/superuser/uefi-and-full-disk-encryption-with-lvm-on-luks/
# Download the archiso image from https://www.archlinux.org/download/
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
CPU Family: 0x6
GNU gdb (Ubuntu 8.2-0ubuntu1) 8.2
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
namespace Custom.Controls
{
public class ColumnPanel: Panel
{
@t00
t00 / dropall
Last active August 22, 2017 10:29
Delete all SQL Server database objects
DECLARE @name VARCHAR(128)
DECLARE @SQL VARCHAR(254)
DECLARE @constraint VARCHAR(254)
/* Drop all non-system stored procs */
SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = 'P' AND category = 0 ORDER BY [name])
WHILE @name is not null
BEGIN
SELECT @SQL = 'DROP PROCEDURE [dbo].[' + RTRIM(@name) +']'
EXEC (@SQL)
@t00
t00 / cleanxbap.bat
Created May 25, 2017 21:56
Clear XBAP cache batch
::::::::::::::::::::::::::::::::::::::::::::
:: Elevate.cmd - Version 4
:: Automatically check & get admin rights
::::::::::::::::::::::::::::::::::::::::::::
@echo off
CLS
ECHO.
ECHO =============================
ECHO Running Admin shell
ECHO =============================