Skip to content

Instantly share code, notes, and snippets.

View RealJTG's full-sized avatar
🇺🇦
#StopRussianAggression

RealJTG

🇺🇦
#StopRussianAggression
View GitHub Profile
@the-spyke
the-spyke / pipewire.md
Last active July 14, 2024 13:08
Enable PipeWire on Ubuntu 22.04

Enable PipeWire on Ubuntu 22.04

This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like pipewire-debian, you might get into conflicts.

Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.

Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.

Based on Debian Wiki, but simplified for Ubuntu 22.04.

@langerhans
langerhans / README.md
Last active March 7, 2024 08:49
Updating MultiDoge checkpoints

Updating MutliDoge checkpoints

Why?

If you are using MultiDoge and are stuck far behind in syncing, then this guide is for you. Even if you are currently already synced it's worth following this guide to be prepared for future re-syncs, but you can skip some steps. These new checkpoints contain blocks up to Jan 30th 2021. If you are trying to sync a wallet that has been created before around summer 2016, then sadly this won't really help you.

How?

  1. Close MultiDoge completely.
  2. Download this file: multidoge.checkpoints
  3. Copy this file to the MultiDoge data directory. See below for the path. Overwrite the existing file. If you are already synced, you're done at this point, If not, continue.
  4. Start MultiDoge.

How to build SDL2 for odroid go advance

Please run this commands on odroid-go advance machine with stock rom( ubuntu 18.04.3 es ).

install following packages

  • build-essential
  • gcc
  • cmake
  • autogen
  • autoconf
@hikiko4ern
hikiko4ern / .bash_aliases
Last active October 29, 2023 20:24
Pikachu test passed (demo: https://asciinema.org/a/236096)
# /------------------------------------------\
# | don't forget to download the .tp file |
# | and place it in the user's directory :› |
# | |
# | also install lolcat: |
# | https://github.com/busyloop/lolcat |
# \------------------------------------------/
alias test-passed='if [ "$?" -eq "0" ]; then lolcat ~/.tp -a -s 40 -d 2; fi;'
@mborodov
mborodov / .gitlab-ci.yml
Last active March 22, 2021 12:14
Gitlab CI/CD config for PSR2 check and deploy via SSH
# Для всех Job'ов используем один образ
image: tetraweb/php:7.0
# Устанавливаем переменные для работы CI
variables:
CHECK_FILES: ./src/
CHECK_EXCLUDE_DIRS: ./vendor/*
CHECK_STANDARDS: PSR1,PSR2
DEPLOY_USER: root
DEPLOY_SERVER: infoservice.pro
@unio-lss
unio-lss / XHRController.php
Last active April 14, 2019 09:10
Symfony4: 自前のアノテーションでコントローラ制御 https://karafuru-ramune.com/blog/827c536bef00d652d1d08de69d49a1eb
<?php
namespace App\Controller;
use App\Annotation\XMLHttpRequest;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
/**
@ErikAugust
ErikAugust / spectre.c
Last active July 5, 2024 18:14
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@1kastner
1kastner / reflect.py
Last active April 3, 2024 13:52 — forked from huyng/reflect.py
A simple echo server to inspect http web requests
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from http.server import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
@FibreFoX
FibreFoX / Vagrantfile
Last active July 23, 2019 11:56
Debain Stretch VM with Vagrant on Windows 10 and Virtualbox
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "debian/stretch64"
config.vm.hostname = "some-vm"
## when using non-"contrib-" boxes from debian
## do NOT use rsync: https://stackoverflow.com/a/34882657/1961102
## override speficied type to use type "virtualbox" (default on debian-boxes are rsync)