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
  • 21:19 (UTC +03:00)
View GitHub Profile
@fowlmouth
fowlmouth / 01-Ideas.md
Created August 16, 2011 11:12
Path to 015

Path to Gobo 015

I'm going to use this gist as a scratch pad for ideas for continuing GoboLinux. Feel free to add ideas, questions, quandaries, etc. -fowl

Come lurk in IRC at irc.freenode.net #gobolinux

The Process

This should get you to a 014.10 system from 014.01 in the safest way possible. This guide was written in mind from a fresh 014.01 minimal install, but you should be

@ChrisMoney
ChrisMoney / ftp_scripting.bat
Created February 15, 2012 15:24
Batch/DOS -- FTP Scripting
//FTP Scripting
Get yourself a DOS prompt, type FTP and hit Enter. You've found
the built-in command-line FTP program that ships with every copy
of Windows 95 and NT! That means it's the only thing you KNOW will
be on someone else's computer. But talking someone through how to
use FTP is messy. If you need to help someone else out, you're
better off automating the whole process by supplying them with an
FTP "script". If you need to learn more about FTP, read on and go
photocopy the FTP section out of a UNIX or LINUX book.
@marcedwards
marcedwards / high-dpi-media.css
Last active November 19, 2023 12:56
A CSS media query that captures almost all high DPI aware devices.
/* ---------------------------------------------------------- */
/* */
/* A media query that captures: */
/* */
/* - Retina iOS devices */
/* - Retina Macs running Safari */
/* - High DPI Windows PCs running IE 8 and above */
/* - Low DPI Windows PCs running IE, zoomed in */
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */
/* - Android hdpi devices and above */
@XVilka
XVilka / TrueColour.md
Last active July 9, 2024 23:28
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@lanrat
lanrat / ns.sh
Created March 11, 2015 02:53
netstat in bash with proc
#! /bin/bash
#get all data
ROUTE=$(cat /proc/net/route | grep -v "Iface")
TCP=$(cat /proc/net/tcp | grep "[0-9]: ")
UDP=$(cat /proc/net/udp | grep "[0-9]: ")
SOCKETS=$(ls -l $(find /proc/*/fd/ -type l 2>/dev/null) 2>/dev/null | grep socket)
parse_ipv4()
@echo off
set batchdir=%~d0%~p0
:start
"%batchdir%pngquant.exe" --ext .q.png --force --verbose 256 %1
"%batchdir%optipng.exe" -force -o4 -out "%~dpn1.opt.png" "%~dpn1.q.png"
del "%~dpn1.q.png"
@ilg-ul
ilg-ul / license-gpl-c-header.txt
Last active June 14, 2024 08:38
C header with GPL license text.
/*
* This file is part of the XXX distribution (https://github.com/xxxx or http://xxx.github.io).
* Copyright (c) 2015 Liviu Ionescu.
*
* 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, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
@adisib
adisib / youtube_hd.user.js
Last active July 10, 2024 19:31
Make youtube videos in HD and automatically resize
// ==UserScript==
// @name Youtube HD
// @author adisib
// @namespace namespace_adisib
// @description Select a youtube resolution and resize the player.
// @version 2024.01.17
// @match https://*.youtube.com/*
// @noframes
// @grant GM.getValue
// @grant GM.setValue
@wojteklu
wojteklu / clean_code.md
Last active July 23, 2024 07:47
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@adikahorvath
adikahorvath / modern-reset.css
Created November 8, 2016 15:01
modern css reset
* {
all: unset;
}
base, basefont, datalist, head, meta, script, style, title,
noembed, param, template {
display: none;
}