Skip to content

Instantly share code, notes, and snippets.

View anthony-y's full-sized avatar
🌍

Anthony Baynham anthony-y

🌍
View GitHub Profile
@TheCrazyMax
TheCrazyMax / youtube.lua
Last active April 29, 2020 18:04
Vlc youtube single video or playlist
--[[
$Id$
Copyright © 2007-2018 the VideoLAN team
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; either version 2 of the License, or
(at your option) any later version.
@marccgk
marccgk / _vmla.c
Last active February 23, 2021 01:06
Virtual Memory Linear Arena
#include <stdint.h>
typedef signed char S8;
typedef signed short S16;
typedef signed int S32;
typedef signed long long S64;
typedef unsigned char U8;
typedef unsigned short U16;
typedef unsigned int U32;
typedef unsigned long long U64;
@dotbmp
dotbmp / lua.odin
Created October 18, 2017 05:27
Lua binding for Odin
foreign import lua_c "lua53.lib"
// @todo: add luajit support
// @ref: https://www.lua.org/manual/5.3/manual.html#4
// @ref:
// @region luaconf.h
@noelboss
noelboss / git-deployment.md
Last active June 12, 2024 00:28
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@mmstick
mmstick / Ubuntu Kernel Upgrader Script
Last active March 11, 2023 04:53
Asks the user whether they want to install the latest RC or stable, then downloads the correct kernel and installs it.
#!/bin/bash
cd /tmp
if ! which lynx > /dev/null; then sudo apt-get install lynx -y; fi
if [ "$(getconf LONG_BIT)" == "64" ]; then arch=amd64; else arch=i386; fi
function download() {
wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | grep "$1" | grep "$2" | grep "$arch" | cut -d ' ' -f 4)
}