Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -- windows emacs setup -- | |
;; | |
;; Place this file in C:\Users\Username\AppData\Roaming | |
;; add %HOME% to user environment variables | |
;; if msys2 and gnugpg installed put gpg4win GnuPG\bin in PATH before msys2 | |
;; for speedup in defender settings: add exclusions for emacs, .emacs.d folders | |
;; shorcut properties to start: | |
;; target: "C:\Program Files\Emacs\emacs-29.4\bin\runemacs.exe" -bg black -g 142x48 | |
;; start in: C:\Users\ollie |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workspaceSidebar.folder": "C:\\Users\\ollie\\Documents\\projects", // projecct manager ext | |
"editor.mouseWheelScrollSensitivity": 3, | |
"terminal.integrated.accessibleViewPreserveCursorPosition": true, | |
"terminal.integrated.profiles.windows": { | |
"PowerShell": { | |
"source": "PowerShell", | |
"icon": "terminal-powershell" | |
}, | |
"Command Prompt": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;tray icon tooltip | |
A_IconTip := "alt-l: nightlight`nalt-q: alt-f4`nctl-alt-up: winontop`nctl-alt-b: hidebar" | |
;*********** Alt-l : open night light *********************; | |
!l:: Run "ms-settings:nightlight" | |
;*********** Alt-q : alt-f4 *********************; | |
!q::Send "!{F4}" | |
;*********** Ctl-Alt-Up : pin window on top ***************; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# ---lxc setup script--- | |
addline(){ | |
grep -q "${1}\|${3}\?" "$2" || echo "\n$1" | sudo tee -a "$2" > /dev/null | |
} | |
uname=$(id -u -n) | |
uid=$(id -u) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import base64 | |
import sys | |
from hashlib import sha256 | |
from cryptography.fernet import Fernet, InvalidToken | |
def encrypt(pwd, st): | |
h = sha256(bytes(pwd, 'utf-8')).hexdigest()[:32] | |
key = base64.urlsafe_b64encode(bytes(h, 'utf-8')) | |
f = Fernet(key) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = /*glsl*/`#version 300 es | |
precision mediump float; | |
out vec4 fragColor; | |
uniform vec2 resolution; | |
uniform vec2 mouse; | |
uniform float time; | |
vec2 ball(float t){ | |
return vec2(sin(t*1.2)*cos(5.+t*.82), cos(6.+t*.9)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const canvas = document.querySelector('canvas'); | |
const gl = canvas.getContext('webgl2'); | |
var clearcolor = [.5,.5,.5,1]; | |
/* | |
reserved attributed names: position, indices | |
*/ // same as twgl | |
gl.clearColor(...clearcolor); | |
gl.clear(gl.COLOR_BUFFER_BIT); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// gl-view - by shellderr //// | |
import | |
{setUniforms, | |
drawBufferInfo, | |
setBuffersAndAttributes, | |
createTexture, | |
createProgramInfo, | |
createBufferInfoFromArrays, | |
resizeCanvasToDisplaySize} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder