Skip to content

Instantly share code, notes, and snippets.

@veyselsahin
veyselsahin / cloudflare-dyndns-a-aaaa-record-update.sh
Created March 17, 2025 09:13 — forked from Ciantic/cloudflare-dyndns-a-aaaa-record-update.sh
cloudflare dyndns script / update a A and AAAA record using bash script
#!/bin/bash
# Author: Jari Pennanen
# Url: https://gist.github.com/Ciantic/4e543f2d878a87a38c25032d5c727bf2
AUTH_EMAIL="[email protected]" # Your Cloudflare email
AUTH_KEY="" # Get this from My profile -> API Keys -> View
DOMAIN="example.com" # main domain
SUBDOMAIN="home.example.com" # set A and AAAA-record of this subdomain
@veyselsahin
veyselsahin / kubernetes_export.sh
Created April 15, 2022 12:25
kubernetes_export.sh kubernetes_context namespace
#!/usr/bin/env bash
set -e
CONTEXT="$1"
if [[ -z ${CONTEXT} ]]; then
echo "Usage: $0 KUBE-CONTEXT"
exit 1
fi
async.parallel([
function(callback){
setTimeout(function(){
callback(null, 'one');
}, 200);
},
function(callback){
setTimeout(function(){
callback(null, 'two');
}, 100);
async.series({
one: function(callback){
setTimeout(function(){
callback(null, 1);
}, 200);
},
two: function(callback){
setTimeout(function(){
callback(null, 2);
}, 100);
async.waterfall([
function(callback) {
callback(null, 'bir', 'iki');
},
function(arg1, arg2, callback) {
// arg1 suan 'bir' ve arg2 suan 'iki'
callback(null, 'uc');
},
function(arg1, callback) {
// arg1 suan 'uc'
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Management;
using System.Net;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using System.Xml;
function otomatikBul() {
// Browser desteğini kontrol et
if( ! navigator.geolocation ) {
console.log( 'Broserınız desteklemiyor. Lütfen manual seçim yapınız.' );
return;
}
// Uyarı
console.log( 'Koordinatlar alınıyor...' );
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.IO;
namespace ChangeIcon
{
@veyselsahin
veyselsahin / RegistryMonitor.cs
Created November 14, 2013 14:59
Regedit üzerinde yapılan tüm değişikliği yakalamamız sağlar.
using System;
using System.ComponentModel;
using System.IO;
using System.Threading;
using System.Runtime.InteropServices;
using Microsoft.Win32;
using Microsoft.Win32.SafeHandles;
namespace BuzzGUI.Common
{
@veyselsahin
veyselsahin / Registry.cs
Created November 14, 2013 14:44
Regedit ile ilgili neredeyse tüm işlemler mevcuttur.
/*
Note on transaction support:
Eventually we will want to add support for NT's transactions to our
RegistryKey API's (possibly Whidbey M3?). When we do this, here's
the list of API's we need to make transaction-aware:
RegCreateKeyEx
RegDeleteKey
RegDeleteValue
RegEnumKeyEx