This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# List all directories in the current folder | |
for dir in */; do | |
# Remove trailing slash from directory name | |
dirname=${dir%/} | |
# Compress the directory using 7zip with maximum compression | |
7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on "${dirname}.7z" "$dir" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sort.cpp : Defines the entry point for the console application. | |
// | |
#include <array> | |
#include <random> | |
#include <iostream> | |
#include <functional> | |
#include <chrono> | |
#include <string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QCoreApplication> | |
#include <QSqlDatabase> | |
#include <QDebug> | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); | |
QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL3"); | |
db.setHostName("db4free.net"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// memoryManagement.cpp : Defines the entry point for the console application. | |
// | |
#include <string> | |
#include <iostream> | |
#include <Poco\AutoPtr.h> | |
#include <Poco\RefCountedObject.h> | |
#include <Poco\AutoReleasePool.h> | |
#include <Poco\SharedPtr.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cpp11.cpp : Defines the entry point for the console application. | |
// | |
#include <iostream> | |
#include <memory> | |
#include <array> | |
#include <vector> | |
#include <string> | |
#include <algorithm> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from github import Github | |
from pygit2 import clone_repository | |
import random | |
import string | |
import json | |
import os | |
path = "/home/shajeen/Documents/git_stared/" | |
g = Github("git personal access token") |