Skip to content

Instantly share code, notes, and snippets.

View Ditti4's full-sized avatar

Rico Dittrich Ditti4

View GitHub Profile
@aras-p
aras-p / preprocessor_fun.h
Last active November 15, 2024 09:22
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@gornostal
gornostal / README.md
Last active June 7, 2019 16:20
Install Hackintosh OS X Yosemite on Sony Vaio VPC-F11M1R/H

Successfully installed OS X Yosemite on my Sony VAIO F11M1R/H.

Problems:

  • I had to buy USB sound card for $10 (Viewcon VE533 works for me), because I couldn't find audio drivers.
  • OS X won't connect to password protected Wi-Fi networks, so I had to remove a password.

So here's the steps that I followed:

  1. Make a bootable flash drive using UniBeast tool
#!/usr/bin/node
var Client = require('coffea'); // npm install coffea
var sourceChannel = '#source',
targetChannel = '#target',
target = new Client([
{
host: '', // target host
port: 6667, // default value: 6667
nick: 'relaybot', // default value: 'coffea' with random number
@xPaw
xPaw / steam_quick_queue.user.js
Last active June 21, 2024 16:13
⚠ This script has been integrated into SteamDB browser extension!
// ==UserScript==
// @name Steam Queue Auto Discoverer
// @description Discover the Steam queue three times to get the sale cards
// @version 2.3.0
// @namespace https://gist.github.com/xPaw/73f8ae2031b4e528abf7
// @icon https://store.steampowered.com/favicon.ico
// @match https://store.steampowered.com/explore*
// @grant none
// ==/UserScript==
@Pupskuchen
Pupskuchen / index.php
Created May 6, 2016 18:28
a simple and basic php script to create a directory index of the configured directory
<?php
$conf = array(
// specify the url under which this directory listing runs
'url' => 'http://localhost/dirindex',
// specify the directory that should be listed (relative to this script)
'path' => '.',
// if true, files beginning with a dot (.) will be shown, false hides them
'showHidden' => false,
// page title
'title' => 'directory index',
@sandrocarval
sandrocarval / gtk.css
Created May 30, 2017 13:52
Reduce window title bar height in Gnome 3.22
/* Copy this CSS to ~/.config/gtk-3.0/gtk.css, and restart or logout+login */
window.ssd headerbar.titlebar {
min-height: 0;
}
window.ssd headerbar.titlebar button.titlebutton {
padding-top: 0px;
padding-bottom: 0px;
min-height: 0;