Skip to content

Instantly share code, notes, and snippets.

View brkfun's full-sized avatar
🚀
DevSecOps

Burak Faruk ŞAHİN brkfun

🚀
DevSecOps
View GitHub Profile
@kmova
kmova / node-custom-setup.yaml
Last active October 3, 2022 13:32 — forked from jjo/node-custom-setup.yaml
Run commands at Kubernetes *nodes* via `privileged` DaemonSet + `nsenter` hack, very useful for setups requiring base packages pre-installed at nodes. Please take a moment to understand what it does, and *don't* use it for *production*. Grab the logs with: kubectl logs -n kube-system -l k8s-app=node-custom-setup -c init-node
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
namespace: kube-system
name: node-custom-setup
labels:
k8s-app: node-custom-setup
annotations:
command: &cmd apt-get update -qy && apt-get install -qy open-iscsi xfsprogs
@gskema
gskema / noinspection.php
Last active July 2, 2024 14:06
PhpStorm @noinspection list of all tags
<?php
/** @noinspection ? */
// PhpUndefinedGotoLabelInspection Undefined goto label
// PhpUndefinedVariableInspection Undefined variable
// PhpUndefinedMethodInspection Undefined method
// PhpUndefinedNamespaceInspection Undefined namespace
// PhpUndefinedClassInspection Undefined class
// PhpUndefinedFunctionInspection Undefined function
@aelipek
aelipek / validation_vkn.php
Created December 5, 2013 09:53
PHP Vergi Kimlik No Kontrol
function validation_vkn($vkn)
{
$balance = true;
for ($i = 0; $i < strlen($vkn); $i++) {
if (is_numeric($vkn[$i])) {
} else
$balance = false;
}
if (strlen($vkn) == 10 && $balance) {
$vkn_1 = $vkn[0];
@mathiasbynens
mathiasbynens / change-favicon.js
Created June 7, 2010 12:41
Dynamically changing favicons with JavaScript
/*!
* Dynamically changing favicons with JavaScript
* Works in all A-grade browsers except Safari and Internet Explorer
* Demo: http://mathiasbynens.be/demo/dynamic-favicons
*/
// HTML5™, baby! http://mathiasbynens.be/notes/document-head
document.head || (document.head = document.getElementsByTagName('head')[0]);
function changeFavicon(src) {