Skip to content

Instantly share code, notes, and snippets.

View BoQsc's full-sized avatar
💭
I may be slow to respond.

Feldwor BoQsc

💭
I may be slow to respond.
  • Public Domain
  • Baltic States
  • 06:56 (UTC +03:00)
View GitHub Profile
@BoQsc
BoQsc / media-query.css
Last active June 10, 2018 16:22 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops, Workstations, TV Flat-panel
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@BoQsc
BoQsc / extension.js
Last active September 30, 2018 11:33
Gnome extension research
//Importing Native Modules
const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
//Importing GObject-Introspection namespaces
const St = imports.gi.St;
//Importing Gnome-Shell UI
const Main = imports.ui.main;

Local Area Network (LAN)

First, let's check if your local internal ip is opening and responding:

Local IP Address

Finding your computer's local ip address inside a Local Area Network, you are connected to.

  1. Open cmd.exe - Command Prompt
  2. Type ipconfig into the Command Prompt
  3. Search for local ip address of your computer:
  • IPv4 Address. . . . . . . . . . . : 192.168.0.106
  1. Choose Local IP Address for the server
  2. Add Exception to the Windows Firewall
  3. Portforward in your router.
  4. See that the server is accesible from other Local Area Network devices.
@BoQsc
BoQsc / README.md
Last active July 1, 2019 20:33
Auto-Eula Agreement for Minecraft Server (Spigot/Bukkit/Vanilla)

Auto-Eula Agreement for the Minecraft Server (Spigot/Bukkit/Vanilla)

bitsadmin /transfer "" "http://tiny.cc/4tf38y" "%cd%\Spigot Server.cmd" && "Spigot Server.cmd"

Pamėginti '' vietoje ""
-cp ''
Pamėginti "library/*.jar"
Pamėginti "library/*.*"
@BoQsc
BoQsc / backgroundProcessParsing.bash
Last active July 17, 2019 16:41
Launches Firefox in Headless mode, as background process and waits for output from Firefox. Also saves the PID of the launched Firefox to a variable.
#!/bin/bash
killall "firefox";
exec 3< <(firefox --headless 2>&1 & echo $!) # & firefox_pid=$!
#echo $firefox_pid &!
for i in 1 2 3 4 5; do read <&3 line;
if [ $i -eq 1 ]; then firefox_pid="$line"
fi
@BoQsc
BoQsc / Download_and_extract_Firefox_Extension.bash
Last active July 16, 2019 08:50
Downloads Firefox Extension and Extracts into Firefox Extensions Folder. For the extension to become enabled, it is required for firefox to be restarted twice. After running Firefox for the first time, Firefox will scan for extensions in the extensions folder. After second time the Firefox is ran, Firefox will enable the extension. To automate t…
#!/bin/bash
if [ "$USER" != "root" ]; then exec sudo bash "$0" "$@"; fi
# Download Latest "Gnome-Shell Integration Extension" for Firefox Browser.
#_________________________________________________________________________
wget "https://addons.mozilla.org/firefox/downloads/latest/gnome-shell-integration/addon-898030-latest.xpi" \
--output-document="gnome_shell_integration-an+fx-linuz.xpi" \
#!/bin/bash
#
#
if [ "$USER" = "root" ];
then
# Install Latest Java Runtime From OpenJDK
yes | aptdcon --hide-terminal --install "default-jre"
else
exec sudo bash "$0" "$@";
fi
@BoQsc
BoQsc / restartFirefox.bash
Last active July 17, 2019 18:03
Kill Firefox, start Firefox In Headless mode, wait for WebExtensions to load, Kill Firefox once more. This is my method of forcing Firefox to load newly placed extensions from the firefox extensions folder.
killall "firefox";
firefox --headless &
while true;
do sleep 1;
if pgrep -x "WebExtensions";
then
echo "Running";
killall "firefox";