Skip to content

Instantly share code, notes, and snippets.

View Neo-Desktop's full-sized avatar
🙃

Neo Neo-Desktop

🙃
  • San Diego, CA
View GitHub Profile
@Neo-Desktop
Neo-Desktop / gist:2365591b5b4118279547
Created May 8, 2015 18:50
C++ set precision and printf example
#include <iostream>
#include <cstdio>
#include <iomanip>
#include <float.h>
using namespace std;
int main()
{
printf("%.*f\n", FLT_DIG, 3.141592653589);
@echo off
SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
# GNU Screen - main configuration file
# All other .screenrc files will source this file to inherit settings.
# Author: Christian Wills - cwills.sys@gmail.com
# Allow bold colors - necessary for some reason
attrcolor b ".I"
# Tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
@DISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux
choco install googlechrome 7zip.install putty.install kitty vlc sysinternals curl wget cmder windirstat adobe-creative-cloud jetbrainstoolbox sublimetext3 cyberduck audacity spotify mpc-hc k-litecodecpackmega nmap cpu-z.install sourcecodepro irfanview irfanviewplugins wireshark
@Neo-Desktop
Neo-Desktop / install-user-to-sudoersd.sh
Created June 2, 2018 07:38 — forked from ivanrad/install-user-to-sudoersd.sh
Add user to sudoers (ALL NOPASSWD)
#!/bin/bash
#
# Add user to sudoers (ALL NOPASSWD).
# Usage: $0 [username] (if no username provided, the username of the current user is used)
#
[ $UID -eq 0 ] ||
{ echo "This script needs to be run with sudo -- \"sudo `basename $0`\"."; exit 1; }
[ -z "$1" ] && SUDOERS_USERNAME=$SUDO_USER || SUDOERS_USERNAME=$1
@Neo-Desktop
Neo-Desktop / mp3collect.go
Created February 17, 2020 09:04 — forked from swdunlop/mp3collect.go
a simple utility to hardlink mp3 files to a hash of their non-ID3 contents
package main
import "io"
import "os"
import "fmt"
import "encoding/hex"
import "crypto/sha256"
import "path"
import "strings"
@Neo-Desktop
Neo-Desktop / query.php
Created August 1, 2020 14:55
starsiege server query script
<?php
const MASTER_SERVER = "master2.starsiege.pw";
const MASTER_PORT = 29000;
const PROTOCOL_VERSION = 0x10;
const STATUS_REQUEST = 0x03;
const GAME_SERVER_STATUS_RESPONSE = 0x04;
const MASTER_SERVER_STATUS_RESPONSE = 0x06;
const GAME_INFO_REQUEST = 0x07;
@Neo-Desktop
Neo-Desktop / index.html
Created May 4, 2021 07:31
beter VaporWaveTerrain
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.2.0/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.2.0/addons/p5.sound.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8" />
</head>
<body>
@Neo-Desktop
Neo-Desktop / index.html
Last active October 10, 2021 10:43
Extra Annoying "Malicious" Rick Roll Circa 2008
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>YOU GOT RICK ROLL'D</title>
<!---
You are a cock sucker.
--->
<style type="text/css">
@Neo-Desktop
Neo-Desktop / docker-compose-base.yaml
Last active January 16, 2022 14:41
Master 2 docker stack
services:
alpine:
image: alpine:latest
user: 1003:1003
tty: true
working_dir: /app
deploy:
restart_policy:
condition: any
resources: