Skip to content

Instantly share code, notes, and snippets.

View cnhsn's full-sized avatar
🤔
thinking something new

Can cnhsn

🤔
thinking something new
View GitHub Profile
@cnhsn
cnhsn / devops-engineer-fundamentals-roadmap.md
Created February 24, 2025 10:49
Frequently updated DevOps fundamentals roadmap.
@cnhsn
cnhsn / oauth2-proxyNginxExample.conf
Created October 30, 2023 07:49
Example nginx.conf file for Oauth2-Proxy group based access control, controlled by LUA script.
http {
server {
listen 80;
server_name http-bin.domain.com;
location / {
proxy_pass http://http-bin:80;
}
}
}
import re
class SMSFiltrele:
def __init__(self, spam_kelimeleri):
self.spam_kelimeleri = spam_kelimeleri
def spam_mi(self, mesaj):
mesaj_metni = mesaj.get('text')
if mesaj_metni:
for kelime in self.spam_kelimeleri:
@cnhsn
cnhsn / discordGreetingBot.md
Last active March 16, 2023 14:43
This Discord bot, built with Node.js and Discord.js, greets new members on your server and assigns them a specified role for full server access.
  1. First, make sure you have Node.js installed on your machine. You can download it from here: https://nodejs.org/en/

  2. Next, create a new directory for your bot and navigate to it in your terminal.

  3. Initialize a new Node.js project by running the following command in your terminal:

npm init -y
@cnhsn
cnhsn / whatasppSpam.js
Created June 9, 2017 17:15 — forked from meain/whatasppSpam.js
Whatsapp web spam script
// for send function to select input
function dispatch(target, eventType, char) {
var evt = document.createEvent("TextEvent");
evt.initTextEvent (eventType, true, true, window, char, 0, "en-US");
target.focus();
target.dispatchEvent(evt);
}
// enters input and clicks button
function send(msg){
@cnhsn
cnhsn / whatasppSpam.js
Created June 9, 2017 17:15 — forked from meain/whatasppSpam.js
Whatsapp web spam script
// for send function to select input
function dispatch(target, eventType, char) {
var evt = document.createEvent("TextEvent");
evt.initTextEvent (eventType, true, true, window, char, 0, "en-US");
target.focus();
target.dispatchEvent(evt);
}
// enters input and clicks button
function send(msg){
@cnhsn
cnhsn / meta-tags.md
Created December 3, 2016 22:15 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@cnhsn
cnhsn / channelCreator.lua
Created July 30, 2016 16:03 — forked from Bluscream/channelCreator.lua
Teamspeak TS 3 LUA Script - Channel Creator- (Auto)Create Channels from modes + antichanneldelete
-- ts3.printMessageToCurrentTab("1")
require("ts3defs")
-- ts3.printMessageToCurrentTab("2")
require("ts3errors")
ts3.printMessageToCurrentTab("3")
local SCRIPT = "LUA Channel creator"
local SCRIPTSHORT = "CC"
local VERSION = "0.5"
local AUTHOR = "B1uscr34m"
@cnhsn
cnhsn / etc_init.d_teamspeak3
Created July 30, 2016 13:45 — forked from AdamWhittingham/etc_init.d_teamspeak3
Teamspeak 3 init.d script
#!/bin/bash
#
# chkconfig: 2345 98 8
# description: start/stop/status the Teamspeak3 server
# On Ubuntu:
# - copy to `/etc/init.d/teamspeak3`
# - `sudo chmod +x /etc/init.d/teamspeak3`
# - `update-rc.d teamspeak3 defaults