Skip to content

Instantly share code, notes, and snippets.

View ramazansancar's full-sized avatar
๐Ÿ“š
Study

Ramazan Sancar ramazansancar

๐Ÿ“š
Study
View GitHub Profile
@siniradam
siniradam / cloudAliases.md
Last active May 29, 2024 09:24
Useful Full-Stack Bash Aliases

Useful aliases for front-end & back end developers

By adding the lines below to your ~/.zshrc or ~/.bashrc you can use quick aliases to perform some firebase and aws commands.

GIT

# Undo last commit (If you haven't pushed)
alias gitz="git reset --soft HEAD~"
@kostasx
kostasx / eu_members.json
Last active November 21, 2022 11:12 — forked from PoeHaH/gist:ab9d8ac1b4ddee168d4d96c71797df31
JSON representation of EU countries, 2 letter codes
[
{ "country": "Austria", "code": "AT" },
{ "country": "Belgium", "code": "BE" },
{ "country": "Bulgaria", "code": "BG" },
{ "country": "Croatia", "code": "HR" },
{ "country": "Cyprus", "code": "CY" },
{ "country": "Czech Republic", "code": "CZ" },
{ "country": "Denmark", "code": "DK" },
{ "country": "Estonia", "code": "EE" },
{ "country": "Finland", "code": "FI" },
Afghanistan
Albania
Algeria
Andorra
Angola
Antigua and Barbuda
Argentina
Armenia
Australia
Austria
@tarikguney
tarikguney / userscript.js
Last active March 24, 2025 10:31
Eat Your Food - Netflix Interruptor
// ==UserScript==
// @name Remember to eat your food while watching Netflix
// @namespace https://www.tarikguney.com
// @version 0.1
// @description Kids watching cartoons on Netflix often forget to eat and chew their food, which drives parents crazy. You need to sit down with them and pause the video and remind them to eat their food. This script will automate that.
// @author Tarik Guney
// @match https://www.netflix.com/watch/*
// @icon https://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Netflix_icon.svg/1200px-Netflix_icon.svg.png
// @grant none
// ==/UserScript==
@refo
refo / 0- Docker Caddy Wordpress.md
Last active September 27, 2022 14:28
Docker Caddy Wordpress

Docker Caddy Wordpress

@chaojian-zhang
chaojian-zhang / DockerUsageNotes.md
Last active February 10, 2023 21:44
Docker Usages Notes

Basics

  • docker run --name <your_container_name> alpine/git <git_command>
  • docker run -it --name <your_container_name> alpine/git <git_command>: Run with tty interactive
  • docker run -d --name couch -p 8091-8094:8091-8094 -p 11210:11210 couchbase: Run (e.g. a server) unattached
  • docker cp container_name:/git/getting-started .: Copy files/folders between a container and the local filesystem
  • docker start <your_container_name>: Start a stopped container
  • docker attach <your_container_name>: Attach to running container
@GlitchWitch
GlitchWitch / rtl8156-ubuntu.md
Last active November 14, 2025 02:23
Setup the RTL8156 USB2.5G Ethernet Adapter on Ubuntu 20.04
@ajmcagadas
ajmcagadas / keypress.js
Created June 3, 2021 06:46
Reactjs prevent characters on keypress
use { useState } from 'react';
const Test = () => {
const [tipAmount, setTipAmount] = useState('');
const handleKeypress = (e) => {
if(!((e.keyCode > 95 && e.keyCode < 106)
|| (e.keyCode > 47 && e.keyCode < 58)
|| e.keyCode == 8)) {
e.preventDefault(); // Let's stop this event.
#!/bin/bash
# From https://github.com/LIAAD/yake#installing-docker
# Install dependencies
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
@ajmcagadas
ajmcagadas / countries.json
Created April 16, 2021 02:00
Alpha-2 ISO3166 countries
[
{
"label": "Afghanistan",
"value": "AF"
},
{
"label": "ร…land Islands",
"value": "AX"
},
{