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
Infix to Postfix Translation with Parentheses | |
Algorithm for Method processOperator to Include Parentheses | |
if the operator stack is empty OR the current operator is '(' | |
Push the current operator onto the stack | |
else | |
Peek the stack and let topOp be the top operator. | |
while the stack is non-empty AND | |
precedence of the current operator is less than or equal to the topOp |
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
package AP2014.sql.storage.cell; | |
public class DataCell extends AbstractCell{ | |
public DataCell(String paramName,Object value,int maxValue,CellType type) { | |
super(paramName, value ,maxValue,type); | |
} | |
public boolean equals(MetaCell metaCell){ |
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
# Private server key | |
sudo openssl genrsa -des3 -out server.key 2048 | |
# Create certificate signing request | |
sudo openssl req -new -key server.key -out server.csr | |
# Remove the Passphrase | |
sudo cp server.key server.key.org | |
sudo openssl rsa -in server.key.org -out server.key | |
rm server.key.org |
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
/* | |
* Windows 10 kernel buffer overflow in NtGdiBitBlt PoC | |
* compile: | |
* cl.exe bug474.cpp user32.lib gdi32.lib shell32.lib | |
*/ | |
#include <stdio.h> | |
#include <tchar.h> | |
#include <Windows.h> | |
#include <time.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
<?php | |
namespace App; | |
use Illuminate\Auth\Authenticatable; | |
use Illuminate\Auth\Passwords\CanResetPassword; | |
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; | |
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; | |
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; | |
use Illuminate\Foundation\Auth\Access\Authorizable; |
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
# http://stackoverflow.com/questions/30604846/docker-error-no-space-left-on-device | |
## Delete the orphaned volumes in Docker | |
docker volume rm $(docker volume ls -qf dangling=true) | |
## Remove all the unused Images. | |
docker rmi $(docker images | grep "^<none>" | awk "{print $3}") |
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
docker logs nginx_nginx_1 | grep -Po "(?<=nginx.1 \|.....).*" | pv > ~/nginx.log |
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
keytool -genkey -v -keystore release.keystore -alias baziness -keyalg RSA -keysize 2048 -validity 10000 |
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
[Unit] | |
Description=Convoy Daemon | |
Requires=docker.service | |
[Service] | |
ExecStart=/usr/local/bin/convoy daemon | |
[Install] | |
WantedBy=multi-user.target |
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
pvcreate /dev/sda3 | |
vgextend localhost-vg /dev/sda3 | |
vgdisplay | |
lvextend -l +100%FREE /dev/mapper/localhost--vg-root | |
resize2fs /dev/mapper/localhost--vg-root | |
df -h |