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 | |
# Copyright (c) 2021 Soumya Deb <debloper@gmail.com> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
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 <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <math.h> | |
#define debug(...) | |
//#define debug printf | |
// torus radii and distance from camera |
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
"""Hello world, with a genetic algorithm. | |
https://twitter.com/matthen2/status/1769368467067621791 | |
""" | |
import random | |
import time | |
from dataclasses import dataclass | |
from itertools import chain | |
from typing import Iterable, List |
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
// Policy template for Linux. | |
// Uncomment the policies you wish to activate and change their values to | |
// something useful for your case. The provided values are for reference only | |
// and do not provide meaningful defaults! | |
{ | |
// Cross-origin HTTP Basic Auth prompts | |
//------------------------------------------------------------------------- | |
// Controls whether third-party sub-content on a page is allowed to pop-up an | |
// HTTP Basic Auth dialog box. Typically this is disabled as a phishing | |
// defense. If this policy is not set, this is disabled and third-party sub- |
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 | |
# author: Marcos Oliveira <terminalroot.com.br> | |
# describe: Clone Only a Git Subdirectory | |
# version: 1.0 | |
# license: GNU GPLv3 | |
if [[ "$(echo $LANG | cut -c 1-2)" != "pt" ]]; then | |
declare -x l=( "usage" | |
"Use this flag to inform the REPOSITORY, this option is not optional." |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<yahoo-weather-codes> | |
<code number="0" description="tornado"/> | |
<code number="1" description="tropical storm"/> | |
<code number="2" description="hurricane"/> | |
<code number="3" description="severe thunderstorms"/> | |
<code number="4" description="thunderstorms"/> | |
<code number="5" description="mixed rain and snow"/> | |
<code number="6" description="mixed rain and sleet"/> | |
<code number="7" description="mixed snow and sleet"/> |
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
*** Best video in mp4 format [if available] in 1080p *** | |
$ youtube-dl -f 'bestvideo[height<=1080 && ext=mp4]+bestaudio' https://www.youtube.com/watch?v=LXb3EKWsInQ | |
*** For ease of use make alias for this command *** | |
$ alias yt="youtube-dl -f 'bestvideo[ext=mp4][height<=1200]+bestaudio[ext=m4a]' -o '%(title)s'" | |
Youtube-dl Tutorial With Examples | |
Here, I have compiled most commonly used Youtube-dl commands to download a video or playlist from YouTube. |
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
# INSTALL INSTRUCTIONS: save as ~/.gdbinit | |
# | |
# DESCRIPTION: A user-friendly gdb configuration file. | |
# | |
# REVISION : 7.3 (16/04/2010) | |
# | |
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit, | |
# truthix the cyberpunk, fG!, gln | |
# | |
# FEEDBACK: https://www.reverse-engineering.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
B A S H C H E A T S H E E T | |
to page output forward (only): command filename | more | |
to page output forward & back: command filename | less | |
to print a dataset: lp datasetname (-d printerid) (-o landscape) | |
USE OF QUOTATION MARKS | |
echo "$varname" = echo The value of \$varname is \"$varname\" | |
= echo "The value of \$varname is \"$varname\"." | |
$fred='Four spaces between these words.' |
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
qApp->setStyle(QStyleFactory::create("fusion")); | |
QPalette palette; | |
palette.setColor(QPalette::Window, QColor(53,53,53)); | |
palette.setColor(QPalette::WindowText, Qt::white); | |
palette.setColor(QPalette::Base, QColor(15,15,15)); | |
palette.setColor(QPalette::AlternateBase, QColor(53,53,53)); | |
palette.setColor(QPalette::ToolTipBase, Qt::white); | |
palette.setColor(QPalette::ToolTipText, Qt::white); | |
palette.setColor(QPalette::Text, Qt::white); |
NewerOlder