Skip to content

Instantly share code, notes, and snippets.

@PercyODI
PercyODI / .gitconfig
Last active October 13, 2022 15:22
My Working Configurations
[user]
email = <email here>
name = <Name Here>
[submodule]
recurse = true
[fetch]
prune = true
[rebase]
autoSquash = true
[init]
@PercyODI
PercyODI / .devcontainer__Dockerfile
Created November 30, 2021 02:47
Basic Setup for VS Code Remote Development of Elixir from WSL2 and Podman
# Update the VARIANT arg in docker-compose.yml to pick an Elixir version: 1.9, 1.10, 1.10.4
ARG VARIANT=latest
FROM docker.io/elixir:${VARIANT}
# This Dockerfile adds a non-root user with sudo access. Update the “remoteUser” property in
# devcontainer.json to use it. More info: https://aka.ms/vscode-remote/containers/non-root-user.
ARG USERNAME=vscode
ARG USER_UID=1000
ARG USER_GID=$USER_UID
//var testMatrix = new string[][]{
// new string[]{"s", "pp", "s"},
// new string[]{"pp", "pp", "s"},
// new string[]{"pp", "qq", "s"}
//};
var testMatrix = new string[][]{
new string[]{"ha", "fifi", "ho", "hi"},
new string[]{"fo", "ha", "hi", "xx"},
new string[]{"xxx", "ho", "ha", "xx"}
@PercyODI
PercyODI / Dockerfile
Last active September 27, 2021 01:33
Podman Development Environment
FROM ubuntu:bionic
ARG USER_ID=1000
ARG GROUP_ID=1000
RUN apt update -y \
&& apt install openssh-server sudo curl -y
# Download and install Go
WORKDIR /tmp
@PercyODI
PercyODI / cs50_devcontainer.json
Created November 1, 2020 19:05
VS Code Devcontainer Setup (Building code in C, including gdb, valgrind, and libcs50)
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.128.0/containers/ubuntu
{
"name": "VUCS Assignments Workspace",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick an Ubuntu version. Rebuild the container if it already
// exists to update. Available variants: focal (or ubuntu-20.04), bionic (or ubuntu-18.04)
"args": { "VARIANT": "focal" }
},
using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace BowlingScores.Tests
{
[TestClass]
public class UnitTest1
{
[TestMethod]
@PercyODI
PercyODI / 0_reuse_code.js
Created August 24, 2016 15:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
-- MySQL dump 10.13 Distrib 5.5.47, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: project2
-- ------------------------------------------------------
-- Server version 5.5.47-0ubuntu0.14.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
@PercyODI
PercyODI / about.md
Created February 25, 2016 01:00 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@PercyODI
PercyODI / README.md
Last active September 19, 2015 17:17 — forked from hofmannsven/README.md
My simply Git Cheatsheet