Skip to content

Instantly share code, notes, and snippets.

View predkambrij's full-sized avatar

Alojzij Blatnik predkambrij

View GitHub Profile
@dz0ny
dz0ny / tv_grab_sl
Created December 3, 2011 21:16
XMLTV Slovenia
#!/bin/bash
dflag=
vflag=
cflag=
if (( $# < 1 ))
then
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><tv source-data-url="http://tvprofil.net/xmltv/" source-info-name="Phazer XML servis 4.1" source-info-url="http://tvprofil.net">'
wget -qO - http://tvprofil.net/xmltv/data/kanal-a.si/weekly_kanal-a.si_tvprofil.net.xml | tail -n+2 | tail -n+2 | sed '$d'
wget -qO - http://tvprofil.net/xmltv/data/pop-tv.si/weekly_pop-tv.si_tvprofil.net.xml | tail -n+2 | tail -n+2 | sed '$d'
wget -qO - http://tvprofil.net/xmltv/data/slo1.si/weekly_slo1.si_tvprofil.net.xml | tail -n+2 | tail -n+2 | sed '$d'
@ppmotskula
ppmotskula / view64.sh
Created January 25, 2012 04:06
chroot setup script to allow running 32-bit vmware-view-client in 64-bit Oneiric
#!/bin/bash
echo "
Tech Preview of the VMware View Client with PCoIP for Linux --
chroot installer for 64-bit Ubuntu Oneiric
Copyright (c) 2012 Peeter P. Mõtsküla <[email protected]>
"
# set global variables
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active December 2, 2025 11:50
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@magnetikonline
magnetikonline / README.md
Last active October 29, 2025 21:22
IE 7/8/9/10/11 Virtual machines from Microsoft - Linux w/VirtualBox installation notes.
@dmitshur
dmitshur / gist:6927554
Last active December 29, 2024 12:06
[Legacy GOPATH mode] How to `go get` private repos using SSH key auth instead of password auth.
function Invoke-Process
{
[OutputType([PSCustomObject])]
[CmdletBinding()]
param
(
[Parameter(Mandatory = 0, Position = 0)]
[string]$FileName = "PowerShell.exe",
[Parameter(Mandatory = 0, Position = 1)]
@robdmoore
robdmoore / setup.sql
Last active October 28, 2024 07:08
Automated install of SQL Express from commandline
# If you want to give owner access to the whole server to a particular user account this is how
exec sp_addrolemember 'db_owner', 'NT AUTHORITY\NETWORK SERVICE';
GO
# If you want to idempotently ensure a particular database with name DatabaseName exists this is how
IF NOT db_id('DatabaseName') IS NOT NULL BEGIN
PRINT 'Creating database...'
CREATE DATABASE [DatabaseName]
PRINT 'Created database.'
@andystanton
andystanton / Start up local Docker Machine on OSX automatically.md
Last active April 3, 2024 00:50
Start up local Docker Machine on OSX automatically.

Notice

This script is no longer required with Docker for Mac which includes an option to run Docker at startup and doesn't use docker-machine to administer the local Docker engine.

Requirements

  • Docker Machine + Docker
  • curl
  • A Virtualbox-driven Docker Machine called "default" docker-machine create --driver virtualbox default (this is the default with Docker toolkit).
@santisbon
santisbon / Search my gists.md
Last active November 26, 2025 13:48
How to search gists.

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@hopeseekr
hopeseekr / docker_dedicated_filesystem.md
Created February 3, 2018 04:01
Putting Docker on its own pseudo filesystem

Docker on BTRFS is very buggy and can result in a fully-unusable system, in that it will completely butcher the underlying BTRFS filesystem in such a way that it uses far more disk space than it needs and can get into a state where it cannot even delete any image, requiring one to take drastic actions up to and including reformatting the entire affected BTRFS root file system.

According to the official Docker documentation:

btrfs requires a dedicated block storage device such as a physical disk. This block device must be formatted for Btrfs and mounted into /var/lib/docker/.

In my experience, you will still run into issues even if you use a dedicated partition. No, it seems it requires a standalone