Skip to content

Instantly share code, notes, and snippets.

View thiphariel's full-sized avatar
💤

Thiph thiphariel

💤
  • 08:08 (UTC +01:00)
View GitHub Profile
@thiphariel
thiphariel / arch-ovh-baremetal.md
Created September 14, 2024 23:46 — forked from Rykian/arch-ovh-baremetal.md
Arch Linux on OVH Baremetal

Install Arch on OVH Baremetal server

This guide will show you how to install Arch Linux on an OVH VPS.
As you may have noticed, OVH does not have an Arch image, which is a problem. Follow these instructions to install Arch using recovery mode.

Conventions

Assume anything reffered to as low ram vps in the guide to be a VPS with <8gb ram

This guide assumes the following:

  • Your VPS has one drive
@thiphariel
thiphariel / steam_console_params.txt
Created September 4, 2024 07:08 — forked from davispuh/steam_console_params.txt
Steam client parameters, consoles commands and variables
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-batterytestmode - rapidly cycle battery percentages for testing
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
@thiphariel
thiphariel / Naty's FFXIV Endwalker Add-ons, Plugins and Mods.md
Created April 7, 2024 08:25 — forked from natyusha/Naty's FFXIV Dawntrail Add-ons, Plugins and Mods.md
All the third party add-ons, plugins and mods I use for FFXIV.
@thiphariel
thiphariel / dnsmasq macOS.md
Created March 3, 2018 15:15 — forked from brablc/dnsmasq macOS.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.

Requirements

Install

@thiphariel
thiphariel / app.js
Created August 26, 2017 16:42
Simple, complete example of a bot in Discord.js
// Load up the discord.js library
const Discord = require("discord.js");
// This is your client. Some people call it `bot`, some people call it `self`,
// some might call it `cootchie`. Either way, when you see `client.something`, or `bot.something`,
// this is what we're refering to. Your client.
const client = new Discord.Client();
// Here we load the config.json file that contains our token and our prefix values.
const config = require("./config.json");
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export default function Component ({
restrict = "E",
replace = true,
scope = {},
bindToController = {},
controllerAs = "ctrl",
controller = () => {},
template = null,
link = () => {},
transclude = false
@thiphariel
thiphariel / for-loops.js
Created October 13, 2015 14:58 — forked from juliocesar/for-loops.js
ES6 - for loops
// ES6 for loops
// =============
// Things in ES6 can be "iterable". Arrays are iterable by default.
var fruits = ['Apple', 'Banana', 'Grape'];
for (var fruit of fruits)
console.log('Fruit: ' + fruit);
@thiphariel
thiphariel / .jshintrc
Last active August 29, 2015 14:26 — forked from haschek/.jshintrc
JSHint Configuration, Strict Edition
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
function JSON_stringify(s, emit_unicode)
{
var json = JSON.stringify(s);
return emit_unicode ? json : json.replace(/[\u007f-\uffff]/g,
function(c) {
return '\\u'+('0000'+c.charCodeAt(0).toString(16)).slice(-4);
}
);
}