Skip to content

Instantly share code, notes, and snippets.

View DamianRivas's full-sized avatar
🚀

Damian Rivas DamianRivas

🚀
View GitHub Profile
@DamianRivas
DamianRivas / tilda.desktop
Created March 26, 2023 21:58
Sample desktop file for linux. This file autostarts the Tilda application on login
[Desktop Entry]
Type=Application
Name=Tilda
Comment=Launch Tilda on startup
Exec=bash -c 'bash -c $(command -v tilda)'
Icon=/usr/share/pixmaps/tilda.png
Terminal=false
@DamianRivas
DamianRivas / .zshrc
Last active January 5, 2023 03:42
Dot files
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/damian/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@DamianRivas
DamianRivas / damian.omp.json
Created December 17, 2021 21:58
Powershell Config
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": false,
"osc99": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
@DamianRivas
DamianRivas / settings.json
Last active December 17, 2021 22:06
VS Code Settings
{
// TERMINAL
"terminal.integrated.fontFamily": "'Hack Nerd Font', 'Jetbrains Mono', Consolas, monospace",
"terminal.integrated.sendKeybindingsToShell": true,
"workbench.colorCustomizations": {
"terminal.background": "#1D2021",
"terminal.foreground": "#A89984",
"terminalCursor.background": "#A89984",
"terminalCursor.foreground": "#A89984",
"terminal.ansiBlack": "#1D2021",
@DamianRivas
DamianRivas / keybindings.json
Created August 30, 2021 21:56
VS Code Keybindings JSON
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+; ctrl+j",
"command": "workbench.action.togglePanel"
},
{
"key": "ctrl+j",
"command": "-workbench.action.togglePanel"
},
'use strict';
module.exports = (sequelize, DataTypes) => {
var Banner = sequelize.define('Banner', {
source: DataTypes.STRING,
description: DataTypes.STRING,
topicId: {
type: DataTypes.INTEGER,
onDelete: "CASCADE",
references: {
model: "Topics",
@DamianRivas
DamianRivas / .travis.yml
Created December 27, 2018 21:31
Non-workng yml
language: bash
os:
- linux
- osx
rust:
- stable
jdk:
- oraclejdk
@DamianRivas
DamianRivas / input.txt
Created December 2, 2018 01:25
AoC Day 1 Input
-16
+12
-18
-1
+5
-8
+9
-15
+12
+6
const request = require("request");
const server = require("../../src/server");
const base = "http://localhost:3000/topics/";
const sequelize = require("../../src/db/models/index").sequelize;
const Topic = require("../../src/db/models").Topic;
const Post = require("../../src/db/models").Post;
const User = require("../../src/db/models").User;
const Comment = require("../../src/db/models").Comment;
describe("routes : comments", () => {
include RSpec
require_relative 'hash_item'
require_relative 'hashclass'
RSpec.describe HashClass, type: Class do
let(:lotr_movies) { HashClass.new(6) }
describe "#index" do
it "creates a hash key based on the string value passed in" do