Skip to content

Instantly share code, notes, and snippets.

View ysgard's full-sized avatar

Jan Van Uytven ysgard

View GitHub Profile
./configure \
--prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--modules-path=/usr/lib64/nginx/modules \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/run/nginx.lock \
--http-client-body-temp-path=/var/cache/nginx/client_temp \
@ysgard
ysgard / gist:324e2b8670c996117025057a393d6450
Created May 25, 2021 03:22
nonfunctional rusoto example
extern crate rusoto_core;
extern crate rusoto_rds;
use rusoto_core::request::HttpClient;
use rusoto_core::credential::DefaultCredentialsProvider;
use rusoto_core::Region;
use rusoto_rds::{DescribeDBClustersMessage, Rds, RdsClient};
fn main() {
@ysgard
ysgard / test.zig
Created April 27, 2019 16:00
simple nested while
const std = @import("std");
pub fn main() void {
var i: i32 = 0;
var j: i32 = 0;
while (i < 10) {
while (j < 10) {
std.debug.warn("i: {}, j: {}\n", i, j);
j += 1;
}
extern crate sdl2;
extern crate sdl2_image;
use std::path::Path;
use sdl2::Sdl;
use sdl2::video::Window;
use sdl2::render::{Renderer, Texture};
use sdl2::surface::Surface;
use sdl2::event::Event;
layout(location = 0) in vec4 position;
layout(location = 1) in vec4 color;
smooth out vec4 theColor;
uniform vec2 offset;
uniform mat4 perspectiveMatrix;
void main() {
@ysgard
ysgard / gist:4262510
Created December 11, 2012 21:48
brew tap homebrew-php gist
➜ ~ brew -v
Homebrew 0.9.3
➜ ~ brew --config
HOMEBREW_VERSION: 0.9.3
HEAD: 81934ef9256ca49c2b754efaa9c13c534722a629
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8.2-x86_64
Xcode: 4.5.2