Skip to content

Instantly share code, notes, and snippets.

@svandragt
svandragt / hideothers.sh
Created October 26, 2022 15:35
Hide others for elementary / ubuntu.
#!/bin/bash
# hideothers.sh
active_window_id=$(xdotool getactivewindow)
for window_id in $(xdotool search --onlyvisible ".*")
do
if [ $window_id != $active_window_id ]
then
wname=$(xdotool getwindowname $window_id)
if [ "$wname" != "" ] && [ "$wname" != "plank" ] && [ "$wname" != "io.elementary.wingpanel" ]
@the-spyke
the-spyke / pipewire.md
Last active May 3, 2024 13:19
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.

@assoscoupa
assoscoupa / Municipalities-Of-Greece.csv
Last active September 22, 2023 23:41
Municipalities Of Greece
Δήμος Κωδ Περιφ Ενότητας Περιφερειακή Ενότητα Κωδικός Χώρας Χώρα
Αμφιλοχίας ΑΙΤ Αιτωλοακαρνανίας GR Ελλάδα
Ακτίου-Βόνιτσας ΑΙΤ Αιτωλοακαρνανίας GR Ελλάδα
Ξηρομέρου ΑΙΤ Αιτωλοακαρνανίας GR Ελλάδα
Ιεράς Πόλεως Μεσολογγίου ΑΙΤ Αιτωλοακαρνανίας GR Ελλάδα
Αγρινίου ΑΙΤ Αιτωλοακαρνανίας GR Ελλάδα
Θέρμου ΑΙΤ Αιτωλοακαρνανίας GR Ελλάδα
Ναυπακτίας ΑΙΤ Αιτωλοακαρνανίας GR Ελλάδα
Δήμος Άργους - Μυκηνών ΑΡΓ Αργολίδας GR Ελλάδα
Ναυπλιέων ΑΡΓ Αργολίδας GR Ελλάδα
<?php
$curl = curl_init();
curl_setopt ($curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.cloudflare.com/client/v4/zones?status=active&match=all",
CURLOPT_RETURNTRANSFER => true,
@quequotion
quequotion / .Xresources
Last active December 4, 2022 04:25
[Pantheon {3D,Lite}] Dotfiles
Xcursor.theme: elementary
Xcursor.size: 48
@Surendrajat
Surendrajat / elementaryos.md
Last active December 2, 2021 21:16 — forked from suberb/elementaryos.md
elementaryOS | Things I Do After Installing elementary OS Hera

First Things First

  • Enable PPA

     sudo apt update
     sudo apt install software-properties-common apt-transport-https curl
  • Install apt-fast [Yes! it's really fast]

@trongthanh
trongthanh / apply-pantheon-terminal-color.sh
Created October 18, 2018 03:39
Apply custom color theme for Pantheon Terminal ver 5.3+
#!/bin/bash
# Apply custom color theme for Pantheon Terminal ver 5.3+
# 1) preview and choose a color theme from http://mayccoll.github.io/Gogh/
# 2) open the equivalent bash file containing the color values at https://github.com/Mayccoll/Gogh/tree/master/themes
# 3) concatenate all 16 colors at the top with colon ":", then replace it at the palette variable below
# 4) replace color for foreground, background, and cursor; choose whether your theme is light or dark
# 5) sudo apt-get install dconf-tools
# 6) execute this script
@nzec
nzec / README.MD
Last active February 23, 2024 01:08
DeezLoader Offical Page

Thanks to /u/zpoo32 for reporting several issues in this list!

Deemix

  • deemix: just the cli and the library
  • deemix-pyweb: the app with a GUI
  • deemix-server: just the server part of deemix-pyweb
@ksenzee
ksenzee / grid_mixins.scss
Created December 8, 2017 22:49
Mixins that make it possible to use CSS Grid in IE 10/11 as well as in modern browsers. Based on mixins by Sascha Fuchs at https://medium.com/@gisugosu/css-grid-layout-spec-2-to-spec-1-transpiler-with-sass-415dff4dd31b.
/// Add Gap between the boxes
///
/// @author Sascha Fuchs
///
/// @group core - cssgrid
///
/// @param {list} $boxes - List with box sizes
/// @param {string} $gap - Optional column gap
@function box-gap($boxes, $gap) {
$box: ();
@suberb
suberb / elementaryos.md
Last active December 25, 2023 19:14
elementaryOS | Things To Do After Installing Elementary OS Loki [Best OS For Switching From Windows & Mac]

FIRST THING FIRST


  • Update OS
sudo apt-get update && sudo apt-get upgrade