Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ardasevinc on github.
  • I am ardasevinc (https://keybase.io/ardasevinc) on keybase.
  • I have a public key ASBTZTiBbedWZVLLiBh6bjspA8ZsHnGvAl7X2BpGRi_UOgo

To claim this, I am signing this object:

@ardasevinc
ardasevinc / can.sh
Created July 2, 2022 13:48
Create a basic virtual can network in linux
#!/bin/bash
set -e
echo "> Creating and enabling the can interface"
sudo ip link add dev vcan0 type vcan && sudo ip link set vcan0 up
echo "> Done"
@ardasevinc
ardasevinc / cvimrc
Last active December 20, 2019 22:02
cvimrc
"settings
set smoothscroll
let barposition="bottom"
showtabindices true
autohidecursor true
let searchengine duckduckgo = ["https://duckduckgo.com/", "https://duckduckgo.com/?q=%s"]
# Trying to calculate the e number with python
def compute_e(x):
if x == 0:
x = 1
val = pow((1+1/x), x)
print(val)
ran = int(input("Enter the range: "))
for i in range(ran):
@ardasevinc
ardasevinc / randomInt_histogram.c
Created November 22, 2018 09:49
Integer randomization with graphing
// Program for integer randomization and displaying via histograms
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#define N_C 50 //Number of columns
#define N_R 20 //Number of rows
#define MAX 50
@ardasevinc
ardasevinc / fibonacci.c
Created October 24, 2018 18:41
Fibonacci
#include <stdio.h>
#include <stdlib.h>
void fibonacci();
main()
{
printf("Program will begin shortly.Ctrl-c to exit\n");
fibonacci();
}
#include <stdio.h>
#include <unistd.h>
main()
{
int i,m;
for (i=1;i<=25;i++){
printf("*");
if (i==5||i==10||i==15||i==20){
printf("\n");
##Who is tool
import whois
import time
import sys
import easygui as g
while True:
usr_input= g.enterbox("Enter website url","Whois tool")
if usr_input == "Cancel":
break
@ardasevinc
ardasevinc / Area calc V2.py
Created August 11, 2018 15:27
Area calculator v2
##Area Calculator Version 2
import math
import sys
import time
def area_rect(x,y):
rect=x*y
return rect
def area_square(x):
sq=x**2
@ardasevinc
ardasevinc / Youtube video download tool.py
Created August 11, 2018 15:26
Youtube video download tool.Created for fun.Only use for personal use. I do not claim any legal responsibilites.
##Youtube video download tool
import sys
import time
import easygui as g
from pytube import YouTube
while True:
url= g.enterbox("Please enter url","Youtube download tool")
b= g.ynbox("Please wait","Youtube download tool")