Skip to content

Instantly share code, notes, and snippets.

View noc2spam's full-sized avatar
🤖
Altering bits

Sugato Sengupta noc2spam

🤖
Altering bits
View GitHub Profile
server {
listen 80;
listen [::]:80;
server_name yourdomain.com;
location / {
proxy_pass http://127.0.0.1:2023;
}
}
server {
listen 80;
@noc2spam
noc2spam / bloat.sh
Last active July 16, 2021 07:52
disable samsung android bloatwares (needs adb installed globally, debug mode on, and adb devices should show the phone online without saying "unauthorized")
#!/bin/bash
adb shell pm disable-user --user 0 com.samsung.android.themestore || true &&
adb shell pm disable-user --user 0 com.samsung.android.aremoji || true &&
adb shell pm disable-user --user 0 com.sec.android.app.samsungapps || true &&
adb shell pm disable-user --user 0 com.samsung.android.game.gamehome || true &&
adb shell pm disable-user --user 0 com.samsung.android.scloud || true &&
adb shell pm disable-user --user 0 com.samsung.android.emojiupdater || true &&
adb shell pm disable-user --user 0 com.samsung.android.smartfitting || true &&
adb shell pm disable-user --user 0 com.samsung.android.game.gametools || true &&
adb shell pm disable-user --user 0 com.enhance.gameservice || true &&
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
Milí zákazníci,<br>
máme zajímavou novinku a veríme, že z ní budete opravdu unešení. Chystali jsme ji už dlouho.<br><br>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took.<br><br>
Zdraví vás,<br>
@noc2spam
noc2spam / autologin.php
Created September 5, 2016 14:39
Magento 2.1.1 login to backend programatically, from frontend:
<?php
use Magento\Framework\App\Bootstrap;
require __DIR__ . '/app/bootstrap.php';
class TestApp extends \Magento\Framework\App\Http implements \Magento\Framework\AppInterface {
public function launch() {
$areaCode = 'adminhtml';
@noc2spam
noc2spam / http_build_query.js
Created August 16, 2016 06:21 — forked from luk-/http_build_query.js
php's http_build_query() in javascript
var build_query = function (obj, num_prefix, temp_key) {
var output_string = []
Object.keys(obj).forEach(function (val) {
var key = val;
num_prefix && !isNaN(key) ? key = num_prefix + key : ''
SELECT `main_table`.*, (main_table.base_subtotal_with_discount*main_table.base_to_global_rate) AS `subtotal`, `cust_email`.`email`, `cust_fname`.`value` AS `firstname`, `cust_lname`.`value` AS `lastname`, CONCAT_WS(' ', cust_fname.value, cust_lname.value) AS `customer_name` FROM `sales_flat_quote` AS `main_table`
INNER JOIN `customer_entity` AS `cust_email` ON cust_email.entity_id = main_table.customer_id
INNER JOIN `customer_entity_varchar` AS `cust_fname` ON cust_fname.entity_id = main_table.customer_id AND cust_fname.attribute_id = 5
INNER JOIN `customer_entity_varchar` AS `cust_lname` ON cust_lname.entity_id = main_table.customer_id AND cust_lname.attribute_id = 7 WHERE (items_count != '0') AND (main_table.is_active = '1') AND (main_table.created_at >= '2014-06-15 00:00:00') ORDER BY updated_at DESC