docker attach MY_CONTAINER
ctrl+pq
docker ps -q Use -q to only list their IDs
| #!/bin/bash | |
| TIMEOUTSEC=10 | |
| function findIP { | |
| startTime=$(date +%s) | |
| ip=$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1') | |
| iplen=${#ip} | |
| elapsedTime=$(( $(date +%s) - startTime )) | |
| echo "Checking for IPv4 address..." |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <link rel="stylesheet" type="text/css" href="style.css"> | |
| </head> | |
| <body> | |
| <div> | |
| <p id="logs" class="log"></p> | |
| </div> |
iw wlan0 get power_save to see if the wifi power save feature is enabled or not/etc/network/interfaces after the iface wlan0 line wireless-power offiw wlan0 get power_save you should see that is off.| { | |
| "rules": { | |
| "comma-dangle": [2,"only-multiline"], | |
| "no-cond-assign": [2,"always"], | |
| "no-console": 2, | |
| "no-constant-condition": 2, | |
| "no-control-regex": 2, | |
| "no-debugger": 2, | |
| "no-dupe-args": 2, | |
| "no-dupe-keys": 2, |
pacman -Syu if pacman needs to be updated you might have to close and reopen the terminal and run pacman -Syu againpacman -S git mingw-w64-x86_64-toolchain mingw64/mingw-w64-x86_64-SDL2 mingw64/mingw-w64-x86_64-SDL2_mixer mingw64/mingw-w64-x86_64-SDL2_image mingw64/mingw-w64-x86_64-SDL2_ttf mingw64/mingw-w64-x86_64-SDL2_net mingw64/mingw-w64-x86_64-cmake make| #!/usr/local/bin/python3 | |
| import os | |
| from github import Github | |
| def get_subdirs(p_dir): | |
| return [name for name in os.listdir(p_dir) | |
| if os.path.isdir(os.path.join(p_dir, name))] |
| #include <math.h> | |
| #include <SDL2/SDL.h> | |
| struct squarewave { | |
| float phase_inc; | |
| float phase; | |
| float volume; | |
| }; |
| /* Ported from Fabien Sanglards DoomFirePSX https://github.com/fabiensanglard/DoomFirePSX/blob/master/flames.html */ | |
| #include <SDL2/SDL.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define FIRE_WIDTH 320 | |
| #define FIRE_HEIGHT 336 | |
| SDL_Window *window = NULL; | |
| SDL_Renderer *renderer = NULL; |
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <title>Pixi Sine Wave</title> | |
| <style> | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| background-color: #000000; |