#!/bin/bash
cp -r /usr/share/themes/* .local/share/themes
sudo flatpak override --filesystem=$HOME/.local/share/themes
sudo flatpak override --env=GTK_THEME=Adwaita-dark| #include <stdio.h> | |
| #include <sys/ioctl.h> | |
| #include <unistd.h> | |
| #include <time.h> | |
| int main() { | |
| struct winsize w; | |
| ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); | |
| printf("lines: %i\ncolumns: %i\n", w.ws_row, w.ws_col); | |
| char props[] = "/#0"; |
| // aHR0cHM6Ly9naXRodWIuY29tL3dlYmd0eAo= | |
| #include <stdbool.h> | |
| #include <stdio.h> | |
| void lnrd(char * str) { | |
| int idx = 0; | |
| while (true) { | |
| char ch = getchar(); | |
| if (ch == '\n') | |
| break; |
However, if you want to use podman from within a toolbox container, you can use flatpak-spawn --host to run a command from outside the toolbox from within the toolbox.
If you alias podman to flatpak-spawn --host podman inside your container, then it’ll run your system’s podman command from within the container.
This is mainly useful if you have a terminal set up to launch your dev environment as a toolbox container and you want to run a command outside of your container sometimes.
(For what it’s worth, some commands already seem to mostly “just work” inside a container, like toolbox and rpm-ostree.)
the xx.gcr.io is the host name. for example http://us.gcr.io etc use this doc
gcloud auth print-access-token | podman login -u oauth2accesstoken --password-stdin XX.gcr.io- Static Editor - for modules
- Elementor - For static texts and sections
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # enable address reuse
server.bind((HOST, PORT))
server.listen(5)
print(f"RSHELL Server is running on {HOST}:{PORT}")By calling setsockopt() on the socket object with the SO_REUSEADDR option, you are telling the operating system to allow the reuse of the same address. This should help you avoid the Address already in use error when restarting your server.
| # config file for ansible -- http://ansible.com/ | |
| # ============================================== | |
| # nearly all parameters can be overridden in ansible-playbook | |
| # or with command line flags. ansible will read ANSIBLE_CONFIG, | |
| # ansible.cfg in the current working directory, .ansible.cfg in | |
| # the home directory or /etc/ansible/ansible.cfg, whichever it | |
| # finds first | |
| [defaults] |
| def domain_name(url) | |
| regex = /(http|https):\/\/(?:www\.)?(?<domain_name>.*?)\./ | |
| url.match(regex)[:domain_name] | |
| end |
| require "sqlite3" | |
| db = SQLite3::Database.new("database.db") | |
| db.execute(<<-SQL) | |
| CREATE TABLE IF NOT EXISTS users ( | |
| id INTEGER PRIMARY KEY, | |
| name TXT, | |
| age INTEGER | |
| ); | |
| SQL |