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
string username = txtUsername.Text.ToUpper().ToUpperInvariant().ToLowerInvariant().ToLower().ToUpperInvariant(); // kerim -> KERIM |
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
Rectangle workingArea = Screen.GetWorkingArea(this); | |
FrmHede hede = new FrmHede(); | |
hede.StartPosition = FormStartPosition.Manual; | |
hede.Location = new Point(workingArea.Right - hede.Width, workingArea.Bottom - hede.Height); | |
// hede.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - hede.Width, Screen.PrimaryScreen.WorkingArea.Height - hede.Height); |
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
# Remove folders matching pattern recursively | |
FOR /F "tokens=*" %G IN ('DIR /B /AD /S bin') DO RMDIR /S /Q "%G" | |
FOR /F "tokens=*" %G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%G" | |
FOR /F "tokens=*" %G IN ('DIR /B /AD /S .vs') DO RMDIR /S /Q "%G" | |
# Remove files matching pattern recursively | |
FOR /F "tokens=*" %G IN ('DIR /B /A /S *.log') DO DEL /F /S /Q /A "%G" |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int addi(int a, int b) { | |
return a + b; | |
} | |
char *adds(char *a, char *b) { | |
char *res = malloc(strlen(a) + strlen(b) + 1); |
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
-- C:\WINDOWS\system32>echo select p.name, p.pid, s.local_address, s.local_port, s.remote_address, s.remote_port from process_open_sockets s join processes p on p.pid = s.pid; | osqueryi | |
osquery> select p.name, p.pid, s.local_address, s.local_port, s.remote_address, s.remote_port from process_open_sockets s join processes p on p.pid = s.pid; | |
-- https://osquery.io/docs/tables/#process_open_sockets | |
-- https://osquery.io/docs/tables/#processes | |
+------------------------------+-------+---------------------------+------------+---------------------------+-------------+ | |
| name | pid | local_address | local_port | remote_address | remote_port | | |
+------------------------------+-------+---------------------------+------------+---------------------------+-------------+ |
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
0x54CDb5A0303480fb10Fb9163D51785955764e8B8 |
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 urllib import parse | |
from bs4 import BeautifulSoup | |
elem = '<a title="Sakura Sakura Onsen" href="https://www.google.com/maps?ll=31.8623230000,130.8571860000&spn=0.006130,0.009795&t=k&hl=en">3 BLUE</a>' | |
# ll | |
split = parse.urlsplit(elem) | |
qs = parse.parse_qs(split.query) | |
ll = qs['ll'][0].split(',') |
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
#!/usr/local/bin/python3 | |
from itertools import count | |
def stop(): | |
raise StopIteration | |
every15 = set() | |
list(stop() if (n % 1000) in every15 else every15.add(n % 1000) for n in count(1, step=15)) | |
print(1000 - len(every15)) |
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
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder |
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
// This is a simple NodeJS app to display triggered events on a smart contract | |
// you need your contract ABI and deployed address and also a synced geth running | |
// github.com/shayanb | |
var optionsABI = [YOUR_CONTRACT_ABI] | |
var contractAddress = "0xYOUR_CONTRACT_ADDRESS" | |
var Web3 = require('web3'); |
OlderNewer