Skip to content

Instantly share code, notes, and snippets.

View eagl3s1ght's full-sized avatar

Anton Olsson eagl3s1ght

View GitHub Profile
@sumn2u
sumn2u / cookie-observer.js
Last active June 8, 2022 11:11
Observer cookie changes
@dubiouscript
dubiouscript / snip.sh
Last active July 10, 2020 01:34 — forked from mgoellnitz/snip.sh
GitLab Snippet Command Line Tool
#!/bin/bash
#
# Copyright 2016-2017 Martin Goellnitz
#
# update gitlab api
# https://gist.github.com/dubiouscript/5553dce89497ffd9805dd0de16503e8d
# -dscript-
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@lena
lena / csv_to_json.py
Last active March 22, 2020 02:22
Solution to Onboarding Project #1
#! /usr/bin/env python
import csv
import fire
import json
import pyjq
"""CSV TO JSON CLI
Usage:
python csv_to_json.py convert --csv_file="file.csv" --json_file="file.json"
@c0reysc0tt
c0reysc0tt / .bashrc
Last active September 15, 2022 02:09
LINUX COMMAND CHEATSHEET BASH TOOLS
####################
# CLI cheatsheet #
####################
# cheatsheet directory location:
CHEATDIR=~/.cheatsheet
# Use 'vicheat' to edit the cheatsheet
alias vicheat='vim $CHEATDIR/command_cheatsheet'
@waleedahmad
waleedahmad / downtime.py
Last active June 13, 2024 02:38
Python script to monitor your internet down time
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import os
import csv
import sys
import time
import socket
import datetime
@mgoellnitz
mgoellnitz / snip.sh
Last active January 4, 2024 17:57
GitLab Snippet Command Line Tool
#!/bin/bash
#
# Copyright 2016-2021 Martin Goellnitz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@Hawkuro
Hawkuro / cmder_context_disable.reg
Created January 12, 2017 16:33
Registry files to enable Cmder submenus in Explorer context menu
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\cmder]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\cmder.admin]
[-HKEY_CLASSES_ROOT\Directory\shell\cmder.admin]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.cmd]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.cmd.bg]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\cmder.ps.bg]
@developit
developit / _Dead Simple Fetch Caching.md
Created August 28, 2016 15:36
Dead simple fetch caching

Dead Simple Fetch Caching

Wrap fetch() in a memoize.

Not only does this cache repeated requests for the same resource, it also de-dupes concurrent requests!

Notes:

  • Caching the raw response object doesn't work, since the response body is a stream and can thus only be read once
  • Instead, cache your already read body (optionally still including the original request, just read the body prior)
@noelboss
noelboss / git-deployment.md
Last active July 16, 2024 09:50
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, lets 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.

@perguth
perguth / .htaccess
Last active January 28, 2024 19:01
Apache reverse proxy `.htaccess` file eg. for NodeJS. @Uberspace
SetEnvIf Request_URI "^(.*)" PORT=65300
RewriteEngine On
RewriteBase /
# CORS
Header add Access-Control-Allow-Origin "*"
# HTTPS
RewriteCond %{HTTPS} !=on