Skip to content

Instantly share code, notes, and snippets.

View samayres1992's full-sized avatar

Sam Ayres samayres1992

View GitHub Profile
@samayres1992
samayres1992 / update_steam_icons.sh
Last active August 5, 2025 03:58
Update steam .desktop files to path to home icons directory (Linux)
#!/bin/bash
create_desktop_file() {
local GAME_ID=$1
local GAME_NAME=$2
local ICON_PATH="$HOME/.icons/steam_icon_${GAME_ID}.png"
local DESKTOP_FILE="$HOME/.local/share/applications/steam_app_$GAME_ID.desktop"
echo "Creating desktop file for game ID: $GAME_ID, Game Name: $GAME_NAME" | tee -a /tmp/desktop_creation.log
echo "Looking for icon at: $ICON_PATH" | tee -a /tmp/desktop_creation.log
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Field, reduxForm } from 'redux-form';
import classNames from 'classnames';
import Encrypt from './Encrypt';
const inputRender = (field) => (
<input {...field.input} name={field.name} className={classNames({"has-content": field.meta.dirty, "fancy-input": !field.dirty})} type={field.type} placeholder="" type="text" required />
);
@samayres1992
samayres1992 / git-deployment.md
Last active March 29, 2019 10:36 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working copy on your local machine, let's say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

#browser.color-behind-tabs-on.tabs-top,
#browser + div.color-behind-tabs-on.tabs-top,
#browser + div + div.color-behind-tabs-on.tabs-top,
#browser.color-behind-tabs-off:not(.tabs-top),
#browser + div.color-behind-tabs-off:not(.tabs-top),
#browser + div + div.color-behind-tabs-off:not(.tabs-top) {
transition: fill 0.5s ease;
transition: background-color 0.5s ease;
}
@samayres1992
samayres1992 / userChrome.css
Created May 21, 2018 00:39
Firefox Browser Styling
/* stuff */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Contextual toolbar buttons, only show on hover, this is what matters, the rest of the file are just style tweaks I like
*/
:root:not([customizing]) #nav-bar toolbarbutton
0.0.0.0 ads.doubleclick.net
0.0.0.0 s.ytimg.com
0.0.0.0 ad.youtube.com
0.0.0.0 ads.youtube.com
0.0.0.0 www.gstatic.com
0.0.0.0 gstatic.com
0.0.0.0 clients1.google.com
0.0.0.0 dts.innovid.com
0.0.0.0 googleads.g.doubleclick.net
0.0.0.0 googleads4.g.doubleclick.net
<div class="pdf">
<img class="size-full" src="INSERT PDF PREVIEW HERE" alt="test-thumbnail" />
<a href="LINK TO PDF HERE">TITLE HERE</a>
</div>
curl -X GET \ -H "X-Parse-Application-Id: 058017831760853" \ -H "Content-Type: application/json" \ https://parse.overstack.dev/functions/hello -v
Note: Unnecessary use of -X or --request, GET is already inferred.
* Rebuilt URL to: -H/
* Trying 81.200.64.50...
* Connected to -H (81.200.64.50) port 80 (#0)
> GET / HTTP/1.1
> Host: -H
> User-Agent: curl/7.49.1
> Accept: */*
>