Skip to content

Instantly share code, notes, and snippets.

View halilertekin's full-sized avatar
🎯
Focusing

Halil Ertekin halilertekin

🎯
Focusing
View GitHub Profile
@ishad0w
ishad0w / sources.list
Last active March 28, 2026 10:57
Debian 11 (Bullseye) -- Full sources.list
deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://deb.debian.org/debian bullseye-backports main contrib non-free
deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free
deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
const express = require("express");
const next = require("next");
const bodyParser = require('body-parser');
const mongoose = require('mongoose');
const keys = require('./config/keys');
const dev = process.env.NODE_ENV !== "production";
const app = next({ dev });
const logger = require('./log');
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 5, 2026 08:44
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@dynamicguy
dynamicguy / recreate_all_ios_simulators.rb
Last active April 2, 2025 11:58
Recreate all available iOS simulators
#!/usr/bin/env ruby
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'JSON'
device_types = JSON.parse `xcrun simctl list -j devicetypes`
runtimes = JSON.parse `xcrun simctl list -j runtimes`
devices = JSON.parse `xcrun simctl list -j devices`
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active April 30, 2026 14:29
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
_ _ _ ____ _ _
| | | | __ _ ___| | __ | __ ) __ _ ___| | _| |
| |_| |/ _` |/ __| |/ / | _ \ / _` |/ __| |/ / |
| _ | (_| | (__| < | |_) | (_| | (__| <|_|
|_| |_|\__,_|\___|_|\_\ |____/ \__,_|\___|_|\_(_)
A DIY Guide
@mike623
mike623 / method.js
Created February 29, 2016 02:55
simple create sign for alipay using MD5
Meteor.methods({
createAlipayLink:function(){
const pay = "https://mapi.alipay.com/gateway.do?";
const pay = "https://openapi.alipaydev.com/gateway.do?"; // for sandbox
let params = {
seller_email:"abc@gmail.com",
service: 'create_forex_trade_wap',
@mcknightg
mcknightg / layout.css
Created February 12, 2016 06:43
Social Network Application CSS
.fa-2x { color: #75858c }
.ds-btn li {
list-style: none;
float: left;
padding: 10px;
}
.ds-btn span{
font-size:90%;
}
.ds-btn li a span {
@nicolasembleton
nicolasembleton / restart_bluetooth.sh
Last active March 13, 2026 16:50
Restart Bluetooth Daemon on Mac OS X without restarting
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
@ademilter
ademilter / basicss.css
Last active September 19, 2020 19:23
web uygulamalari icin temel stilleri olusturur. varsayilan kenar bosluklarini ortadan kaldirir ve tipografik duzeltmeler yapar. normalize.css'ten hemen sonra gelmelidir.
/**
* 1. http://www.paulirish.com/2012/box-sizing-border-box-ftw/
* http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
* http://fatihhayrioglu.com/css3-box-sizing-ozelligi/
*
* 2. http://aestheticallyloyal.com/public/optimize-legibility/
*
* 3. http://maxvoltar.com/archive/-webkit-font-smoothing
*
* 4. http://maximilianhoffmann.com/posts/better-font-rendering-on-osx