Skip to content

Instantly share code, notes, and snippets.

View muhammedfurkan's full-sized avatar
🙃

M.Furkan muhammedfurkan

🙃
View GitHub Profile
@keyiflerolsun
keyiflerolsun / sstpc.sh
Last active February 25, 2025 22:21
UNIX Sistemler için SSTPC Bağlantı Aracı
#!/bin/bash
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
# UNIX Sistemler için SSTPC Bağlantı Aracı
# ? Renk tanımlamaları
NC='\033[0m' # * No Color
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
@jenaye
jenaye / Install ollama + web gui (open-webui)
Last active December 2, 2024 10:16
Install ollama + web gui (open-webui)
# install docker
```
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
@muhammedfurkan
muhammedfurkan / ExportCSV.js
Created February 3, 2023 11:43 — forked from bbachi/ExportCSV.js
react excel functionality
import React from 'react'
import Button from 'react-bootstrap/Button';
import * as FileSaver from 'file-saver';
import * as XLSX from 'xlsx';
export const ExportCSV = ({csvData, fileName}) => {
const fileType = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8';
const fileExtension = '.xlsx';
@EnkrateiaLucca
EnkrateiaLucca / projects_data_database.py
Created May 16, 2021 23:19
Get projects data from database
def get_projects_data(self,data_json,projects):
projects_data = {}
for p in projects:
if p!="Name" and p !="Date":
projects_data[p] = [data_json["results"][i]["properties"][p]["checkbox"]
for i in range(len(data_json["results"]))]
elif p=="Date":
dates = [data_json["results"][i]["properties"]["Date"]["date"]["start"]
for i in range(len(data_json["results"]))]
@ilkermanap
ilkermanap / main.cpp
Created April 9, 2021 17:23
c/c++ linked list and binary tree examples. node addition and traversing
#include <iostream>
using namespace std;
/**
* Tek yonlu liste tanimi
*/
struct Node {
int data;
@Lulzx
Lulzx / tell.c
Created December 21, 2020 09:44
c code
#include <stdio.h>
int findMin(int arr[], int n)
{
int min = arr[0];
for (int i = 1; i < n; ++i) {
if (arr[i] < min) {
min = arr[i];
}
}
@agustinustheo
agustinustheo / add-nginx-conf.sh
Created December 8, 2020 18:35
A shell script to add NGINX configurations automatically.
#!/bin/bash
conf_path="/etc/nginx/conf.d/$1.conf"
if [ -f "$conf_path" ]
then
conf_text=`cat $conf_path`
if [[ "$conf_text" == *"$2"* ]] || [[ "$conf_text" == *"localhost:$3"* ]]
then
echo "Proxy route or localhost port has been used, please manually reconfigure your Nginx configuration."
else
@korakot
korakot / asyncio.py
Last active January 3, 2024 02:15
Use asyncio (async) in Colab
import nest_asyncio
nest_asyncio.apply()
/* perfect.c: find all perfect numbers up to a bound */
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <pthread.h>
#include <assert.h>
int num_perfect_global = 0; // global number of perfect numbers
int * local_perfects; // local total of perfect nums
@0xAliRaza
0xAliRaza / nginx-server-block-generator.sh
Created September 24, 2020 21:34
A handy shell script to create Nginx server-block (virtual host).
#!/usr/bin/env bash
#
# Nginx - new server block
# Functions
ok() { echo -e '\e[32m'$1'\e[m'; } # Green
die() {
echo -e '\e[1;31m'$1'\e[m'
exit 1
}