This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#0 0x0000556fe10a9047 in std::__remove_if<__gnu_cxx::__normal_iterator<std::unique_ptr<waybar::waybar_output>*, std::vector<std::unique_ptr<waybar::waybar_output> > >, __gnu_cxx::__ops::_Iter_pred<waybar::Client::handleMonitorRemoved(Glib::RefPtr<Gdk::Monitor>)::<lambda(const auto:2&)> > > (__pred=..., __last=std::unique_ptr<waybar::waybar_output> = {get() = 0x0}, __first= | |
std::unique_ptr<waybar::waybar_output> = {get() = 0x0}) at /usr/include/c++/9/bits/unique_ptr.h:352 | |
__result = std::unique_ptr<waybar::waybar_output> = {get() = 0x556fe16aa5e0} | |
__result = <optimised out> | |
#1 std::remove_if<__gnu_cxx::__normal_iterator<std::unique_ptr<waybar::waybar_output>*, std::vector<std::unique_ptr<waybar::waybar_output> > >, waybar::Client::handleMonitorRemoved(Glib::RefPtr<Gdk::Monitor>)::<lambda(const auto:2&)> > (__pred=..., __last=..., __first=...) at /usr/include/c++/9/bits/stl_algo.h:939 | |
No locals. | |
#2 waybar::Client::handleMonitorRemoved (this=<optimised out>, monitor=...) at ../src/client.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Swytch is a script providing a window switcher for sway using rofi, awk and jq. | |
# The script is based on: | |
# https://www.reddit.com/r/swaywm/comments/aolf3u/quick_script_for_rofi_alttabbing_window_switcher/ | |
# Copyright (C) 2019 Björn Sonnenschein | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ swaymsg -t get_outputs Thu 02 Apr 2020 11:03:11 BST | |
Output eDP-1 'Sharp Corporation 0x1476 0x00000000' (focused) | |
Current mode: 3840x2160 @ 59.997002 Hz | |
Position: 0,1081 | |
Scale factor: 2.000000 | |
Scale filter: nearest | |
Subpixel hinting: unknown | |
Transform: normal | |
Workspace: 2 | |
Max render time: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Make sure you run this in the mysql container | |
RETRIES=5 | |
echo "Waiting for mysql" | |
until mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" "${MYSQL_DATABASE}" -e "select 1" &> /dev/null || [ $RETRIES -eq 0 ] | |
do | |
echo "Waiting for mysql server, $((RETRIES--)) remaining attempts..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Generate timestamped filename | |
TIMESTAMPED_TAG=`date +%Y-%m-%d-%H%M%S` | |
BACKUP_ARCHIVE="./jenkins-backup-${TIMESTAMPED_TAG}.tar.gz" | |
# Inconceivable race condition avoidance | |
if [-f $BACKUP_ARCHIVE ]; then | |
rm ${BACKUP_ARCHIVE} | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Found here https://askubuntu.com/questions/1029562/move-snap-packages-to-another-location-directory | |
############################################################################## | |
# Take Care this section may break your System !!! | |
############################################################################## | |
##Move snap folder to Home instead of root. | |
#Create the directory : you can change the location | |
mkdir -p /${NEW_LOCATION}/snapd |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00:00:00.000 [INFO] [sway/main.c:310] Sway version 1.6-e76e13ef (Oct 26 2021, branch 'HEAD') | |
00:00:00.000 [INFO] [sway/main.c:311] wlroots version 0.15.0 | |
00:00:00.001 [INFO] [sway/main.c:118] Linux luis-XPS-15-9560 5.13.0-20-generic #20-Ubuntu SMP Fri Oct 15 14:21:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux | |
00:00:00.001 [INFO] [sway/main.c:134] Contents of /etc/lsb-release: | |
00:00:00.001 [INFO] [sway/main.c:118] DISTRIB_ID=Ubuntu | |
00:00:00.001 [INFO] [sway/main.c:118] DISTRIB_RELEASE=21.10 | |
00:00:00.001 [INFO] [sway/main.c:118] DISTRIB_CODENAME=impish | |
00:00:00.001 [INFO] [sway/main.c:118] DISTRIB_DESCRIPTION="Ubuntu 21.10" | |
00:00:00.001 [INFO] [sway/main.c:134] Contents of /etc/os-release: | |
00:00:00.001 [INFO] [sway/main.c:118] PRETTY_NAME="Ubuntu 21.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 577, | |
"type": "con", | |
"orientation": "none", | |
"percent": 0.49679487179487181, | |
"urgent": false, | |
"marks": [ | |
], | |
"focused": false, | |
"layout": "none", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Entity; | |
/** | |
* Interface that identifies entities which have fields that can contain base64 encoded images | |
* | |
* @package AppBundle\Entity | |
*/ | |
interface Base64EncodedImagesInterface | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ terraform import aws_secretsmanager_secret.yep my_name | |
~ terraform import aws_secretsmanager_secret_version.yep my_name\|$(aws secretsmanager get-secret-value --secret-id=my_name | jq ".VersionId" --raw-output) |